LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Channel Name after passing express vi

Hello,

 

I'm sending my dynamic data through the express vi (statistic calculation) to get the RMS value.

After the calculation I get my RMS value for each channel but the channel names are missing.

 

Is there a possibility to keep the names?

 

pho_nox

0 Kudos
Message 1 of 6
(2,972 Views)

Hi pho_nox

here are a programatic solution.

Frontpanel.PNGBlockdiagram.png

0 Kudos
Message 2 of 6
(2,935 Views)

Hi,

 

I also tried this but the get/set of the attributes only works for one channel.

 

--> I wrote a VI with a for loop and an array for getting and setting the names. It works (see attached picture).

But when I insert the vi in my main program I get an memory leak problem after some iterations. Maybe I have to allocate or delete the array in another way?

 

 

0 Kudos
Message 3 of 6
(2,919 Views)

Hi,

 

i think your code is a bit messy

 

Something easier like that should work without any memory issue :

 

snippet 4.png

 

Giuliano Franchetto
Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
0 Kudos
Message 4 of 6
(2,907 Views)

I try to explain:

 

I'm reading the size of my dynamic data to get the numbers of channels.

I'm initializing an string array with this size.

I'm writing a channel name in each array index.

Then I'm reading the channel names to set the attrributes for the second signal.

 

I'm open for any other solution - this was my first try and it works... except the memory leak 🙂

 

0 Kudos
Message 5 of 6
(2,900 Views)

thx I will try!

 

0 Kudos
Message 6 of 6
(2,899 Views)