Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write digital lines seperately

Hi, there,
Does someone knows how to write digital lines seperately?
 
For example: I create three digital output lines:
DAQmxCreateDOChan(lTaskhandle, "dev1/port0/line6:8", "dataChann,clockChann,fsyncChann", DAQmx_Val_ChanPerLine)
 
How to write to line6 to 8 one by one, not using an array like{0,1,0}? Thanks for your help.
 
Yingmai
0 Kudos
Message 1 of 2
(3,439 Views)

Greetings Yingmai,

If you configure your task for multiple channels, such as lines 6, 7, and 8 (dev1/port0/line6:8), you will be required to write to all three channels at once, such as by passing an array.  To want to write to each line individually, you would need to configure separate tasks for each line.  Depending on what device you have, multiple DO tasks may or may not be possible.  Please let us know what NI hardware are you using, so we can further assist you!

Regards,

Nicholas B

National Instruments

0 Kudos
Message 2 of 2
(3,412 Views)