05-21-2009 03:20 AM
I wish to use the 'OAT Convert to Even Angle Signal' VI with a speed signal in which the times are derived from absolute times, i.e. they are still doubles but they start from a very high number, e.g. 63,378,251,970.947, rather than 0.0. This does not seem to work (sorry, don't know the nature of the error message at this points as I am calling it via a DLL).
Is there any reason why this isn't possible?
05-21-2009 05:52 AM
I have carried out some further testing and the problem seems to be between the double values used to represent date and time objects in Measurement Studio and those used in LabVIEW.
I am creating the double values from .net DateTime objects using the Measurement Studio (MS) DataConverter function. This gives me double values that I can plot on MS graphs which, when they have the axis label formatting set to a date and time string, indicate the correct, original time. Values for dates around now (May 2009) are approximately 63,378,252,000.
I had assumed that these values would be compatible with LabVIEW but it appears that the value should be more like 3,325,700,000 for dates around now.
I can now see that the MS value works in seconds from January 1st 0001 and LabVIEW works from January 1st 1904. Does anyone know a nice way around this or am I forced to convert between these times using the difference in the dates?
05-22-2009 06:31 AM
Hi,
I personally don't see anyway to change this apart from converting it manually as Windows relies on it.
After digging around, I found there is a workaround for MS apps such as Excel that may inspire you.