4 configuration, 5 using the analyzer488 with a personal computer – Measurement Computing Analyzer488 User Manual

Page 96

Advertising
background image

Section 4

Serial Controller

4.2

4.4 Configuration

Configuration of the Analyzer488 is accomplished using the front panel

keyboard. Once configured, the configuration parameters will be stored in nonvolatile
RAM and used as the default configuration when the Analyzer488 is powered on.
Refer to Section 1 for configuration details.

4.5 Using the Analyzer488 with a Personal Computer

Commands may be sent to the Analyzer488 from a host computer using the

IBM BASIC PRINT# command, or it's equivalent in other languages. The
Analyzer488 interprets the commands, performs the necessary bus control and
handshaking, and returns data from the bus. Data acquired from the bus and responses
from the Analyzer488 are sent back to the host computer and read using the BASIC
INPUT#

command, or its equivalent.

Listed below is a keyboard controller program that allows direct interaction between a
personal computer and the IEEE 488 bus using the Serial Controller Mode of the
Analyzer488.

10 OPEN "COM1: 9600,n,8,2,cs,ds" AS 1
20 IF LOC(1) THEN PRINT INPUT$(LOC(1),1);
30 K$=INKEY$
40 PRINT #1,K$;:PRINT K$;
50 GOTO 20

Refer to Section 1 and configure the Analyzer488 as a Serial Controller with the

following serial port parameters:

9600 baud
8 data bits
2 stop bits
No parity
XON/XOFF handshaking

Advertising