LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Update RT system time

Solved!
Go to solution

Hi.

I'm using a PXI 8108 RT with Labwindows/CVI Real-Time module and I want to know if a fonction to update RT system time exists?

 

I haved tried to use SetSystemTime but this function is not support by Labview RTOS.

 

Best Regards

 

Armand

0 Kudos
Message 1 of 4
(2,991 Views)
Solution
Accepted by topic author Mandar45

Hello Armand -

 

Instead of using the LabWindows/CVI implementation of SetSystemTime, you should use the Win32 implementation.  To do this, ensure you've included windows.h as the first include file in your source. 

 

Let me know if you have any questions.

 

NickB

National Instruments

0 Kudos
Message 2 of 4
(2,987 Views)

Hi Nick!

I have already tried what you suggest me to do and it does not work. I have a linking error ( "undefined symbol _CVI_SetSytemTime@12").

 

any idea ?

 

Armand

0 Kudos
Message 3 of 4
(2,980 Views)

In fact your solution works. I have forgotten to define SDK_CONFLICT_PRIORITY. Moreover i have realise that Win32 setsystemtime function does not have same argument as CVI function.

 

thanks

 

Armand

0 Kudos
Message 4 of 4
(2,976 Views)