LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scaling the x-axis in seconds

I'm gettting data of a measurement and I would like to visualize these
data using a waveform graph. The problem is, that the x-axis of that
waveform graph is usually not a time axis but there are only numbers
continuouing until the progam is terminated. Can someone tell me how
to scale the x-axis with seconds instead of continuous numbers?
Thanks!
0 Kudos
Message 1 of 2
(2,572 Views)
You can format the X axis for time with the usual notation hh:mm:ss or, for long lasting tests, you can format it in a date+time manner.

To obtain the first representation (time only), right-click on the axis and choose Formatting... in the popup menu. In the panel that appears (X Scale Formatting) there is a box in the lower right corner: inside the box you will find the "Relative time (seconds)" option that permits you to format the X axis in time instead of pure numbers.
Once shown in time, you can still adapt the scale clicking on a label shown and writing either the number of seconds since midnight or the corresponding hh:mm:ss string. Example: to set the initial point of the scale to 12 o'clock, double click on the first label of the x axis and t
ype "43200" or "12:00:00": the axis will be rescaled showing 12:00:00 as the initial label.

The second option (X axis with date and time format) is obtained putting 'Time & Date' in the Format parameter inside the X Scale Formatting panel. You can customize date and time portions separately.

Hope this helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,571 Views)