Hello Ralph,
To use this method, you do not need an external clock. What you are doing is setting up a counter to perform a retriggerable finite pulse train.
DAQmxCreateCOPulseChanFreq()to set up the pulse train generation, frequency, duty cycle, etc...
DAQmxCfgImplicitTiming() to set up the number of finite samples to generate
DAQmxCfgDigEdgeStartTrig() to specify the trigger source
DAQmxSetStartTrigRetriggerable() to set the retriggerable property to TRUE.
You then use this pulse train as the external clock when setting up your Analog Input (AI).
DAQmxCreateAIVoltageChan() to set up channel
DAQmxCfgSampClkTiming() to set the clock to the counter output
DAQmxReadAnalogF64() to read the values.
With this method, everytime a trigger is received, a finite pulse train is generated which clocks your AI.
You do not need to specify a gate terminal. That is all taken care of internally.
Let me know if you have any further questions.
Sean C.
Applictions Engineer
National Instruments