LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

express VI renames channels

Hi,

I am using express VIs to acquire, filter and resample data from 18 analog channels. The channels are all named in the DAQ assistant Express VI. Each time it goes through another Express VI the channel name is changed. By the time I get through all the Express VIs I am using, each channel name is "Filtered (Resampled)" or "Formula Result (Resampled)" which shows up on the legend of my chart. How do I prevent this from happening or how do I change the channel names back? Thanks,

Mike
0 Kudos
Message 1 of 4
(4,836 Views)
Mike,

I what Express VIs are you passing your data through? I can take a look at them and see about the labeling. A workaround would be to just re-label the plots on your chart, but I could understand the desire to have them named consistently throughout.

cheers,
Brett
0 Kudos
Message 2 of 4
(4,829 Views)

I too have the same problem. I am dynamically sizing my plot legend in accordance to the number of channels i am selecting from a Dynamic Data stream. This stream starts of with 16 channels and ends up with 21 after I run the data through some of the express vi's. My problem is useless names for plots.

Can I chnage the name of a single or more, channels within a Dynamic data stream, so the channel name is reflected correctly(meaningful) when the data finally reaches a Graph plot?

Cheers

Mark

 

0 Kudos
Message 3 of 4
(4,759 Views)
Hey Mark!

So to change the names that are displayed on the Waveform charts you need to change the attribute for that waveform, which is a relatively simple process for which we have fuctions.  Under the Functions » Programming » Waveform palette (in LabVIEW 😎 there should be a function for Get Waveform Attribute and Set Waveform Attribute.  If you have LabVIEW 7.x and below they are on the Functions » Waveform palette.  For tthe example below, I got all of the names of the attributes and then set the first value, which is the channel name attribute in my case.  I convert my dynamic data type (DDT) into a 1D array of waveforms using the From DDT Express VI and then name each Andy, which you would probably want to make a more meaningful name for your application.  My example could easily be adapted for a much larger data set. 


Please repost if you have any other questions!
Andy F.

Message Edited by Andy F. on 03-23-200606:12 PM

-----------------------------------------------------------------
National Instruments
Message 4 of 4
(4,748 Views)