LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Write

Hello,
 
I m new to LabView so i have a question hoping someone would know the answer. 
 
I have used DAQMx Task Name to create a task from my digital output (PCI 6516) device.  The task is a digital 1D Bool NChannel 1Sample.  I have all 32 channels in this task, but only want to write to a different few (1 or 2) channels at a time.  How would i do that without creating different tasks for each write?  Do I use the Channel Property Node?
 
Regards,
Q
0 Kudos
Message 1 of 2
(2,710 Views)

Hi Q,

Since all the channels are in the scanlist, there is no way to output from just a few of them at a time.  The best way to accomplish this is to pass the entire boolean array to the DAQmx write every time you want to update some of the values, and make sure to change only those specific values in the array.  The ones you want to change will be updated with the new values, and the others will stay the same, since they were given the same values as the last call.

Thanks,

Justin M.
National Instruments

0 Kudos
Message 2 of 2
(2,690 Views)