06-25-2013 03:00 PM
Attempting to compare three timestmps with the 'In Range and Coerce' function. First off the 'In Range and Coerce' function will accept timestamps but does not work properly. I converted the Timestamps to DBLs but I get three doubles with the same values which is not right. Is there a problem converting timestamps to DBLs on aWindows7 64-bit system?
06-25-2013 03:50 PM - edited 06-25-2013 04:13 PM
the problem is how you format the indicators for precision .........(you have 15 digits to play with)
it may look the same in the some formats.... notice the difference?
06-26-2013 05:09 AM
What do you mean by "does not work properly"? What are you putting in, what are you getting out, and what are you expecting?
06-26-2013 06:09 AM
Tried inputing the timestamps to "In Range and Coerce", never rec'd a true condition for a result. Changed the timestamps to DBLs and added indicators. It appeared that th DBLS were the same while the timestmps were obviously different. The previous reply was correct, Iwas not looking at the DBL with enough significant digits as the doubles were different. The code is working now but I am curious as to why the timestamps were accepted but never produced the correct response.
06-26-2013 07:01 AM
When I tried the Coerce and In Range with timestamps, it worked for me. Can you post a VI with controls set to default a case that was not working for you?
06-26-2013 07:05 AM
It sounds like a race condition to me.
/Y
06-26-2013 07:23 AM
@Yamaeda wrote:
It sounds like a race condition to me.
/Y
My suspicion is that the OP flipped the high and low inputs. I've done that plenty of times.