GpibTrig Procedure

Triggers the specified GPIB device or devices connected to a specified board.

Syntax

[ lStatus = ] GpibTrig ( lBoardDevice )

The GpibTrig procedure syntax has the following parts:

 

Name

Type

Description

lStatus

Long

Status

lBoardDevice

Val Long

Board or device address

Comments

This function triggers a specified device or board using the GPIB GET function (Group Execute Trigger). If lBoardDevice specifies a board address, all devices connected to this board and addressed to listen are triggered.

The hexadecimal format of lBoardDevice is as follows:

lBoardDevice = 0xBBPPSS

Where:

 

BB

Board address (1 - 9)

PP

Device Primary address (0 - 31) - 0 if not used (bus address), 31 used for Primary address of 0

SS

Device Secondary address (0 - 31) - 0 if not used (bus address or device without Secondary address),  31 used for Secondary address of 0      

When PPSS is 0, lBoardDevice specifies a board address.

The value of lBoardDevice may be obtained using the GetDriverAddress function.

A return value of 0 indicates success, and -1 indicates that an error occurred during execution.

Example

The following command triggers a DMM:

GpibTrig(GetDriverAddress("DMM"))

See Also

GpibCommand