LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

time and date in X axis

Hi,


Is there a way to set a time on a X-axis coordonate of a waveform graph in this format hh:mm:sec? I guess this is possible on LabVIEW but I did not find under CVI 6.0 (I will buy the CVI 7.1 version also)

In fact, I would like to monitor an acquisition which can last few hours using a strip chart mode. At the beginning of the acquisition, time per division should be in sec then min, then hour.

Nicolas
0 Kudos
Message 1 of 7
(3,925 Views)
You could try changing the X-scale to display label strings instead of automatic labels. With label strings you can assign a particular label to a specific point in the x-axis. So supposing your x array is measured in seconds you could create label strings with a pattern of 600 (10 minutes) formatting strings as "10:00", "20:00" and so on.

This is useful if you use a graph, tah is yous x-axis is not changing during the test. In case you need to use a strip chart probably you can create all the necessary label strings before launching the test and let the the graph to update automatically the x-axis while points are drawn on the control. I had created a little sample that demontrates it.

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 7
(3,919 Views)
Hi Nicolas,
See the exe attached and please tell me if you are interested in having the source.
Regards,
0 Kudos
Message 3 of 7
(3,905 Views)
Hi dilution,

I was trying to look at your program but seems that the UIR is missing...


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 4 of 7
(3,897 Views)
Thank for your answer but your exe did not run since he requested me some missing file (_UP_GetIndexFromPoint).

Could you also send me your source code?
Thanking you in advance.

Nicolas
0 Kudos
Message 5 of 7
(3,895 Views)
Thank for your answer but your exe did not run since it requested me some missing file (_UP_GetIndexFromPoint).

Could you also send me your source code?
Thanking you in advance.

Nicolas
0 Kudos
Message 6 of 7
(3,895 Views)
Whole project attached. Hope it is not too big...
Message 7 of 7
(3,891 Views)