01-10-2019 06:36 PM - edited 01-10-2019 06:39 PM
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.
Solved! Go to Solution.
01-10-2019 06:42 PM - edited 01-10-2019 06:42 PM
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...)
01-10-2019 06:43 PM - edited 01-10-2019 06:44 PM
Deleted reply
01-10-2019 06:46 PM
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,
01-10-2019 06:57 PM
Ohhh, I see now. I was interpreting that zero as PORT zero, not CHANNEL zero THROUGH seven. Thanks for clarifying that for me!