03-08-2006 11:07 AM
03-09-2006 06:50 AM
03-09-2006 10:38 AM
I used the tristate and it works fine. I'm a little confused about setting up the task though. Orginally I had setup two tasks, one for input and one for output - both referenced the same port. I had to clear the write task before I could use the read task. After reading the references above I tried it again with only one task. This task is setup for Digital Output on the port. What I don't understand though is how I can do a read using a task setup for output. This is nice because I don't have to setup the task before each operation, but I don't understand why it works.
George
03-09-2006 04:29 PM
03-09-2006 04:29 PM
Hi George,
A digital output task is inherently bidirectional. When you call DAQmx Read, it configures the port for input and then reads the data. When you call DAQmx Write, it configures the port for output, and writes the data. If, after a Write, you want the port to stop driving before you are ready to Read, then you can set the tristate property.