From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

What is DAQmxSetTrigAttribute?

In the example code Download - CPlusPlus_Retriggerable_AI_Using_Retriggerable_Counter.zip what is the function DAQmxSetTrigAttribute(counterTask, DAQmx_StartTrig_Retriggerable, TRUE);? 
 
What does it do? 
 
What are the definitions for each of the parameters?
 
Thanks,
 
Kevin
0 Kudos
Message 1 of 2
(2,989 Views)
Hi Kevin,
 
The attribute ids that are valid for the DAQmxSetTriggAttribute() are in the included NIDAQmx.h file.  They can be found under the heading
 
"//********** Trigger Attributes **********"
 
Similarly, the attribute ids for the DAQmxSetBufferAttribute can be found under the heading
 
"//********** Buffer Attributes **********"
 
These attributes are each defined in the NIDAQmx.h file.  The parameters given to the functions include the task, the attribute, and the value to assign the attribute.
 
I hope this helps!
 
Thanks,
 
Justin M.
National Instruments
0 Kudos
Message 2 of 2
(2,967 Views)