GpibSendCommands


Function

Enables ATN and transmits command (interface message).

Format

Ret = GpibSendCommands (  Id, CmdArray )

Parameter

Id [ VB.NET: Short ][ C, C++: short ][ C#: short ]

Specifies DevID or EqpID.

Whichever it specifies, operation does not change.

 

CmdArray [ VB.NET: Short() ][ C, C++: short * ][ C#: short[] ]

Sets array of commands to transmit.

 

0 to 255

Sets value of command

-1

Must be used as end of array.

Return Value

Ret [ VB.NET: Integer ][ C, C++: long ][ C#: int ]

 

0

Normality completion

10001

Invalid ID was specified

10002

Driver can not be called

12712

Pointer to CmdArray is NULL

12740

Asynchronous function is running now

22722

When device is used as master (controller), functions for slave (non-controller) are executed

22741

Forcibly terminated by GpibStopAsync

22742

Terminates by forcible termination key

22744

TimeOut

22745

No connected device (GPIB error)

Initial Value

None

Remarks

The actual number of transmitted data can be acquirable by GpibGetStatus function.

Example

Transmits UNT and UNL.

C

short CmdArray[255];

CmdArray[0] = 0x5f;

CmdArray[1] = 0x3f;

CmdArray[2] = -1;

Ret = GpibSendCommands ( Id, CmdArray );

See Also

GpibGetStatus