DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Time correction

I am looking for some help on a Time channel issue.  My problem is that when we record data through the afternoon 12:00a to 1:00 pm Diadem does not display it correctly.  I am wondering if we could take the current URI and add to it the ablity to correct the time channel to 24 hr format.  I have multiple users that run this URI and It would be helpful if I could simply make the correction in the code and not have to change multiple users formats in Diadem to read the 24 hr format.  Is that possible to do?  So instead of it going from 12:59:59.9999 to 1:00:00.0000 it would go to 13:00:00.0000.  If I can not add the code to the URI to correct it on the loading of the file if that is an issue then how would I do that in general with code?

 

Unfortunetly I do not currently have a log to send you for testing.  I will 

Download All
0 Kudos
Message 1 of 3
(5,483 Views)

Hi Jcheese (Lon?),

 

We can add AM/PM support to this DataPlugin.  The "Jan" part of the DateTime already forces the DataPlugin to parse each datetime value with custom VBScript code, so we can add any kind of parsing we want.  Ideally you would just add a " PP" suffix to the File.Formatter.TimeFormat property and be done with it, though I seem to remember that when you do that the DataPlugin gets picky about the number of fractional seconds matching exactly.  Anyway, we're past the Rubicon with this DataPlugin and have all possible VBScript options, which will be sufficient.

So, any time you want to send me a data file that has the offending DateTime values in it, I'll be happy to make the changes.  The one you sent loads beautifully with the version of the DataPlugin I updated for you last March.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 3
(5,464 Views)

I will find one get it to you.  Thank Brad!

PS - I am not but work with him.

0 Kudos
Message 3 of 3
(5,434 Views)