Chapter 4 Programming©National Instruments Corporation4-29PCI E Series RLPM13. Poll the AI FIFO not empty flag in the AI_Status_1_Register until notempty and read the ADC FIFO data in the ADC_FIFO_Data_Register.Do{If (AI FIFO not empty) thenread FIFO data;} while (100 samples have not been read)Example 9This example scans 8 channels on an AMUX-64T.Use the default settings on the AMUX-64T, internal power, single-boardconfiguration, no temperature setting, and the shield unconnected. Scanchannels 0 through 7 on the AMUX-64T. Acquire 10 scans at a scaninterval of 200 μs and a sample interval of 20 μs. Connect a voltage sourceto channels 0 through 3 and ground channels 4 through 7. Compare theunscaled results to the applied voltage. Read the samples using polledinput.1. Perform Analog Input Example 1 Step 1.2. Perform Analog Input Example 1 Step 2 for channels 0 and 1. Onlychannel 1 has Last channel set to 1.3. Perform Analog Input Example 1 Steps 3 through 6.4. Call the functionAI_Initialize_Configuration_Memory_Output to output onepulse and access the first value in the configuration FIFO. Thisfunction also configures the DIO circuitry for the AMUX-64T.AI_Command_1_RegisterAI convert one pulse = 1;AI_Mode_2_RegisterAI external mux present = 1;DIO_Control_Register = 0x0800;DIO_Control_Register = 0x0000;DIO_Output_Register = 0x0000;DIO_Control_Register = 0x0003;DIO_Control_Register = 0x0803;DIO_Control_Register = 0x0003;5. The function AI_Board_Environmentalize configures the boardfor any external multiplexers.Joint_Reset_RegisterAI configuration start = 1;