beautypg.com

Parity cn – Measurement Computing Serial488/4 User Manual

Page 43

background image

Section 3

Command Descriptions

3.4

Parity

Cn

The Parity command specifies the parity, if any, to be transmitted and received

with each character of the selected serial port. The Port Select command ( Pn) is used
to select the serial port regardless of addressing mode in use. If even or odd parity is
enabled the Serial488/4 will append a bit of the correct parity to each character
transmitted. However, the Serial 488/4 does not check parity on characters received.
The factory default setting as set by the Save Configuration command (S0) is C0,
parity disabled.

C0

Parity disabled.

C1

Odd parity enabled.

C2

Even parity enabled.

C?

Return current parity setting.

Example 1: Set parity for port 2 using dual primary addressing mode.

PRINT#1,"CLEAR08"

reset the Serial488/4

PRINT#1,"OUTPUT08;P2C1X"

select odd parity for port 2

Example 2: Set parity for port 4 using secondary addressing mode.

PRINT#1,"CLEAR0800"

reset the Serial488/4

PRINT#1,"OUTPUT0800;P4C2X"

select even parity for port 4

This manual is related to the following products: