11-21-2006 02:50 PM
11-27-2006 03:51 PM
11-28-2006 01:04 PM
#define DAQmxErrChk(functionCall) if( DAQmxFailed(error=(functionCall)) ) goto Error; else
is the declaration of the Macro (as in the examples)
The first call
/*********************************************/
// DAQmx Configure Code
/*********************************************/
DAQmxErrChk (DAQmxErrChk = DAQmxCreateTask ("", &taskHandleAnalog2));
DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandleAnalog2,chanAnalog2,"",min,max,DAQmx_Val_Volts,""));
produces this error 109, 9 Undeclared identifier 'DAQmxErrChk'.
When I check the project / Macros / DAQmxErrCheck is not listed
In the example code project / Macros / DAQmxErrChk is listed along with DAQmxFailed
I have searched for "How To Register" a macro, and can not find any information.
I have edited the Example Acq-IntClk.c and it performs my task very well.
We are using the USB-6008 in 7 locations. We needed to identify 2 special setups.
We jumpered the Analog I/O side to identify these setups.
I have "Cut & Pasted" the necessary code from the Example Acq-IntClk.c into our main code.
I am receiving the above mentioned error. Can you help ?
11-29-2006 02:40 PM