LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

plot time

Hi,

I am new in LabWindows/CVI and I have to modify a program made by my friend. I have a little problem.... I want to plot the time in the x-axis and in the y-axis another variable. How can I use plotXY to put in the x-axis the time? Or, Is there another way to plot the time in the x-axis?

Thanks,

ToNi.
0 Kudos
Message 1 of 3
(3,150 Views)
It depends on which time you want to plot.

First of all, you can put in x-axis the elapsed time in seconds: this can be useful for short tasks (no more that a few minutes) an is quite easy to read.

If your process is longer or if you want to have actual time on the axis, you may want to use string labels for the x-axis. This method is used for example in excel: x-axis value is given in fractions of a day, pesented in time format so that, for example, 0.25 gives 6 o'clock in the morning, 0.5 gives noon and so on.

As a priciple, you can use whichever unit you want for the x-axis and create your own set of labels to associate to some x values to display on the axis.

As an example, you can look at this thread.


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 3
(3,136 Views)
Hello Toni,

have you examined the examples that come with CVI? You should have one project called timeaxis.prj which shows what you need.

Regards,

Jorge M.
0 Kudos
Message 3 of 3
(3,122 Views)