Chapter 4 Programming©National Instruments Corporation4-39PCI E Series RLPMIf (!VirtualFIFO)Wait until DACs have been preloaded.AO_Command_1_Register = 0x0554;18. Call AO_Start_The_Acquisition to pulse the software START1trigger.AO_Command_2_RegisterAO START1 pulse = 1;19. Poll the AO_FIFO_Full_St bit and write data from the array into thedata FIFO whenever the data FIFO is not full.while (there is more data to write){while (FIFO is not full){AO_DAC_FIFO_Data = data;}}Example 3This example generates a waveform using local buffer mode. This exampledoes not support the PCI-MIO-16XE-50 boards, because it has virtualanalog output FIFOs.Initialize the data FIFO with a 100 point buffer. Output the buffer 50 times.The update interval is 100 μs. Confirm operation with an oscilloscope.1. Perform Analog Output Example 2 Steps 1 through 9.2. Call AO_Counting to program the buffer size and the number ofbuffers. Configure the DAQ-STC for non-continuous operation(AO will stop on BC_TC). Load the BC counter with 49 (output thebuffer 50 times). Load the UC counter with 100 (the first buffercontains 100 points). Write 99 to UC Load Register A (eachsubsequent buffer contains 100 points).Joint_Reset_RegisterAO configuration start = 1;AO_Mode_1_RegisterAO continuous = 0;AO_Mode_2_RegisterAO BC initial load source = 0;AO_BC_Load_A_Registers (24 bits)Number of buffers -1 = 49;