Chapter 4
Programming
4-30
©
National Instruments Corporation
AI_Mode_2_Register
External mux present = 1;
AI_Output_Control_Register
AI external mux clock select = 3;
AI_DIV_Load_A_Register
AI number of channels ratio -1 = 3;
AI_Command_1_Register
AI DIV load = 1;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end = 1;
6.
Perform Analog Input Example 1 Step 9.
7.
Call the function
Number_of_Scans
to load the number of scans.
Joint_Reset_Register
AI configuration start = 1;
AI_SC_Load_A_Registers (24 bits)
Number of posttrigger scans - 1 = 99;
AI_Command_1_Register
AI SC Load = 1;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end = 1;
8.
The function
AI_Scan_Start
selects the scan start event.
Joint_Reset_Register
AI configuration start = 1;
AI_START_STOP_Select_Register = 0x0060;
AI_SI_Load_A_Registers (24 bits)
AI SI special ticks - 1 = 1
AI_Command_1_Register
AI SI load = 1;
AI_SI_Load_A_Registers (24 bits)
AI AI ordinary ticks - 1 = 3999;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end = 1;
9.
Perform Analog Input Example 1 Step 11.