GpibCommands Procedure

Sends a string containing a sequence of GPIB commands to the specified GPIB board.

Syntax

[ lSent = ] GpibCommands ( lBoard, sStr [, lBytes ] )

The GpibCommands procedure syntax has the following parts:

 

Name

Type

Description

lSent

Long

Bytes sent

lBoard

Val Long

Board address

sStr

Val BString

A sequence of GPIB commands

lBytes

Val Long

Number of bytes to send

Comments

The hexadecimal format of lBoard is as follows:

lBoard = 0xBB0000

Where:

BB = Board address (1 - 9)

GpibCommands is used when special command sequences which are not supported by other ATEasy function need to be sent directly to GPIB device(s). Do not use this function to transmit data instructions to devices. All bytes are sent with ATN set on.

The following table lists the available commands and their decimal values:

 

Value

CMD

Remark

1

GTL

Go To Local

4

SDC

Selective Device Clear

5

PPC

Parallel Poll Configure

8

GET

Group Execute Trigger

17

LLO

Local Lock Out

20

DCL

Device Clear

21

PPU

Parallel Poll Unconfigure

24

SPE

Serial Poll Enable

25

SPD

Serial Poll Disable

32 -62

LADx

Listen address x

63

UNL

Un-Listen

64-94

MTAx

My Talk address x

95

UNT

Un-Talk My Talk address x

If lBytes is not specified, then the number of bytes will be the length of the sStr.

Example

The following command simultaneously triggers GPIB devices at addresses 1, 2, and 4 connected to board # 1:

GpibCommand(0x10000, "?\x033\x034\x036\x008", 5 )

Where:

 

'?'

 UNL Un-Listen

'\x033'

 L1 Listen address 1

'\x034'

 L2 Listen address 2

'\x036'

 L4 Listen address 4

'\x008'

 Group Execute Trigger

See Also

GpibSend