Chapter 4 General-Purpose Counter/Timer©National Instruments Corporation4-33DAQ-STC Technical Reference Manual4.6.1.12 Pulse-Train Generation for ETSETS is a data acquisition operation in which data on a repetitive waveform with a frequencyhigher than the Nyquist frequency of the system is obtained by sampling the waveform atinstants skewed in relation to the beginning of each wave pulse. The DAQ-STCgeneral-purpose counters can be used to generate timing for ETS.No errors are detected in these applications. Since the period incrementing circuitry in theDAQ-STC is an adder with no overflow detection, you will not be notified if overflow occurs.Use this function to program a counter for pulse-train generation for ETS. Program theGi_Source to select the signal that you want to use as a reference clock. Program the Gi_Gateto select the trigger signal that initiates each pulse.Function Pulse_Train_Generation_For_ETS{Gi_Autoincrement = increment value for delay from trigger;Gi_Load_Source_Select = 0;Gi_Load_A = delay from software arm to first edge of pulse - 1;∑Gi_Load = 1;∑Gi_Load_B = pulsewidth -1;Gi_Load_Source_Select = 1;Gi_Source_Select = 0 (G_IN_TIMEBASE1) or 1 through 10 (PFI<0..9>) or11 through 17 (RTSI_TRIGGER<0..6>) or 18 (IN_TIMEBASE2)or 19 (other G_TC);Gi_Source_Polarity = 0 (count rising edges) or 1 (count falling edges);Gi_Gate_Select = 1 through 10 (PFI<0..9>) or 11 through 17 (RTSI_TRIGGER<0..6>)or 18 (AI START2) or 19 (UI2_TC) or 20 (other G_TC) or21 (AI START1) or 31 (logic low);Gi_OR_Gate = 0;Gi_Output_Polarity = 0 (active low) or 1 (active high);Gi_Gate_Select_Load_Source = 0;Gi_Gate_Polarity = 0 (disable inversion) or 1 (enable inversion);Gi_Output_Mode = 1 (one clock cycle output) or 2 (toggle on TC) or3 (toggle on TC or gate);Gi_Reload_Source_Switching = 1;Gi_Loading_On_Gate = 0;Gi_Loading_On_TC = 1;Gi_Gating_Mode = 2;Gi_Gate_On_Both_Edges = 0;Gi_Trigger_Mode_For_Edge_Gate = 2;Gi_Stop_Mode = 2;Gi_Counting_Once = 0;Gi_Up_Down = 0;Gi_Bank_Switch_Enable = 0;