07-11-2011 09:09 AM
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
07-11-2011 01:29 PM
Why don't you convert the timestamp to a numeric 'seconds' value and do the evaluation on that?
07-11-2011 02:36 PM
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.
07-11-2011 04:15 PM
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.
07-12-2011 06:32 AM - edited 07-12-2011 06:34 AM
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