Chapter 4
Programming
©
National Instruments Corporation
4-51
The function
Analog_Trigger_Control
enables analog triggering to set
a mode of operation. When analog trigger is enabled, the analog trigger
signal takes over the PFI0/TRIG1 slot, and this pin can no longer be used
as input. For more information about this function, see the Programming
Analog Trigger section of Chapter 10 in the DAQ-STC Technical Reference
Manual.
Information on the Analog Trigger example is in Chapter 10 of the
DAQ-STC Technical Reference Manual. The following example is written
for AT-MIO-16E-1, AT-MIO-16E-2, and AT-MIO-64E-3, which use 8-bit
CALDAC for analog trigger; AT-MIO-16XE-10 and AT-AI-16XE-10 use
AD8522, which contains two 12-bit DACs. The AT-MIO-16E-10,
AT-MIO-16DE-10, and AT-MIO-16XE-50 do not support analog trigger.
The write cycle for the 8-bit DAC and 12-bit DAC is illustrated in Chapter 5
of this manual in the
section. The example uses
low-hysteresis mode and PGIA as the triggering source. The low value is
set to be 0 V, and the high value is set to be relative 0x81 V. The software
scans the analog channel 0 five times. Each scan is at a gain of 1 and in RSE
mode. The scan interval is 1 ms.Within each scan, the sample interval
should be 100 polled input for obtaining the data.
1.
Perform Analog Input Example 1 Step 1.
2.
Call the configure_Board() to clear all 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 Analog Input Example 1 Steps 3-9.
4.
Call the function Number_of Scans() to load the 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
Summary of Contents for AT-AI-16XE-10
Page 131: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 2 National Instruments Corporation...
Page 132: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 3 AT MIO E Series RLPM...
Page 133: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 4 National Instruments Corporation...
Page 134: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 5 AT MIO E Series RLPM...
Page 135: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 6 National Instruments Corporation...
Page 136: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 7 AT MIO E Series RLPM...
Page 137: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 8 National Instruments Corporation...
Page 138: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 9 AT MIO E Series RLPM...
Page 139: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 10 National Instruments Corporation...
Page 140: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 11 AT MIO E Series RLPM...
Page 141: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 12 National Instruments Corporation...
Page 142: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 13 AT MIO E Series RLPM...
Page 143: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 14 National Instruments Corporation...
Page 144: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 15 AT MIO E Series RLPM...
Page 145: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 16 National Instruments Corporation...
Page 146: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 17 AT MIO E Series RLPM...