LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Channel names don't seem to work for buffered AI data acquisition

For some reason, I can't seem to get channel names (from MAX) to work correctly when doing a buffered AI data acquisition.    I'm sure the channels are named right because I can do a single AI scan and the data is reported correctly for one channel. 
 
In the buffered AI data acquistion, the problem occurs when I wire the array of strings to the AI CONFIG function.   If I don't use channel names and just manually enter the channels in the array of strings function and set the Device to 2 in the AI CONFIG,  everything works fine.   See the attached VI for what I have that is working now.  However, if I change the text in the array of strings function (the only thing outside of the sequence structure in my VI) to channel names in MAX and take out the Device 2 setting in AI CONFIG, the VI reports all channels as having a value of zero.  Its like they're not being read or something and the default is zero.
 
Any ideas?    Thanks
0 Kudos
Message 1 of 2
(2,506 Views)
Hello TRCErin,

Have you tried using the Tradtional DAQ Channel Constant/Control to input your channel list instead of an array of strings?  It will actually let you browse your existing channels and select them from a list.  Most of the Traditional DAQ examples in the NI example finder use this constant/control to input the channel list if you would like to look at an example.
Eric
DE For Life!
0 Kudos
Message 2 of 2
(2,492 Views)