Data bits dn – Measurement Computing Serial488/4 User Manual
Page 44

Section 3
Command Descriptions
3.5
Data Bits
Dn
The Data Bits command programs the number of data bits contained in each
character transmitted and received by the selected serial port. T
he 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 D1,
eight data bits.
D0
Seven data bits selected.
D1
Eight data bits selected.
D?
Return current data bits setting
Example1: Set data 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;D0X"
select 7 data bits
PRINT#1,"OUTPUT08;P3D1X"
select 8 data bits for port 3
Example 2: Set data 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;d0X"
select 7 data bits
PRINT#1,"OUTPUT0800;P3d1X"
select 8 data bits for port 3