beautypg.com

Status – Measurement Computing Personal488 rev.3.0 User Manual

Page 122

background image

Personal488 for Windows 95/98/Me/NT/2000

04-10-01

API Reference 6-54

Status

Syntax

INT WINAPI Status(DevHandleT devHandle, IeeeStatusPT result);

devHandle

refers to either an IEEE 488 interface or an external device. If

devHandle

refers to an external device,

Status

acts on the hardware interface to which the

external device is attached.

result

is a pointer to a

Status

structure.

Returns

-1

if error

Bus States

None

Example

result = Status(ieee,&StatusResult);
if (StatusResult.SRQ) {
printf(“We have a serial poll request”);
} else {
printf(“There is no serial poll request”);
}

See Also

GetError, SPoll

The

Status

command returns various items detailing the current state of Driver488. They are returned in

a data structure, based on the following table.

Status Item

Structure
Menber

Values and Description

Primary Bus Address

.Primaddr

0

to 30: Two-digit decimal number.

Service Request

.SRQ

TRUE

: SRQ is asserted, FALSE: SRQ is not

asserted.

The Primary Bus Address (

.Primaddr

) is the IEEE 488 bus device primary address assigned to

Driver488 or the specified device. This will be an integer from

0

to

30

.

The Service Request field (

.SRQ

), as an active controller, reflects the IEEE 488 bus

SRQ

line signal. As a

peripheral, this status reflects the

rsv

bit that can be set by the

Request

command and is cleared when the

Driver488 is Serial Polled. For more details, refer to the

SPoll

command in this chapter.

This manual is related to the following products: