beautypg.com

Stop bits an – Measurement Computing Serial488/4 User Manual

Page 41

background image

Section 3

Command Descriptions

3.2

Stop Bits

An

The Stop Bits command programs the number of stop bits contained in each

character transmitted and received by the selected

serial port. The Port Select

command (Pn) is used to select the serial port regardless of addressing mode in use.
The factory default setting as set by the Save Configuration command ( S0) is A0, 1
stop bit.

A0

One stop bit selected.

A1

Two stop bits selected.

A?

Return current stop bit setting.

Example 1: Set stop bits for ports 1 and 3 using dual primary addressing mode

PRINT#1,"CLEAR08"

reset the Serial488/4

PRINT#1,"OUTPUT08;P1X"

select port 1 as the current port

PRINT#1,"OUTPUT08;A0X"

select 1 stop bit

PRINT#1,"OUTPUT08;P3A1X"

select 2 stop bits for port 3

Example 2: Set stop bits for ports 1 and 3 using secondary addressing mode

PRINT#1,"CLEAR0800"

reset the Serial488/4

PRINT#1,"OUTPUT0800;P1X"

select port 1 as the current port

PRINT#1,"OUTPUT0800;A0X"

select 1 stop bit

PRINT#1,"OUTPUT0800;P3A1X"

select 2 stop bits for port 3

This manual is related to the following products: