04-10-2019 06:03 AM
I have a doubt regarding the SubVI generated while creating digital output lines from DAQ Asst (Image of the block diagram is attached). The subVI I am refering to is a data generating VI which generated 0 and 1 state. Here I want DAQ to generate N sample at a given rate.
I did understand the inner most "For loop" that generates a 2D array of 0 and 1.
What confuses me the most is the use of channels and digital lines separately. What I know is each digital line corresponds to one physical cahnnel. If I have N number of digital lines per channel, how to interpret.
Solved! Go to Solution.
04-10-2019 07:26 AM
@sharathnu wrote:
What confuses me the most is the use of channels and digital lines separately. What I know is each digital line corresponds to one physical cahnnel. If I have N number of digital lines per channel, how to interpret.
A channel can also correspond to a Port. Ports can be 8, 16, or 32 lines. So you can have a channel of Dev1/port0 which would write to the entire port. Or you can have a channel of Dev1/port0/line0, which would only write to line 0 of the port.
04-10-2019 08:14 AM - edited 04-10-2019 08:16 AM
Thanks Knight. I also noticed that each line is assigned to a individual virtual channel and output of the inner most For Loop is a waveform from Line 0. The outer For Loops generates a 1 D array of waveforms.
How is it different from: creating virtual channel and giving a control at the "line" terminal so that the user can specify all the required lines in one virtual channel?
i.e. how does "one channel per each line" differs from "one channel for all line" . Which is better when generating a DO to control Port0/Line0-Port0/Line3
04-10-2019 10:32 AM
@sharathnu wrote:
Which is better when generating a DO to control Port0/Line0-Port0/Line3
If defining multiple lines in a channel, you can have the driver break it up into many channels or leave it. I would use the 1 Channel Per Line and then you just write the boolean array to the task.
04-10-2019 10:33 AM - edited 04-10-2019 10:48 AM
Thanks.
Does the same logic applies to analog create channel as well?
It also has a "physical channel" terminal wherein once can specify a single physical channel or a range of physical channels.