Configure Triggers and Events

You can use triggers and events to coordinate the operation of multiple channels and instruments.

Triggers

A trigger is an input signal received by an instrument or instrument channel that causes the instrument or channel to perform an action. Triggers are routed to input terminals to coordinate actions.

An input terminal is a physical trigger line, such as a PXI trigger line, or an output terminal on another instrument or channel, where an instrument or channel awaits a digital edge trigger signal.

For purposes of programming instruments with NI APIs, triggers comprise two parts:

  • The action, represented with the name of the trigger, that you want the instrument or channel to take.
  • The signal condition you want to serve as the stimulus for that action (for example, a rising or falling digital edge on a signal, or a software-generated edge you configure).

Triggers can be internal (software-generated) or external. You can export external triggers and use them with events to synchronize hardware operation with external circuitry or other instruments.

Most NI-DCPower instruments accept external triggers routed between the instruments using PXI trigger lines. Events assigned to a PXI trigger line can coordinate actions across channels and across instruments.

Events

An event is a signal generated by an instrument or instrument channel that indicates a specific operation was completed or a specific state was reached. Events can be routed to output terminals to coordinate the action of multiple channels or multiple instruments.

For purposes of programming instruments with NI APIs, you can control three aspects of the pulse that represents each discrete event type:

  • Polarity
  • Width
  • Destination

Event output terminals enable you to route an event signal pulse to external devices. You can modify the polarity and duration of the pulse that is generated when an event occurs to be compatible with trigger inputs of external devices.

You typically configure events for a specific hardware condition and then export those events for use in the test program or export them to a PXI trigger line to cause an action in another instrument configured to wait for a trigger on the same PXI trigger line.