beautypg.com

Triggerlist, Unlisten, Untalk – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 367

background image

15B. Driver488/SUB, W31, W95, & WNT

III. COMMAND REFERENCES - 15. Command References

III-352

Personal488 User’s Manual, Rev. 3.0

BUS STATES

ATN

GET (interface handle)

ATN

UNL, MTA, LAG, GET (external device handle)

SEE ALSO

TriggerList, Status, SendCmd

EXAMPLES

errorcode =

Trigger(ieee);

Issue a Group Execute Trigger (GET) bus command to those

devices that are already in the Listen state as the result of
a previous Output or Send command:

errorcode =

Trigger(dmm);

Issue a Group Execute Trigger (GET) bus command to the

device specified:

The

Trigger

command issues a Group Execute Trigger (

GET

) bus command to the specified device.

If no interface devices are specified, then the

GET

only affects those devices that are already in the

Listen state as a result of a previous

Output

or

Send

command.

TriggerList

SYNTAX

int pascal TriggerList(DevHandlePT devHandles);

devHandles

is a pointer to a list of external devices.

RETURNS

-1 if error

MODE

CA

BUS STATES

ATN

UNL, MTA, LAG, GET

SEE ALSO

Trigger, SendCmd, Status

EXAMPLE

deviceList[0] = wave;
deviceList[1] = timer;
deviceList[2] = dmm;
deviceList[3] = NODEVICE;
errorcode = TriggerList(deviceList);

Issue a Group Execute

Trigger (GET) bus
command to a list of
specified devices.

The

TriggerList

command issues a Group Execute Trigger (

GET

) bus command to the specified

devices. If no interface devices are specified, then the

GET

affects those devices that are already in the

Listen state as a result of a previous

Output

or

Send

command.

UnListen

SYNTAX

int pascal UnListen (DevHandleT devHandle);

devHandle

refers to either an interface or an external device. If

devHandle

refers to an external device, the

UnListen

command acts on the associated

interface.

RETURNS

-1 if error

MODE

CA

BUS STATES

ATN, UNL

SEE ALSO

Listen, UnTalk, SendCmd, Status

EXAMPLE

errorcode = UnListen (ieee);

The

UnListen

command unaddresses an external device that was addressed to Listen.

UnTalk

SYNTAX

int pascal UnTalk (DevHandleT devHandle);

devHandle

refers to either an interface or an external device. If

devHandle

refers to an external device, the

UnTalk

command acts on the associated

interface.

RETURNS

-1 if error

MODE

CA

BUS STATES

ATN, UNT

SEE ALSO

Talk, UnListen, SendCmd, Status

EXAMPLE

errorcode = UnTalk (ieee);