Mezurit 2

Online documentation - Trigger functions

Many trigger functions are similar to terminal functions and vice versa. Equivalent or related terminal functions are noted where appropriate. Trigger functions by definition return True on success, False on failure. In this context, however, success simply means that the command was successfully received with no argument errors, not that the action itself succeeded.

Note: Trigger functions are not the same as trigger tests, which are constructed from a subset of the channel functions.

Table of Contents

General functions

wait (delta_t)

delta_tfloatTime in seconds to pause before continuing to the next trigger line

see also: xleep()

set_recording (on)

onboolTrue to start, False to stop recording data

see also: set_recording()

DAC control functions

set_dac (channel, target)

channelint Index of virtual channel to set (e.g. 2 for X2), must be invertible
target floatTarget value in scaled units (e.g. mV)

see also: set_dac()

sweep_up   (channel)
sweep_down (channel)
sweep_stop (channel)

channelint Index of virtual channel to start or stop sweeping

see also: sweep_up(), sweep_down(), sweep_stop()

Scope functions

request_pulse (channel, target)

channelint Index of virtual channel to pulse when (and if) scope fires, must be invertible
target floatTarget value in scaled units (e.g. mV)

see also: request_pulse()

cancel_pulse (channel)

channelint Index of virtual channel which should not be pulsed

see also: cancel_pulse()

fire_scope   ()
cancel_scope ()

fire_scope_pulse (channel, target)

channelint Virtual channel to pulse, must be invertible
target floatTarget value in scaled units (e.g. mV)

see also: fire_scope_pulse()

Trigger functions

arm_trigger    (id)
disarm_trigger (id)

idintIndex of trigger to arm or disarm, range: 0 ... 7

see also: arm_trigger(), disarm_trigger()

force_trigger  (id)
cancel_trigger (id)

idintIndex of trigger to start (force) or stop, range: 0 ... 7

see also: force_trigger(), cancel_trigger()

emit_signal (signal)

signalstrText signal to emit (an arbitrary string)

see also: catch_signal()

Buffer functions

new_set ()

see also: new_set()

t_zero ()

effect: Reset the current panel timer
see also: t_zero()

save_data (filename)

filenamestrRelative or absolute filename to which to save data (if already existing, data will be appended)

see also: save_data()