LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert to Dynamic Data without loosing the names?

Hey all!

I'd like to use the "Write to measurement file" express VI to store my data and therefore have to use the "Convert to Dynamic Data" Express VI to make signals out of my arrays. Unfortunately, the data looses its name going through this last VI, so that it isn't anymore titled in the saved file. I found a similar thread which was answered already but there the problem was the other way round, someone lost the names when converting signals to arrays...

Hope you can help me, thanks in advance!

Miclas
0 Kudos
Message 1 of 5
(4,237 Views)
Hello Miclas,
 
I guess I'm not clear how your array data is "titled" before going into the conversion to DDT.  If you would be able to provide a small VI that demonstrates this behavior with some sample data, I could probably help with this.
 
Take care,
Jeff
Message 2 of 5
(4,225 Views)
The only way I see to keep the name is the following.

1. Convert the array to a waveform data type.
2. At the same time add an attribute to the waveform name 'NI_ChannelName' with the name you want to associate with your data.  This entry will be your Signal Name and will show up in your output file.
Randall Pursley
Message 3 of 5
(4,217 Views)
Thanks very much for your help. In the end, Randalls suggestion led to the attached solution. The only problem was, that the channels lost their time information, so that the "Write to Measurement" VI just showed a column of zeros for the time. Adding a signal from any timer solves this problem. It should come into the upper channel, to show its time in the first column of the saved file.

Thanks again!

Miclas
0 Kudos
Message 4 of 5
(4,198 Views)
If you define a dt value for the waveform data when you input the array data and you change the properties of the Write to Measurement File to allow one column only for X Value columns, then it will generate a column of time data with interval dt to go along with each point of your data.
Randall Pursley
0 Kudos
Message 5 of 5
(4,168 Views)