08-16-2010 07:05 AM
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
08-17-2010 03:07 AM - edited 08-17-2010 03:09 AM
Hi Henni
You can set the unit for the Y-scale in the properties of the graph like this:
or set it programmatically
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