ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i label a signal so that when i save this signal in a .lvm file it shows the name?

I have 4 signals whose data i am saving using 'Write to measurement file' in a .lvm format. Two of those signals come from DAQ and so I am able to label them within the DAQ setting of 'Channel name'. But the other two signals show untitled. How can I name these signals so that I can have their data saved along with the name of the signal?
 
Help always appreciated!
Thanks
 
0 Kudos
Message 1 of 3
(4,191 Views)
Hi Tech Toad,

when using LVM, you won't be able to set the specific names directly. I would suggest to use TDMS for saving your data. Here you can set everything that you need. For example you can set the names of the channels.
Please have a look at the attached VI.

National Instruments
District Sales Manager
0 Kudos
Message 2 of 3
(4,167 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 3
(4,156 Views)