05-29-2018 07:16 PM
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"?
05-29-2018 09:26 PM
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.
05-29-2018 09:48 PM
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.
05-30-2018 06:36 AM
@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.