Chapter 4 General-Purpose Counter/Timer©National Instruments Corporation4-35DAQ-STC Technical Reference ManualFunction Read_Gi_HW_Save_Registers{Declare variablessave=0;/*Read from the AI_Status_1_Register to check the G0_Gate_Interrupt_St orread from the AO_Status_1_Register to check the G1_Gate_Interrupt_St.If the status bit is set, read the hardware save registers (24 bit value). */if (Gi_Gate_Interrupt_St)save = Gi_HW_Save_Registers;}4.6.1.15 Enabling the General Purpose Counter/Timer Output PinThe output pin for each general purpose counter/timer must be enabled before it can be used.This is required for applications such as single or contiuous pulse generation.Function Enable_Gi_Out{GPFO_i_Output_Enable=1;GPFO_i_Output_Select=0;}4.6.2 Bitfield DescriptionsBits in the register bit maps are organized into bitfields. A bitfield can contain one or morebits. Only bits with contiguous locations within a register can belong to a bitfield. The highand low pairs of load and save registers for 24-bit counters are also treated as bitfields. TheGPCT-related bitfields are described below. Not all bitfields referred to in section 4.6,Programming Information, are listed here. To locate a particular bitfield description withinthis manual, refer to Appendix B, Register Information.Gi_Analog_Trigger_Reseti = 0 bit: 3 type: Strobe in: G0_Command_Register address: 6i = 1 bit: 3 type: Strobe in: G1_Command_Register address: 7This bit clears the hysteresis registers in the analog trigger circuit. Set this bit to 1 at the timeyou arm general-purpose counter i if you want to use analog triggering in hysteresis mode forany general-purpose counter i input signal. Before setting this bit to 1, make sure that theanalog trigger is not being used by any other part of the DAQ-STC. You should not set thisbit to 1 in any other case. This bit is cleared automatically.