Chapter 4
Programming
4-54
©
National Instruments Corporation
Figure 4-1.
Analog Trigger Structure
To set the low and high analog thresholds, the DACs must be written with
appropriate values. The protocol for writing to these DACs is described in
Chapter 5,
.
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 an input. For more information about this function, see the Programming
Analog Trigger section of Chapter 10 in the DAQ-STC Technical
Reference Manual.
The following example is written for the PCI-MIO-16E-1,
PCI-MIO-16E-4, and PCI-6071 boards, which use 8-bit CALDAC for the
analog trigger; the PCI-6052E, PCI-MIO-16XE-10, PCI-6031E,
PCI-6032E, and PCI-6033E use an AD8522, which contains two 12-bit
DACs. The PCI-MIO-16XE-50 does not support analog triggering. The
write cycle for the 8-bit and 12-bit DACs is illustrated in Chapter 5 of this
manual in the
section. The example uses low-hysteresis
mode and the PGIA as the triggering source. The low value is set to be 0 V,
Analog
Input
Channels
PFI0/TRIG1
PGIA
+
-
ADC
DAQ-STC
Mux
Serial
DAC
Serial
DAC
Int/Ext Trig
High
Comparator
Low
Comparator
Analog_Trigger_Drive