08-14-2013 07:37 AM
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
08-16-2013 05:17 AM
Hi pho_nox
here are a programatic solution.
08-16-2013 09:24 AM
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?
08-16-2013 10:40 AM - edited 08-16-2013 10:48 AM
Hi,
i think your code is a bit messy
Something easier like that should work without any memory issue :
08-16-2013 10:51 AM
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 🙂
08-16-2013 10:52 AM
thx I will try!