CVI 2019, Win10.
Can somebody send me some example code for a DIO card/module, in particular how to set bits or nibbles for different directions. C language, DAQmx function calls please. The only vaguely related information I have seen so far is old, like 2008, and I don't trust it. (Talks about reserving a task) I have not seen anywhere how to select bits or nibbles.
Is it true that for a DIO module such as the 32-ch 9403 one has to create both an input task and an output task, that one task to do reads and writes does not work?
I understand the function calls to create a task, set up the 32-bit path as a single channel for reads, and separately for writes, start the task, and how to read and write 32-bit UINTs to the device.