Main Content

trigger

(To be removed) Send trigger message to instrument

This visa and gpib object function will be removed in a future release. Use visadev object functions instead. For more information, see Compatibility Considerations.

Syntax

trigger(obj)

Arguments

obj

A GPIB, VISA-GPIB, or VISA-VXI object.

Description

trigger(obj) sends a trigger message to the instrument connected to obj.

Tips

Before you can use trigger, obj must be connected to the instrument with the fopen function. A connected interface object has a Status property value of open. An error is returned if you attempt to use trigger while obj is not connected to the instrument.

For GPIB and VISA-GPIB objects, the Group Execute Trigger (GET) message is sent to the instrument.

For VISA-VXI objects, if the TriggerType property is configured to software, the Word Serial Trigger command is sent to the instrument. If TriggerType is configured to hardware, a hardware trigger is sent on the line specified by the TriggerLine property.

Version History

Introduced before R2006a

expand all

R2021b: gpib object interface will be removed

Use of this function with a gpib object will be removed. To access a GPIB instrument, use the VISA-GPIB interface with a visadev object, its functions, and its properties instead.

The recommended functionality has additional capabilities and improved performance. See Transition Your Code to VISA-GPIB Interface for more information about using the recommended functionality.