Chapter 4 Programming©National Instruments Corporation4-9PCI E Series RLPMpseudo-code for each example. The PCI E Series Register LevelProgrammer Manual Companion Disk contains the complete programs.The following pseudo-code examples and the programs on the CompanionDisk follow the flowchart structure presented in the DAQ-STC TechnicalReference Manual.Example 1This example acquires one sample from channel 0.Connect a voltage source to ACH0 on the I/O connector. Configurechannel 0 for bipolar RSE with no dithering. No external multiplexers arepresent. Sample analog input channel 0 at a gain of 1 and read the unscaledresult. Compare the unscaled value to the input voltage.The first two steps set up the E Series board, and the subsequent stepsconfigure the DAQ-STC.1. Set up the PCI board resources. Use the function Setup_Miteprovided on the Companion Disk.2. Configure the analog channel for the given settings.The function Configure_Board clears the configuration memory,clears the ADC FIFO, and then sets channel 0 to the given settings.(Clearing the configuration memory and ADC FIFO require windowedmode writes as well as board writes.)Write_Strobe_0_RegisterWrite strobe 0 = 1;Write_Strobe_1_RegisterWrite strobe 1 = 1;Configuraton_Memory_High_RegisterChannel number = 0;Channel type = 3;Configuration_Memory_Low_RegisterLast channel = 1;Gain = 1;Polarity = 0;Dither enable = 0;3. The programming of the DAQ-STC begins with the clockconfiguration.The function MSC_Clock_Configure selects the timebase for theDAQ-STC.