beautypg.com

Measurement Computing TempScan/1100 User Manual

Page 272

background image

C-2 Program Examples in Quick Basic

879696

TempScan / MultiScan, Appendix C

The QuickBASIC

PRINT

and

INPUT

commands are used to communicate with the driver. The most-

commonly used driver commands are

ENTER

,

OUTPUT

, and

SPOLL

, as follows:

ENTER

gets data from the selected device, The syntax of the

ENTER

command is

"ENTERaddr"

, where

addr

is the IEEE 488 address of the instrument. Right after the

ENTER

command, the QuickBASIC

INPUT

function must be used to bring the data into a language variable.

OUTPUT

sends data to the selected device. The syntax of the

OUTPUT

command is

"OUTPUTaddr;out

data"

, where

addr

is the IEEE 488 address of the instrument, and

out data

is the string of

characters to send to the device.

SPOLL

is an abbreviation for Serial Poll which retrieves an 8-bit status response from the selected

instrument. The syntax of the

SPOLL

command is

"SPOLLaddr"

, where

addr

is the IEEE 488

address of the instrument. Right after the

SPOLL

command, the QuickBASIC

INPUT

function must be

used to bring the data into a language variable.

Note: In all of the following examples, the IEEE 488 bus address is

07

.

This manual is related to the following products: