NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Time Stamp not handled properly in TestStand

TestStand is interoperating LabVIEW time stamp of 12:00:00PM as 00:00:00 PM.  I will return false for the following expression from the same day 12:00:00PM > 11:59:00 AM.  See my attached example, I feel both test should pass.  I am using TS2010 and LV2010 I saved to earlier versions so more people will be able to evaluate the code.

 

Thanks

Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Message 1 of 5
(3,770 Views)

Why don't you convert the timestamp to a numeric 'seconds' value and do the evaluation on that?

CTA, CLA, MTFBWY
Message 2 of 5
(3,750 Views)

I am also loging my results and I wanted the time stamp to be human readable.  However, I did end up send both the double and time stamp type to TestStand as a work around.  So thanks for the good idea.  I still would like to know why 12pm shows up as 00pm in TS.

Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Message 3 of 5
(3,745 Views)

Comparing string values for numeric values is dangerous.  For example, "10" > "1" returns false, since "1" comes before "10" alphabetically sorted.  It is highly discouraged.

 

I have reported the issue for displaying noon as 0:00:00 PM rather than 12:00:00 PM to R&D to investigate and hopefully fix in a future version of TestStand.

Message 4 of 5
(3,731 Views)

AllenP

 

I agree with the danger of comparing strings now that I am better educated on the subject.  Thanks for the reply and reporting the issue to R&D for me.

 

Thanks

 

Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Message 5 of 5
(3,716 Views)