LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I send digital output to line5 and line6 seperately?

I have line 5 and line 6 within port0. I want to send digital output to line5 and line6 seperately.  How can I do that?

Currently, digital output will be written to both line5 and line6 at one time. What should the "DAQmx Write" be set to? Is it "Digital 1D Nchan 1Samp"? 

labview0528.jpg

0 Kudos
Message 1 of 4
(2,510 Views)

If you want to write to the lines with separate data at the same time, change the enum to "one channel for each line" then use multiple channels, single sample (1D boolean) for a single write, or multiple channels, multiple samples for multiple writes (one after another).

 

If you want to write the lines at different times to each other (it sounds like you do) then create separate tasks.


GCentral
0 Kudos
Message 2 of 4
(2,481 Views)

Hi Cbutcher, thank you. I only have one device. Can it work with two DAQ tasks? I've tried two DAQ tasks, but errors come out.

0 Kudos
Message 3 of 4
(2,476 Views)

@Jason2018 wrote:

Hi Cbutcher, thank you. I only have one device. Can it work with two DAQ tasks? I've tried two DAQ tasks, but errors come out.


What error are you getting?  I have had A LOT of static DIO tasks with a single board.  So I know it can work.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(2,456 Views)