02-13-2023 06:57 AM
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
Solved! Go to Solution.
03-17-2023 09:52 AM
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)
03-17-2023 09:55 AM
"line" means one bit. A typical port has 8 lines.
Meanwhile i solved it by myself.