Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 

Configuring Triggers for National Instruments Hardware

When using National Instruments (NI) hardware, there are additional trigger types and trigger conditions that you must be aware of. These device-specific property values are described below and in Appendix A.

Note:
Refer to current National Instruments hardware documentation for detailed information about these triggering choices.

Trigger Types and Trigger Conditions

The additional trigger types and trigger conditions for analog input objects associated with National Instruments hardware fall into two main types: hardware digital triggering and hardware analog triggering. These trigger types and the associated trigger conditions are described below.

Table 4-7: TriggerType and TriggerCondition Values for NI Hardware 
TriggerType
TriggerCondition
Description
HwDigital

None

The trigger occurs when a digital (TTL) signal is detected.

HwAnalogChannel

or HwAnalogPin

{AboveHighLevel}
The trigger occurs when the analog signal is above the specified value.
BelowLowLevel
The trigger occurs when the analog signal is below the specified value.
InsideRegion
The trigger occurs when the analog signal is inside the specified region.
LowHysteresis
The trigger occurs when the analog signal is less than the specified low value with hysteresis given by the specified high value.
HighHysteresis
The trigger occurs when the analog signal is greater than the specified high value with hysteresis given by the specified low value.

Hardware Digital Triggering.    If TriggerType is set to HwDigital, the trigger is given by a TTL signal. The code below illustrates how to configure such a trigger.

The diagram below illustrates how a digital trigger signal is connected to an AT-MIO/AI E series board.


Hardware Analog Triggering.    If TriggerType is set to HwAnalogPin, the trigger is given by a low-range analog signal (typically between -10 to 10 volts). The code below illustrates how to configure such a trigger.

If TriggerType is set to HwAnalogChannel, the trigger is given by an analog signal and the trigger channel is defined as the first channel of the channel list (MATLAB index of one). The valid range of the analog trigger signal is given by the full-scale range of the trigger channel. The code below illustrates how to configure such a trigger where the trigger channel is assigned the descriptive name TrigChan and the default TriggerCondition property value is used.

The diagram below illustrates how analog trigger signals can be connected to an AT-MIO/AI E series board.




[ Previous | Help Desk | Next ]