Using Trace Memory - 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

Program Examples

Using Trace Memory

These examples demonstrate using trace memory in various configurations.
Hardware setup: Example 2 uses an external VME memory card. You can also use
shared memory on the command module for the Keysight E1405B/E1406. The
memory starting address is usually at #H200000. (Use the VXI:CONF:DLIS?
query to locate the address).
Keysight E1458A 96-Channel Digital I/O Module User Guide
70 ENTER @Dio;Ready ! Wait for completion.
80 OUTPUT @Dio;"SOUR:DIG:FLAG1:POL NEG;*OPC?" !Set FLG polarity.
90 ENTER @Dio;Ready! Wait for completion.
100 OUTPUT @Dio;"SOUR:DIG:DATA0:WORD:HAND LEAD;*OPC?" !Set output
110 ENTER @Dio;Ready!Wait for completion.
120 OUTPUT @Dio;"SOUR:DIG:DATA0:WORD #H6565;*OPC?" ! Send 6565 hex using
130 ENTER @Dio;Ready!
140 OUTPUT @Dio;"SOUR:DIG:DATA:WORD #HAAAA;"*OPC?" ! Send AAAA hex using
150 ENTER @Dio;Ready
160 OUTPUT @Dio;"MEAS:DIG:DATA0:WORD?" ! Read the 16-bit port using
170 ENTER@Dio;Words!
180 PRINT "Integer value of port 0 ";Words!
190 OUTPUT @Dio;"MEAS:DIG:DATA0:WORD:BIT9?" ! Read the state of a bit using
200 ENTER @Dio;Bits!
210 PRINT "Bit 9, data line D1_1, value ";Bits!
220 END!
Byte swapping may occur when using the :TRACE commands with
Keysight SCPI. If you are using a Motorola processor, the bytes are
written or read to memory with the lowest port receiving the least
significant byte (the case when directly addressing the port
through SCPI commands). An Intel processor, however, when
used with the :TRACE commands will swap the order the of the
bytes. The bytes are written or read from memory with the lowest
port receiving the most significant byte and the highest port the
least significant byte.
Using the Keysight E1458A Digital I/O Module
handshake mode.
hardware handshake.
hardware handshake.
hardware handshake.
hardware handshake.
55

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1458a

Table of Contents