Signal and Trigger Opcodes
- Updated2025-04-10
- 2 minute(s) read
Use signal and trigger opcodes to send event signals or conditional triggers from the pattern to other digital pattern instruments by using PXI trigger lines.
Syntax | Parameters | Description |
---|---|---|
set_signal(event_list) | event_list is a comma-separated list of events. You cannot duplicate events. Valid values include event0, event1, event2, and event3 | Sets the specified events to the high (asserted) state and holds that state until the pattern executes the
clear_signal opcode.
You can route events to PXI trigger lines to coordinate execution with other systems or instrumentation. To route events, use the niDigital Export Signal VI, the NIDigital.ExportSignal .NET method, the niDigital_ExportSignal C function, or the Export Pattern Opcode Events Signals section of the Instrument Settings pane of the Digital Pattern Editor. |
pulse_signal(event_list) | event_list is a comma-separated list of events. You cannot duplicate events. Valid values include event0, event1, event2, and event3 | Asserts and deasserts the specified events. Use this opcode when you want to pulse an event for a short period of time.
You can route events to PXI trigger lines to coordinate execution with other systems or instrumentation. To route events, use the niDigital Export Signal VI, the NIDigital.ExportSignal .NET method, the niDigital_ExportSignal C function, or the Export Pattern Opcode Events Signals section of the Instrument Settings pane of the Digital Pattern Editor. |
clear_signal(event_list) | event_list is a comma-separated list of events. You cannot duplicate events. Valid values include event0, event1, event2, and event3 | Sets the specified events to the low (deasserted) state.
You can route events to PXI trigger lines to coordinate execution with other systems or instrumentation. To route events, use the niDigital Export Signal VI, the NIDigital.ExportSignal .NET method, the niDigital_ExportSignal C function, or the Export Pattern Opcode Events Signals section of the Instrument Settings pane of the Digital Pattern Editor. |
reset_trigger(trigger_list) | trigger_list is a comma-separated list of triggers. You cannot duplicate triggers. Valid values include trig0, trig1, trig2, and trig3 | Sets the specified triggers to the deasserted state and rearms the trigger for latching the next assertion.
Use reset_trigger to reset trigger states before conditional branches in a pattern using jump_if or exit_loop_if to ensure the pattern predicates execution on changes from a known state. |
Example
set_signal(event3, event0) sample_timeset 0 L; clear_signal(event3, event0) sample_timeset 1 H; halt sample_timeset 0 L;
In This Section
Related Information
- Instrument Settings Pane
Select Instrument Settings History RAM and Signal Settings to launch the Instrument Settings pane.