LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview 7 index waveform array by channel name string

I was messing around with the index array waveform function with a waveform array(3 elements). I had used the set waveform attribute vi with the name input set to "Channel Name." The index waveform array function would not return any data when I was passing a particular channel name to it. Inside the vi I noticed that the name input has to have the format "NI_ChannelName" to match the string constant. Is this explained in the documentation anywhere?? Wouldn't it be more useful to make this string constant a string control input that we wired data into?? Then we could index the waveform array based on any name input that we set with the waveform attribute function.
0 Kudos
Message 1 of 5
(3,635 Views)
The online help does toak about this a little. Under WDT Index Channel by Name you can read the information for channel name (channel name is the channel name of the waveform to extract from waveform array. To use this input, the waveform must have a channel name attribute. If you are using a virtual channel, you do not have to set the channel name attribute manually).

If you read about setting waveform attribute online help it states that channel name attribute is in the form of NI_ChannelName.
0 Kudos
Message 2 of 5
(3,635 Views)

Well Actually I had the same problem. 

 

And the help for index waveform array.vi  says......

 

 

channel name is the channel name of the waveform to extract from waveform array. To use this input, the waveform must have a channel name attribute. If you are using a virtual channel, you do not have to set the channel name attribute manually. 

 

Which does not mention the NI_ChannelName 

 

So where is the help that Brandon mentioned? 

0 Kudos
Message 3 of 5
(2,961 Views)

Hi 08,

 

despite reanimating an 11 year old thread that information you requested is given in the "Set Waveform Attribute Function" help as written by Brandon…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,956 Views)

OK the information is to be found but a link from the "Index Waveform Array" vi to this information would seem to be missing.

 

Generally I use the links in 'help' to find the information I need, be it examples or more detailed information but in this case I had to go to the forums which luckily for me are pretty good so thank you.

 

("pretty good" is British English for "wow fantastically amazing" in American English) 

0 Kudos
Message 5 of 5
(2,945 Views)