Chapter 3 Analog Output Timing/ControlDAQ-STC Technical Reference Manual3-24 ©National Instruments CorporationAO_START1_Edge = 1;AO_START1_Sync = 1;}Else{AO_START1_Select = 1 through 10 (PFI<0..9>) or 11 through 17(RTSI_TRIGGER<0..6>);AO_START1_Polarity = 0 (active high) or 1 (active low);AO_START1_Edge = 0 (edge detection disabled) or 1 (edge detection enabled);AO_START1_Sync = 0 (synchronization disabled) or 1 (synchronization enabled);}AO_Delayed_START1 = 0 (use the START1 trigger immediately) or 1 (delay theSTART1 trigger by synchronizing it to the BC source);∑AO_Trigger_Length = 0 (PFI6/AO_START1 will output DA_START1) or1 (PFI6/AO_START1 will output a pulse stretched version of DA_ST1ED);AO_Configuration_End = 1;End critical section;}3.6.1.5 Number of BuffersUse this function to select the number of updates to be performed (corresponding to thenumber of points in the buffer) and the number of buffer iterations. If you are using the localbuffer mode with mute buffers, this function will set the part of the delay parameters thatcorrespond to the number of points in the mute buffer and the number of iterations of thatbuffer. If you are using waveform staging, this function enables and disables muting for thefirst two buffers.The variables ao_last_load_register and ao_tick_count_to_use introduced in thisfunction will be used later in the functions for waveform staging (AO_Staged_ISR) andchanging the update rate during an output operation (AO_Rate_Change).For waveform staging operation, we assume that the parameters for each stage are stored inan array, defined as follows:bc_new_ticks /*contains the number buffer iterations in each MISB*/uc_new_ticks /*contains the number of updates in each buffer of the MISB*/new_mute_flag /*indicates whether the MISB will be muted (1 indicates muting)*/Function AO_Counting{Begin critical section;AO_Configuration_Start = 1;Declare variables