General Discussions
P51 relative time parameter

Hello,

I have a bunch of numerical data I am reading in Labview with the Low Level 'Read Realtime' VI. I also have the DT85 calculate a time difference with the DT command and read the string through the 'Read Line' VI. The issue I have is that the DT command returns a string in the HH:MM:SS.mmm format.

I was wondering if there is a way to format the string so that I can receive it in Labview like another numerical value through the 'Read Realtime' VI instead of using both 'Read Realtime' and 'Read Line' VIs?

I looked into the P51 parameter but trying to change to any other value does not change the format returned. Is the P51 parameter for free format only? Any suggestions or computations the DT85 might be able to execute to get a numerical format?

Thank you,
Richard

Hello, I have a bunch of numerical data I am reading in Labview with the Low Level 'Read Realtime' VI. I also have the DT85 calculate a time difference with the DT command and read the string through the 'Read Line' VI. The issue I have is that the DT command returns a string in the HH:MM:SS.mmm format. I was wondering if there is a way to format the string so that I can receive it in Labview like another numerical value through the 'Read Realtime' VI instead of using both 'Read Realtime' and 'Read Line' VIs? I looked into the P51 parameter but trying to change to any other value does not change the format returned. Is the P51 parameter for free format only? Any suggestions or computations the DT85 might be able to execute to get a numerical format? Thank you, Richard

Hi Richard,

I assumed you expect to see string 14:25:30 as numeric 142530, is that correct?
Have you try P39=1, which return the time in seconds since midnight?
Or you may use system timer syntax 1ST (for second); 2ST (for minute) and 3ST (for hour).

Best regards,
Rudy Gunawan

Hi Richard, I assumed you expect to see string 14:25:30 as numeric 142530, is that correct? Have you try P39=1, which return the time in seconds since midnight? Or you may use system timer syntax 1ST (for second); 2ST (for minute) and 3ST (for hour). Best regards, Rudy Gunawan

Hi Richard,

If you wish to modify the driver, so it parses the response, the Vi to modify is the DT8x DecodeRecord.vi, as well as refer to the Tech Note, "TN-0046-A1 - DT80 Series fixed format mode"

Cheers,
Anthony

Hi Richard, If you wish to modify the driver, so it parses the response, the Vi to modify is the DT8x DecodeRecord.vi, as well as refer to the Tech Note, "TN-0046-A1 - DT80 Series fixed format mode" Cheers, Anthony
20
2
3
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft