ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add waveform unit attribute to plot name in the plot legend?

I'd like to be able to display the unit attribute (NI_UnitDescription) for a waveform on a waveform graph in the plot legend. It looks like the only thing the plot legend displays is the channel name (NI_ChannelName). It's nice to have the separate channel name and units as part of the waveform data so it can be easily stored in a TDM file. Is there a way to get the plot legend to display something other than the channel name for waveform data? I'm using LV 8.2
 
George
0 Kudos
Message 1 of 3
(3,316 Views)

Hi, George.

You can always change the plot name so that it includes a human-readable unit -- IE, name your plot signal 1 (mV) instead of just signal 1. Obviously that's sort of a workaround, but there's no other way to display them on the plot legend. You do have a couple of other options, however -- you could create an XControl with code behind it to create that functionality. You could also just place a few string indicators on the front panel in such a way that they line up with the plot names (and then modify them programmatically).

Sorry I can't give you a better answer! I hope my suggestions help. Have a nice evening.

 
Sarah K.
Search PME
National Instruments
0 Kudos
Message 2 of 3
(3,303 Views)

Thanks. At least I know I'm not missing something obvious.

George

0 Kudos
Message 3 of 3
(3,296 Views)