Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

What is max number of bits supported by the 2nd argument of DAQmxCreateDOChan()?

The example file WriteDigChan.c is very helpful, but it only handles 8-bits.  I need 16 output bits.  In that example, could I simply change the second argument from "Dev1/port0/line0:7" to "Dev1/port0/line0:15"?  Or is each port limited to 8-bits?
0 Kudos
Message 1 of 3
(6,377 Views)

Hello JoeCz,

 

Thank you for using NI forums.  The number of bits for each port is device specific, but most devices do have 8 bits for each port.  One thing you can try is to specify multiple ports i.e. "Dev1/port0/line0:7, Dev1/port1/line0:7".  You can then create an 8 bit array with two elements (1 element for each port) and specify the values you would like written for each line.  Try this out and let me know how it works for you.

 

Regards,

0 Kudos
Message 2 of 3
(6,366 Views)

Brandon,

 

This works great!!!!  Thanks.

 

Joe

0 Kudos
Message 3 of 3
(6,346 Views)