Main Content

removetrigger

Remove trigger from device interface

Since R2020a

Description

removetrigger(d,idx) removes the specified trigger from the DataAcquisition interface. If the DataAcquisition has triggers with indices higher than the trigger being removed, they are renumbered to fill the empty gaps left by the removal.

Examples

collapse all

Remove a trigger from a DataAcquisition interface.

d = daq("ni");
% ⋮
Tidx = addtrigger(d,"Digital","StartTrigger","Dev1/PFI0","Dev2/PFI0");
% ⋮
removetrigger(d,Tidx);

Input Arguments

collapse all

DataAcquisition interface, specified as a DataAcquisition object, created using the daq function.

Example: d = daq()

Trigger index, specified as a numeric scalar or vector. Removing a trigger shifts down the indices of remaining higher triggers.

Example: 1

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Version History

Introduced in R2020a

See Also

Functions