LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time on X-Axis

Hello all,

is there a way to refresh the values for a chart, at 100 ms
(mili-seconds) and display the values so that the x-axis shows them so
and not at the refresh rate.

if the refresh time is 100 ms, the x-axis changes at a rate such that
the value on the x-axis scale is 10 times faster than a normal second.
is it possible to Format the chart such that the indicator shows the
actual time elapased i.e. 1 sec for ever second elapsed rather than
what is happening now, 10 seconds elapse on the x-axis for every
actual second.

i hope i was clear...

thanks
-U
0 Kudos
Message 1 of 6
(3,156 Views)
Hi U,

If I understand correctly what you are trying to achieve a very quick way to do this is to Right Click on your chart, select properties and then the scale tab, select x- axis and change the multiplier to 0.1.

Hope this helps,

Nick
0 Kudos
Message 2 of 6
(3,156 Views)
I think the best way to present time data is collecting the time points as well, and then displaying the data in an X-Y graph. The X axis time formatting is then rather nice. You can then set the refresh yourself by using some of the timing funtions.

Martin
0 Kudos
Message 3 of 6
(3,156 Views)
Hi U,

Sorry make that 0.01

Hope that helps

Nick
0 Kudos
Message 4 of 6
(3,156 Views)
> if the refresh time is 100 ms, the x-axis changes at a rate such that
> the value on the x-axis scale is 10 times faster than a normal second.
> is it possible to Format the chart such that the indicator shows the
> actual time elapased i.e. 1 sec for ever second elapsed rather than
> what is happening now, 10 seconds elapse on the x-axis for every
> actual second.
>

There are two primary datatypes that can be wired to a chart. The
waveform contains a timestamp, and the chart will display these
timestamped values faithfully. If you are instead wiring only
amplitudes, then the chart has to make up timestamps. It doesn't do
this based upon when the values arrive to the chart, but rather based on
the number of points wired and the Offset and Multiplier
for the scale.
The Offset determines the time of the first point, and the Multiplier
determines the time between adjacent points. You can set this value to
anything you like, and the chart will be labeled using this information
and this has nothing to do with the rate that the points are sent to the
chart.

Greg McKaskle
0 Kudos
Message 5 of 6
(3,156 Views)
Nick Storton wrote in message news:<50650000000500000061270100-1042324653000@exchange.ni.com>...
> Hi U,
>
> Sorry make that 0.01
>
> Hope that helps
>
> Nick


Thanks a million, exactly what i've been looking for...you hit the
nail on the head...
-U
0 Kudos
Message 6 of 6
(3,156 Views)