GpibSendSRQ


 

Function

Transmits SRQ and performs setting for status byte.

 

Format

Ret = GpibSendSRQ (  DevId, SrqSend, Stb )

 

Parameter

DevId [ short ]

Specifies DevID.

 

SrqSend [ short ]

Sets whether transmits SRQ.

0

Not transmit

Except 0

Transmit

 

Stb [ short ]

Sets status byte.

0 to 255

Status byte

 

Return Value

Ret [ Long ]

0

Normality completion

10001

Invalid ID was specified

10002

Driver can not be called

22622

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

22647

Being used in other process

 

Initial Value

Stb

0

Status byte

 

Example

Performs output of SRQ and set status byte to 10.

C

short SrqSend, Stb;

        SrqSend = 1;

        Stb = 10;

        Ret = GpibSendSRQ ( DevId, SrqSend, Stb );

 

Remark

The value for 6th bit of status byte changes with SrqSend.

 

See Also

GpibCheckSPoll