LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert time (X-axis) from seconds to minutes

I have Graph indicator and I am trying to change the units of time axis (x) from seconds to minutes.
I wrote the small VI that increments the voltage at the output of the power supply in steps of 100 V every 1 min.
After each time interval of 1 minute passes by the voltage is incremented by 100V.
The resulting plot looks like stairs going up.
Since my time interval will always be fixed to 1 minute I wish I can change the x axis so that it is scaled in minutes instead of seconds.
So let's say I wanna go from 1 to 20 minutes on x axis in increments of 1 minute. Is that possible?

What are the options I have?

Thanks,
Pedja
0 Kudos
Message 1 of 7
(7,481 Views)
in the graph properties you can either scale it to be that way or you can have it do relative time and set it that way.

Hope this helps

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 7
(7,480 Views)
> I have Graph indicator and I am trying to change the units of time
> axis (x) from seconds to minutes.
> I wrote the small VI that increments the voltage at the output of the
> power supply in steps of 100 V every 1 min.
> After each time interval of 1 minute passes by the voltage is
> incremented by 100V.
> The resulting plot looks like stairs going up.
> Since my time interval will always be fixed to 1 minute I wish I can
> change the x axis so that it is scaled in minutes instead of seconds.
> So let's say I wanna go from 1 to 20 minutes on x axis in increments
> of 1 minute. Is that possible?
>
> What are the options I have?
>

The graph is receiving numeric x data and when displaying in time
format, assumes the data is in seconds.

You have se
veral options. If you are supplying a timestamp for each
reading, multiply by 60 so that the plotted data is in seconds instead
of minutes, then since that is how the graph interprets the timestamp,
your scale can still be set from 0 to 20 minutes, and the graph will put
the data where it belongs. If using a waveform, set the dT to 60.

The second option is to continue using minutes in your timestamp, then
on the graph either interactively or programmatically set the multiplier
to 60. This was once in Scale Formatting..., and I believe in 7 it is
in properties for the scale. Programmatically you have the same options
of multiplier and offset. Set multiplier to 60 and the graph will label
each unit you supply as if it were 60 units. For time, that makes
seconds look like minutes.

Greg McKaskle
Message 3 of 7
(7,480 Views)
Thanks for detailed instructions.
I am gonna try to implement it right away.

Pedja
0 Kudos
Message 4 of 7
(7,480 Views)

Hello folks,

i would like someone helps me in obtaining this. on the same graph to x axis with the time in two different formats. Like this:

19:40          19:42         19:46       etc. (and i'm able to do this)

   0                 120           240        (elapsed time in seconds on the same graph)

If i use the second axis in any of the waveform it goes different the the others (gets larger)

May you help me?

thanks

 

0 Kudos
Message 5 of 7
(7,300 Views)
You can't have two different scales on a Graph Indicator that I'm aware of.  Could you "scale" one set of points to the other?  Or use two Graph Indicators?
TheDillo
0 Kudos
Message 6 of 7
(7,281 Views)

hi,,,i m having problem

i want to convert y scale unit label from V to g..

i'm using svL scale voltage to EU in sound and vibration toolkit,,,

but the y scale in graph is not change

what shuld i do...

this is my VI

thank

 

 

0 Kudos
Message 7 of 7
(6,973 Views)