Trace Memory Example 1; Trace Memory Example 2 - 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

Using the Keysight E1458A Digital I/O Module

Trace Memory Example 1

This example writes 20 bytes as 10 WORDS at ports 0 and 1.

Trace Memory Example 2

This example writes 20 bytes as 10 WORDS at ports 0 and 1 as in the first
example, it uses an external VME memory board.
alpha.
56
10 RE-SAVE "Trace_1"!
20 ASSIGN @ Dio TO 70918!
30 INTEGER A(1:10) ,Ready!
40 DATA 65,66,67,68,69,70,71, 72,73,74 ! A, B, C, D, E, F, G, H, I, J
50 READ A(*)!
60 OUTPUT @Dio;"*RST;*OPC?"!
70 ENTER @Dio;Ready! Wait for completion.
80 OUTPUT @Dio;"SOUR:DIG:TRAC:DEFalpha,100;*OPC?" ! Define memory name
90 ENTER @Dio;Ready! Wait for completion.
100 OUTPUT @Dio USING "K,10(W) ";"SOUR:DIG:TRACE alpha, #220";A(*)
110 OUTPUT @Dio;"SOUR:DIG:DATA0:WORD:TRAC alpha;*OPC?" ! Fill memory alpha
120 ENTER @Dio;Ready! Wait for completion.
130 OUTPUT @Dio;"SOUR:DIG:TRAC:DEL alpha;*OPC?" ! Remove memory block.
140 ENTER @Dio;Ready! Wait for completion.
150 END
10 RE-SAVE "Trace"_2!
20 ASSIGN @ Dio TO 70918!
30 INTEGER A(1:10) ,Ready!
40 DATA 65,66,67,68,69,70,71,72,73,74 ! A, B, C, D, E, F, G, H, I, J
50 READ A(*)!
60 OUTPUT @Dio;"*RST;*OPC?"!
70 ENTER @Dio;Ready! Wait for completion.
80 OUTPUT @Dio;"MEM:VME:ADDR #H200000;*OPC?" ! Define memory location.
90 ENTER @Dio;Ready! Wait for completion.
100 OUTPUT @Dio;"MEM:VME:SIZE 100;*OPC?" ! Reserve 100 bytes.
110 ENTER @Dio;Ready! Wait for completion.
120 OUTPUT @Dio;"MEM:VME:STAT ON;*OPC?" ! Enable memory.
130 ENTER @Dio;Ready! Wait for completion.
140 OUTPUT @Dio;"SOUR:DIG:TRAC:DEF alpha,100;*OPC?" ! Define memory name
150 ENTER @Dio;Ready! Wait for completion.
with 20 bytes. ! Output the 20 bytes.
Keysight E1458A 96-Channel Digital I/O Module User Guide
Program Examples
alpha.

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1458a

Table of Contents