LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Channel Names & AI CONFIG

This is probably a dumb question but I'm new to Labview.(V5.1)
I am trying to configure the channel names that I set up using NI DAQ
Channel Wizzard. According to the help info AI CONFIG expects a string
constant with the channel names separated by commas. When I connect this
I get a wire type conflict. I havent found any real help on this in the
books and am getting really frustrated. Any help would be appreciated.
Thanks
Jim Stockton
0 Kudos
Message 1 of 4
(3,255 Views)
> This is probably a dumb question but I'm new to Labview.(V5.1)
> I am trying to configure the channel names that I set up using NI DAQ
> Channel Wizzard. According to the help info AI CONFIG expects a string
> constant with the channel names separated by commas. When I connect this
> I get a wire type conflict. I havent found any real help on this in the
> books and am getting really frustrated. Any help would be appreciated.

The AI CONFIG vi needs an _array of DAQ-names_. Either every element of the
array contains one channel, or you create an array with just one single
element that contains the channels seperated by ":" and ",". A third way is
to combine both methods.

> Thanks
> Jim Stockton

No prob 🙂
0 Kudos
Message 2 of 4
(3,255 Views)
Thanks
I put in an array constant and moved a string constant containing the
names separated by commas into it. It seems to like it. Now on to the
next problem!
Jim Stockton

Philipp Pischke wrote:
>
> > This is probably a dumb question but I'm new to Labview.(V5.1)
> > I am trying to configure the channel names that I set up using NI DAQ
> > Channel Wizzard. According to the help info AI CONFIG expects a string
> > constant with the channel names separated by commas. When I connect this
> > I get a wire type conflict. I havent found any real help on this in the
> > books and am getting really frustrated. Any help would be appreciated.
>
> The AI CONFIG vi needs an _array of DAQ-names_. Either every element of the
> array contains one channel, or you create
an array with just one single
> element that contains the channels seperated by ":" and ",". A third way is
> to combine both methods.
>
> > Thanks
> > Jim Stockton
>
> No prob 🙂
0 Kudos
Message 4 of 4
(3,255 Views)
Jim,
It sounds like you may be trying to input just 'strings' and not 'string arrays'.
On your block diagram, rt-click on the channels terminal and select create constant or create control - you'll see it requires a string array vs. just a string.
This array is later used as the 'channel scan list' in a few subvis where the array of channels you list sets other configurations.
Good Luck, Doug
0 Kudos
Message 3 of 4
(3,255 Views)