Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6525 - How to write/read a line using functions

Solved!
Go to solution

Hello,

a) what functions in NIDaqMx do i have to call to set/read a specific line (0..7)?

 

DAQmxClearTask(TaskHandle)

DAQmxCreateTask(TaskName, TaskHandle)

DAQmxResetDevice(DeviceName)

DAQmxCreateDOChan(g_TaskHandle, Lines, NameToAssignToLines, LineGrouping)

DAQmxStartTask(g_TaskHandle)

...

DAQmxStopTask(g_dwTaskHandle)

 

 

b) What happens to the line state if a line was set to true and then the Task is stopped. Does this also set the bit back to default state?

 

 

Thanks

BR

 

0 Kudos
Message 1 of 3
(880 Views)

Hi OnlyOne

I don't understand what you mean by saying 'line'. Did you mean string data type or something different?

In any case the answer for the first question will be this, 

a) You should use DAQmxReadTask VI to read data from specified physical channel. 

 


Regards)

0 Kudos
Message 2 of 3
(733 Views)
Solution
Accepted by OnlyOne

"line" means one bit. A typical port has 8 lines.

Meanwhile i solved it by myself.

0 Kudos
Message 3 of 3
(727 Views)