LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the column header/channel name in an LVM file?

Hi all,

I made a VI (see attached JPG) that reads 2 voltages, but after calculations and other processes, ends up writing 6 columns of data to an LVM file (7 if you count the time).

I have read in other posts that you can change the name of each signal so that the header of each column in the LVM files doesn't just say "untitled". However, as you see in my code, some signals are numeric (double) and one is a logic (1 or 0), so there is no way to edit the waveform properties of those signals (since they are not waveforms).

Any ideas?

Thanks!
Message 1 of 4
(5,425 Views)
Once you have converted anything to a dynamic data type, it is an array of waveforms under the hood.  Use From DDT to convert your data to a 1D array of waveforms, change the label as mentioned in the other posts, then convert back to DDT with To DDT.
0 Kudos
Message 2 of 4
(5,422 Views)
I would suggest looking at this existing post:
 
 
I'll further mention that in the loop, for each channel you want to set the name of, the attribute name for the name of the channel is "NI_ChannelName".  The example in the thread above takes advantage of the fact that "NI_ChannelName" happens to be the first one defined.  I think it would be more robust to not bother reading the existing attributes, and instead just write the "NI_ChannelName" attribute with whatever new value you want.
0 Kudos
Message 3 of 4
(5,396 Views)
Thank you for the help.

I eventually understood...here's how I modified my VI (see attached image)

(the case assigns a different name to each channel)
0 Kudos
Message 4 of 4
(5,370 Views)