LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Line grouping in data acquisition

Solved!
Go to solution
What is the difference between one channel for each line and one channel for all lines selection in line grouping for daqmx create channel digital output.
0 Kudos
Message 1 of 8
(2,037 Views)

Determines how you write data to DAQmx Write API

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 8
(2,004 Views)
Can you please give detailed explanation with example
0 Kudos
Message 3 of 8
(2,000 Views)

Hi Manik,

 


@Manik981211 wrote:
What is the difference between one channel for each line and one channel for all lines selection in line grouping for daqmx create channel digital output.

Drop a DAQmxWrite function in your block diagram and look at those 6 options you have when selecting Digital->Multiple Channel->Single Sample->"...". Now think about how "one channel for each line"/"one channel for all lines" relate to those options!

 

When handling multiple digital channels I prefer the "port" options...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(1,983 Views)
Actually I can understandthe single channel>single sample. But I am unable to relate this with line grouping. Can you tell in what occasion I have to choose one channel for all lines and one channel for each line with some example and Discrription Thanks in advance
0 Kudos
Message 5 of 8
(1,952 Views)
Solution
Accepted by topic author Manik981211

Hi Manik,

 


@Manik981211 wrote:
in what occasion I have to choose one channel for all lines and one channel for each line with some example and Discrription

"One channel for each line" relates to using boolean arrays, with one element per channel.

"One channel for all lines" relates to using U8/16/32 data, with each bit in the unsigned integers relating to one digital channel.

 

You don't "have to", but you "can" choose which datatype suits your requirements. Keep in mind: using boolean data in LabVIEW will increase memory requirements (8 times) as each bit is stored/handled in memory as a byte. Using unsigned integers is more memory efficient, but you need to learn how to set/reset single bits in those U-INTs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(1,945 Views)
Solution
Accepted by topic author Manik981211
I tried to find the difference between digital 1d and 2d boolean n channel 1 sample in labview help, I noticed each channel in the task can contain 1 digital line(1d) and the channel contain one or more digital lines(2d). But when I simulate this two, it seems to be work like same.can you explain why?. And also I didn't get any error.
0 Kudos
Message 7 of 8
(1,936 Views)
I understand the concept. Thanks
0 Kudos
Message 8 of 8
(1,929 Views)