Hi Kenny,
I believe the reason you are not able to see port 2 go high is because you aren't writing enough data. You are only writing 8 bits of 1's. You need to write atleast 16 bits of 1's to see all the lines on both ports go high. When you create the channel with
"Dev1/port1,Dev2/port2" or if you meant for just one device, "Dev1/port1:2", the driver allocates this as one channel with 16 lines. This will require 16 bits of data to write to all 16 lines. I would recommend using the
DAQmxBaseWriteDigitalU32. This should give you enough data points to write to all the lines on both ports.
I hope this helps,
Paul C.
Message Edited by Paul C. on 10-25-2007 07:58 PM