cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

DAQmx Flatten Channel String VI not working correctly in LV 2017

Solved!
Go to solution

DAQmx Flatten Channel String VI not working correctly in LV 2017

I am trying to use the DAQmx Flatten Channel String VI, but it doesn't seem to be working correctly. I am putting in an array of channels and it is outputting only the last element of the input array...not a CSV string like it is supposed to. Has anyone else run into this?

 

See attached VI and screenshots for an example.

 

BD Screenshot.pngFP Screenshot.png

 

 

 

0 Kudos
Message 1 of 5
(159 Views)

Re: DAQmx Flatten Channel String VI not working correctly in LV 2017

I can tell you that it seems to work OK on 2018 unless I'm misinterpreting what you're trying to do with it.

 

Can you post any code that shows the error so we can try exactly the channels that you're using?

(... edit:  Of course you edit it to add the example while I'm replying...)

0 Kudos
Message 2 of 5
(152 Views)

Re: DAQmx Flatten Channel String VI not working correctly in LV 2017

Deleted reply

0 Kudos
Message 3 of 5
(147 Views)
Highlighted
Solution
Accepted by topic author RyanG_EE1
01-21-2019 09:03 AM

Re: DAQmx Flatten Channel String VI not working correctly in LV 2017

OK, well since you edited your post to add the example, I can see that it doesn't just output the last one, it outputs a string ending in "ai0:7", which is it being "smart" and compressing it down to show that it uses all 8 channels in a minimal amount of space.

 

Try removing just one channel in the middle, like #3, and you'll get something like Dev1/ai0:2, Dev1/ai4:7,

Message 4 of 5
(140 Views)

Re: DAQmx Flatten Channel String VI not working correctly in LV 2017

Ohhh, I see now. I was interpreting that zero as PORT zero, not CHANNEL zero THROUGH seven. Thanks for clarifying that for me!

Message 5 of 5
(133 Views)