beautypg.com

Measurement Computing Micro 488/EX rev.2.1 User Manual

Page 101

background image

Section 5

Command Descriptions

5.31

MODE

CA

BUS STATES ATN•UNL,MLA,TAG,*ATN,data…,ATN

(With addr)

*ATN, data…, ATN

(Without addr)

EXAMPLES

PRINT#1,"ENTER16"

Read data from device 16.

INPUT#1,A$

PRINT#1,"ENTER16"

Read an entire line of data from

LINE INPUT#1,A$

device 16 even if it contains
commas or other punctuation.

PRINT#1,"ENTER16;CR"

Read data from device 16 until

INPUT#1,A$

CR is encountered.

PRINT#1,"ENTER16 EOI"

Read data until EOI is detected.

INPUT#1,A$

PRINT#1,"ENTER 0702"

Read data from device 7,

INPUT#1,A$

secondary address 2.

PRINT#1,"EN 12 #5"

Read 5 bytes from device 12.

A$=INPUT$(5,#1)

INPUT$

gets 5 bytes from file #1

PRINT#1,"ENTER #20"

Read 20 more bytes.

A$=INPUT$(20,#1)

PRINT#1,"ENTER ;20"

Read 20 more bytes.

A$=INPUT$(20,#1)