Digital I/O; Auxiliary Inputs - Ametek 7124 Instruction Manual

Precision lock-in amplifier
Table of Contents

Advertisement

Chapter 6, COMPUTER OPERATION
DAC[.] n

6.7.08 Digital I/O

PORTDIR [n]
BYTE [n]
READBYTE
RCUBYTE [n]

6.7.09 Auxiliary Inputs

ADC[.] n
6-24
[n
]
Set user DAC output voltage controls
1
2
The first parameter n
, which specifies the DAC, is compulsory and is either 1, 2, 3
1
or 4.
The value of n
specifies the voltage to be output.
2
In fixed point mode it is an integer in the range -10000 to +10000, corresponding to
voltages from -10.000 V to +10.000 V, and in floating point mode it is in volts.
Digital port direction control
The value of n determines which of the eight lines on the digital port are configured
as inputs and which as outputs. The parameter n is a decimal number whose bit-wise
interpretation defines whether the corresponding line is an input or output. The line
is an input if the corresponding bit is a "1". For example:
n
status
0
All lines configured as outputs
1
D0 = input, D1 - D7 = outputs
2
D1 = input, D0 and D2 - D7 = outputs
4
D2 = input, D0 - D1 and D3 - D7 = outputs
8
D3 = input, D0 - D2 and D4 - D7 = outputs
16
D4 = input, D0 - D3 and D5 - D7 = outputs
32
D5 = input, D0 - D4 and D6 - D7 = outputs
64
D6 = input, D0 - D5 and D7 = outputs
128
D7 = input, D0 - D6 outputs
255
All lines configured as inputs
Main console digital port output control
The value of n, in the range 0 to 255, determines the bits to be output on those lines
of the rear panel digital port that are configured as outputs. Hence, for example, if
PORTDIR = 0 and BYTE = 0, all outputs are low, and when BYTE = 255, all are
high.
Read main console digital port input
The response to the READBYTE command is an integer between 0 and 255
representing the binary value of all eight lines of the main console rear panel digital
port. Hence, for example, if PORTDIR = 255 and the response to READBYTE is
255, then all lines are high, and if the response to READBYTE is 0, then all lines are
low. Note that because the command does not differentiate between whether a line is
configured as an input or output, it can be used as a single command to determine the
present status of all eight lines, both inputs and outputs, of the port.
7124 RCU Digital port output control
The value of n, in the range 0 to 255, determines the bits to be output at the 7124
RCU rear panel digital port.
Read auxiliary analog-to-digital inputs
The response for ADC1 to ADC4 (n = 1 to 4 respectively) in fixed point mode is an
integer in the range -11000 to +11000, corresponding to voltages from -11.000 V to
+11.000 V, and in floating point mode it is in volts.

Advertisement

Table of Contents
loading

Table of Contents