01-16-2007 10:11 PM
01-17-2007 06:00 PM
Hi Najeepkp,
With our DAQ boards, we must be careful in the setting of the digital lines. If you would like to write and then read from the same lines, we must create a task for DO, write, finish and clear the task. Next create a task for DI, read, and then finish and clear the task. The code above is trying to write and then read, without changing the lines from output to input.
If you would like to do digital reads and writes at the same time, but on different lines, you can create two separate tasks (one for the DO, and one for the DI) and run them both simultaneously.
I am glad to hear that you got the shipping example for digital output to work. You may try the digital input example before trying to interlace the two.