LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Physical unit for (analog) waveform data

The node "Create anaog waveform" (de: Signalverlauf generieren) does not accept (1-dimensional, double) array data with a unit. Why?

Even when I create a "waveform constant" and include a compatible unit.

 

The problem is, if I display the array data in a graph, I see the unit, but no meaningful time axis.

If I convert these data to waveform (as it really is), I see a correct time scale, but no unit.

Why so?

 

By the way, can I extract the unit from a double value to a string, then set NI_UnitDescription (waveform additional variant data), and vice versa?

 

henni

0 Kudos
Message 1 of 2
(2,724 Views)

Hi Henni

 

You can set the unit for the Y-scale in the properties of the graph like this:

 

21575i1B2CCF5D91192848

 

or set it programmatically

21577iE374FE65770917DF

 

It is not possible to set a unit for a waveform, you can do this with set attributes but then you will also not see the units in the graph.

Example for setting the attributes you can find here: C:\Program Files\National Instruments\LabVIEW 2009\examples\Waveform\Operations.llb\Create Waveform example.vi

 

Hope that helps

 

Kind regards

Pixar

0 Kudos
Message 2 of 2
(2,693 Views)