LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Use Labview Timestamp in C++

Solved!
Go to solution

Hi,

 

I have to synchronize two softwares at 20 ms of accuracy, the first one use labview timestamp ( 128bits, 1904 ect ... ) and cannot be modified.

 

and the second is written in C++ using DAQmx, i have find the trick consisting in substracting the number of seconds of a classical struct tm.

But it is not accurate enough for me.

 

The only solution i found, is to use SYSTEMTIME Structure and use the same trick than the struct tm.

 

But, I don't find this very nice, So is it possible to use the same routine as labview in a classical C++ program ( or classical cvi program ) ?

 

Thanks in advance !

 

Eric

0 Kudos
Message 1 of 5
(4,270 Views)

Hi Eric,

 

LabWindows/CVI is not a C++ compiler, so might better post your question in the Measurement Studio for VC++ forum which you can find here

0 Kudos
Message 2 of 5
(4,264 Views)

Thanks for the answer. I have made a mistake in the tittle.

 

But if a solution works on LabWindows/CVI, i will be able to port it in C++. ( i have the same problem in LabWindows / CVI too )

 

😉

 

0 Kudos
Message 3 of 5
(4,262 Views)
Solution
Accepted by GraOOu

Hey Eric -

 

I'm not sure if you're still working on this, but I thought I'd mention the CVI absolute time API in the utility library.  It uses the National Instruments Binary Time Format, which I think is what LabVIEW should be using, and should meet your needs.

 

NickB

National Instruments

Message 4 of 5
(4,192 Views)

Hi nickb,

 

Like you, i am always working for customer's satisfaction Smiley Very Happy

 

Thanks a lot for the answer !

 

Problem is solved.

0 Kudos
Message 5 of 5
(4,168 Views)