Keysight VXI Bus 75000 C Series User And Programming Manual page 54

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

Advertisement

Using the Keysight E1458A Digital I/O Module
This command instructs the digital I/O module to set bit m on port n to <value>,
using the output handshake. The actual TTL level set on the corresponding data
line depends upon the programmed state of the port polarity. If <value> is 1 and
the default polarity (POSitive polarity) is used, the data line corresponding to bit
m will be set to a TTL High level. For example, the following BASIC program code
will set the state of data line 2 (bit-2) on port 6 to a value of 1.
Bit numbers range from 0 to 7 for single-port operations. For multiple-port
operations, bit numbers can range from 0 to 95. The section "Multiple-Port
Operations" later in this chapter describes bit numbering for multiple-port
operations. For a single port, the data lines number and bit numbers correspond:
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 Output
The SCPI command syntax to send an 8-bit byte to a data port is:
This command instructs the Keysight E1458A Digital I/O Module to set the port n
data lines to <value> using the output handshake. The optional parameter
<base> defines the numbering system to use to implement
<value> on the data lines. There are four values allowed for <base>:
The TTL levels set on the data lines depends upon the programmed port polarity.
In the default state (POSitive polarity) a TTL High level will be set for any bit set
to 1. For example, the following four BASIC program lines
all perform the same function and set the same data lines on port 3:
44
120 OUTPUT @Dio;"DIG:DATA6:BIT2 1"
Dn_7
Dn_6
Dn_5
Bit 7
Bit 6
Bit 5
[SOURce:]DIGital:DATAn[:BYTE][:VALue] [<base>]<value>
no parameter
decimal format
#H
hexadecimal format
#Q
octal format
#B
binary format
120 OUTPUT @Dio;"DIG:DATA3 170"
120 OUTPUT @Dio;"DIG:DATA3 #HAA"
120 OUTPUT @Dio;"DIG:DATA3 #Q252"
120 OUTPUT @Dio;"DIG:DATA3 #B10101010"
Input/Output of Data Bytes and Bits
Dn_4
Dn_3
Dn_2
Bit 4
Bit 3
Bit 2
Keysight E1458A 96-Channel Digital I/O Module User Guide
Dn_1
Dn_0
Bit 1
Bit 0

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1458a

Table of Contents