LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DBL conversion from Timestamp not working

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?

0 Kudos
Message 1 of 7
(2,744 Views)

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?

Example_VI.png

0 Kudos
Message 2 of 7
(2,731 Views)

What do you mean by "does not work properly"?  What are you putting in, what are you getting out, and what are you expecting?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 7
(2,687 Views)

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.

0 Kudos
Message 4 of 7
(2,678 Views)

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?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 7
(2,671 Views)

It sounds like a race condition to me.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 7
(2,669 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 7
(2,664 Views)