Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Find Documentation for DAQmxSetTrigAttribute

Dear all,

The example program that comes with NIDAQmx (DigPulseTrain-Cont-PauseTrig) uses a function called DAQmxSetTrigAttribute but I cannot find any documentation on the use of this function or any of the others in the same block within the NIDAQmx.h header file:

The example program contains the following lines:

DAQmxErrChk (DAQmxSetTrigAttribute(*taskHandle,DAQmx_PauseTrig_Type,DAQmx_Val_DigLvl));
DAQmxErrChk (DAQmxSetTrigAttribute(*taskHandle,DAQmx_DigLvl_PauseTrig_Src,triggerSource));
DAQmxErrChk (DAQmxSetTrigAttribute (*taskHandle, DAQmx_DigLvl_PauseTrig_When,pauseWhen));

And the NIDAQmx.h header file contains these function definitions:
int32 DllExport __CFUNC_C DAQmxGetTrigAttribute (TaskHandle taskHandle, int32 attribute, void *value, ...);
int32 DllExport __CFUNC_C DAQmxSetTrigAttribute (TaskHandle taskHandle, int32 attribute, ...);
int32 DllExport __CFUNC DAQmxResetTrigAttribute (TaskHandle taskHandle, int32 attribute);


Does anybody know what the different parameters are and how to use these functions?

Regards

Martin Dale
0 Kudos
Message 1 of 2
(2,798 Views)
The attribute ids that are valid for the DAQmxSetTriggAttribute() are in the NIDAQmx.h file can be found under the heading

"//********** Trigger Attributes **********"

These include attributes for start, reference, pause, and arm start triggers.

I hope this helps!
gus....
0 Kudos
Message 2 of 2
(2,796 Views)