Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2176

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

$
0
0

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

 


Viewing all articles
Browse latest Browse all 2176

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>