beautypg.com

Measurement Computing Serial488/4 User Manual

Page 26

background image

Section 1

Introduction

2.14

Configuration of the serial ports may be accomplished at any time by

sending one or more command strings to the Serial488/4 command/status
address. Configuration commands may be sent individually or grouped
together to fully setup a port using only one message. Furthermore all four
serial ports may be configured using only one message so long as each port
setup begins w ith a Port ( Pn) command and ends with an E xecute (X)
command. Several examples are presented below to

illustrate different

configuration methods.

Example 1:

Configure all ports using dual primary addressing mode.

PRINT#1,"CLEAR08"

reset the Serial488/4

PRINT#1,"OUTPUT08;P1X"

Select port 1

PRINT#1,"OUTPUT08;A0B3C1D0X"

Specify 1 stop bit, 1200 baud, odd
parity, and 7 data bits

PRINT#1,"OUTPUT08;P2X"

Select port 2

PRINT#1,"OUTPUT08;A1B9C0D1X"

Specify 2 stop bits, 9600 baud, no
parity, and 8 data bits

PRINT#1,"OUTPUT08;P3X"

Select port 3

PRINT#1,"OUTPUT08;A0B7C2D1X"

Specify 1 stop bit, 4800 baud, even
parity, and 8 data bits

PRINT#1,"OUTPUT08;P4X"

Select port 4

PRINT#1,"OUTPUT08;A0B10C1D1X"

Specify 1 stop bit 19200 baud, no
parity, and 8 data bits

Example 2:

Configure all ports using secondary addressing mode.

PRINT#1,"CLEAR0800"

Reset the Serial488/4

PRINT#1,"OUTPUT0800;P1A0B3C1D0X"

Select port 1 and specify
1 stop bit, 1200 baud, odd
parity, and 7 data bits

PRINT#1,"OUTPUT0800;P2A1B9C0D1X"

Select port 2 and specify
2 stop bits, 9600 baud, no
parity, and 8 data bits

PRINT#1,"OUTPUT0800;P3A0B7C2D1X"

Select port 3 and specify
1 stop bit, 4800 baud, even
parity, and 8 data bits

This manual is related to the following products: