01-06-2014 04:18 AM - edited 01-06-2014 04:26 AM
I would like to change the physical unit of an y-axis in plot for a waveform chart(xy graph) in the same way I change the unit in an numerical control. How can I do that ?. I use LV2012.01f4 32bit.
Solved! Go to Solution.
01-06-2014 04:34 AM
01-06-2014 04:42 AM - edited 01-06-2014 04:43 AM
Hi Joern,
it seems the chart doesn't support units:
- you cannot make the "unit" visible" when right-clicking the chart and look under "visible objects"...
- even when there are properties available regarding the Y axis unit they don't seem to have an effect on the chart's appearance...
(Tested with LV2009)
What is the reason to show an unit at the Y axis? You can always change the axis label, that should be sufficient for most purposes...
01-06-2014 05:00 AM - edited 01-06-2014 05:01 AM
The reason behind is that I have an application which stores data in binary file format without the unit information. Now I want to have the opportunity to make these data visible in a plot of an waveform chart (or XY graph) dependant from users choice of the unit system (SI metric system or US custom system). That means I want to see my stored values in mm if the users choose SI and inches if the users chooes UScustom without changing my stored values.
Best regards,
Jörn
01-06-2014 05:41 AM - edited 01-06-2014 05:41 AM
Hi Joern,
then you should apply a base unit to your data before displaying them in the chart:
The chart does accept numbers with unit (in contrast to my former message), but you have to apply the unit to your data before wiring the chart...
01-06-2014 06:05 AM
Exactly what I found out in parallel. Thanks again for your time .
Jörn
01-06-2014 06:36 AM - edited 01-06-2014 06:38 AM
Little drawback with historical data already stored : If you stored your data without units but with units in mind for example mm instead of baseunit meter than you have to scale your data before drawing because the conversion only converts to baseunits. This could be complicated with complex unitmixtures.
01-06-2014 07:02 AM
01-06-2014 08:15 AM - edited 01-06-2014 08:22 AM
Let's assume your example and let's say the array contains values representing 1 to 5 mm. The array itself has no units but we know it is mm. That means I would like to see it in mm in the plot. In my example the first waveform graph. Now I convert to mm and simply copy the graph and wire from convert. Now I see 0.001 to 0.005 on the Y-Axis. After rescaling it is ok. Did I missed something ?.
01-06-2014 08:16 AM - edited 01-06-2014 08:27 AM
Hi Jörn,
could you PLEASE attach non-scaled graphics (for the FP)?
It seems you fiddled with multiplier/offset setting of the scale. Don't do this when you want to show numbers with units, the scaling is already done by the unit display:
Numeric data is unit-casted to "mm" and shown in "inches"...
And you should make the unit display visible (as in my picture, the small "in" left of the chart). That way you can easily change the shown unit!