LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CWGraph retrieving data from X time axes

Hi,

I'm using Labwindows CVI 6.0 FULL on Win2K, my question is:

I have a CWGraph (ActiveX) my X axes is set to be a date type ( format: mm/dd/yy hh:nn:ss) I'm passing the value to the control as double, and the control is formatting my double value as a date. But how can I retrieve the correct value as a * char ? I want to know what is the correct date of my value.

Thank you,
0 Kudos
Message 1 of 2
(2,886 Views)
This is a tricky subject. Because this component is made for use primarily in VB, the x axes is easy to format in VB. I have attached a good example of a real-time update to the x-axis in Visual Basic.

If you wish to further parse the date values, you could use the table found on this page.


The complication of doing this in CVI, is that you need a timing function similar to the Visual Basic 'Now'. I could not find anything regarding the operation of the Now function (or a 'C' code equivalent).

Your last option is to use the built-in graph in CVI and track the time with the ansi-c 'date and time' functions. You could then use label strings on your graph and avoid the ActiveX
component altogether.

regards,
Eric
0 Kudos
Message 2 of 2
(2,886 Views)