Chapter 4
Programming
©
National Instruments Corporation
4-55
and the high value is set to be relative 1.25. The software scans the analog
channel 0 100 times. Each scan is at a gain of 1 and in RSE mode. Within
each scan, the sample interval should be 100 µs. Dithering should remain
off during the acquisition. Use polled input to obtain the data.
1.
Perform Step 1 of the
Example 1.
2.
Call
Configure_Board()
to clear all of the necessary registers bits.
Write_Strobe_0_Register
Write strobe 0 =1;
Write_Strobe_1_Register
Write strobe 1=1;
Configuration_Memory_High_Register
Channel Number=0;
Channel type =3;
Configuration_Memory_Low_Register
Last Channel =1;
Gain =1;
Polarity =0;
Dither enable =0;
3.
Perform Steps 3 through 9 of
Example 1.
4.
Call the function
Number_of Scans()
to load the number of scans.
Joint_Reset_Register
AI configuration start = 1;
AI_SC_Load_A_Register(24 bits)
Number of postrigger scan -1 = 99;
AI_Command_1_Register
AI SC Load=1;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end=1;
5.
Perform Steps 5 through 8 in
Example 2.
6.
Call the
Analog Trigger Control
.
Analog_Trigger_Etc_Register
Analog_Trigger_Mode =6 (low hysteresis);
Analog_Trigger_Drive=0;
Analog_Trigger_Enable=1(Enable);
Mis_Command_Register (8 bits)
Int/Ext Trigger =1 (PGIA2)