Chapter 4
Programming
4-22
©
National Instruments Corporation
AI_START_STOP_Select_Register = 0x0062;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end = 1;
7.
Perform Analog Input Example 1 Step 11.
8.
Convert_Signal
selects the convert signal for the acquisition.
Joint_Reset_Register
AI configuration start = 1;
AI_Mode_3_Register
AI SI2 source = 1;
AI_SI2_Load_A_Register
AI SI2 special ticks -1 = 1999;
AI_SI2_Load_B_Register
AI SI2 ordinary ticks -1 = 1999;
AI_Mode_2_Register
AI SI2 reload mode = 1;
AI_Command_1_Register
AI SI2 load = 1;
AI_Mode_2_Register
AI SI2 initial load source = 1;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end = 1;
9.
Perform Analog Input Example 1 Step 4.
10. Call
AI_Arming
to arm the analog input counter.
AI_Command_1_Register
AI SC arm = 1;
AI SI arm = 0;
AI SI2 arm = 1;
AI DIV arm = 1;
11. Poll the AI FIFO not empty flag in the AI_Status_1_Register until not
empty and read the ADC FIFO data in the ADC_FIFO_Data_Register.
Do
{
If (AI FIFO not empty) then
read FIFO data;
} while (20 samples have not been read)