04-14-2011 03:58 AM
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
Solved! Go to Solution.
04-14-2011 08:49 AM - edited 04-14-2011 08:49 AM
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
04-14-2011 10:14 AM
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
04-14-2011 10:57 AM
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