P - port select – Measurement Computing DAC488 v.1 User Manual
Page 82

76 DAC488 Commands
DAC488 User’s Manual
P - Port Select
TYPE
System Command
SYNTAX
Pn
Where
n = 1, 2, 3,
or
4
.
P1
(Default) Select Port 1.
P2
Select Port 2.
P3
Select Port 3. (DAC488/4 only)
P4
Select Port 4. (DAC488/4 only)
P?
Return present port selection.
DESCRIPTION
The Port command determines which port is selected for use with subsequent commands. Only one port at a time
may be selected. However, commands may be sent to all ports within one command string if each set of port
commands are followed by the Execute (X) command.
EXAMPLE 1: One Command String for One Port.
PRINT#1,"CLEAR09"
Line 1: Reset the DAC488.
PRINT#1,"OUTPUT09;C0 P1 A1
V7 X"
Line 2: Select Direct Control mode, select Port 1, enable autoranging,
output 7 volts. The DAC488 will output 7 volts on port 1.
EXAMPLE 2: One Command String for Multiple Ports.
PRINT#1,"CLEAR09"
Line 1: Reset the DAC488.
PRINT#1,"OUTPUT09; P1 C0 A0
R3 V7 X P2 C0 A0 R3 V6 X"
Line 2: Select Port 1, select Direct Control mode, disable autoranging,
select
±
10 volt range, output 7 volts. Select Port 2, select Direct
Control mode, disable autoranging, select
±
10 volt range, output 6
volts. Port 1 will output 7 volts and Port 2 will output 6 volts.