Output - Keysight VXI Bus 75000 C Series User And Programming Manual

Digital i/o module
Hide thumbs Also See for VXI Bus 75000 C Series:
Table of Contents

Advertisement

Input/Output of Data Bytes and Bits
In this manual the physical data lines are indicated as Dn_1. The n should be
replaced with the port number for the input operation. For example, bit 3 of port
6 affects the state of data line D6_3.
Byte Input
The SCPI command requesting an 8-bit byte from a data port is:
This command instructs the Keysight E1458A Digital I/O Module to return a
decimal value between 0 and 255, indicating the condition of the data lines on
port n, following completion of the input handshake. The value returned depends
upon the programmed state of the port POLarity. In the default state (POSitive
polarity) if all data lines are at a TTL Low level, the returned value will be 0; if all
lines are at a TTL High level, the returned value will be 255. For example, the
following BASIC program code will request and display the decimal value of the
data lines on port 2.
Port numbers range from 0 to 11 for single-port operations. The section
"Multiple-Port Operations" later in this chapter describes port numbering for
multiple-port operations. For a single port, the returned decimal value will have
the following correspondence to the port data lines:

Output

Output operations can involve single bits, 8-bit bytes, or multiple bytes.
Single-bit output operations always expect a value of 0 or 1. Byte or
multiple-byte output operations can accept numbers in decimal, hexadecimal,
octal, or binary formats.
Bit Output
The SCPI command for setting the state of a single bit on a data port is:
Keysight E1458A 96-Channel Digital I/O Module User Guide
MEASure:DIGital:DATAn[:BYTE][:VALue]?
120 OUTPUT @Dio;"MEAS:DIG:DATA2?"
130 ENTER @Dio;Result
140 DISP "Decimal value of port 2 data lines ";Result
Dn_7
Dn_6
Dn_5
Bit 7
Bit 6
Bit 5
MSB
[SOURce:]DIGital:DATAn[:type]:BITm <value>
Using the Keysight E1458A Digital I/O Module
Dn_4
Dn_3
Dn_2
Bit 4
Bit 3
Bit 2
Dn_1
Dn_0
Bit 1
Bit 0
LSB
43

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1458a

Table of Contents