Thank you for your time and the sample code.
However, this is not exactly what I want to do.
Indeed I know the DAQmxGetSystemInfoAttribute function call. It works at run time.
What I need to do is to detect the Daqmx version at compile time
As usually, it will be easier with a C sample code
🙂Here is what I would like to write :
#if defined (_DAQMX_VER) && (_DAQMX_VER <= 7300)
if(DAQmxIsReadOrWriteLate (error)){
#else
DAQmxWaitForNextSampleClock (ghOutTask, 10, &error);
if(error){
#endif
MessagePopup ("PID Whith Hard Timed Loop Error", "No way to sustain the rate in real time");
gRunning=0;
}
Any idea ?
Regards, Philippe proud to be using LabWindows since version 1.2
// --------------------------------------------------------------------------------------------