Transferring Waveforms - Sony Tektronix VX4792 User Manual

Arbitrary waveform generator
Table of Contents

Advertisement

Transferring Waveforms

VX4792 User Manual
This procedure describes the general approach for transferring waveform data
from a controller to the waveform generator. The procedure assumes that a
waveform file already exists in the computer memory.
1. Specify the file name where the waveform data will be stored within the
waveform generator memory with the following command:
DATA:DESTination "sample.wfm"
where sample.wfm" is the filename where the data will be stored. The
filename must have the appropriate extension (.wfm).
2. Specify output parameters such as the number of points, output voltage, and
clock frequency, using the WFMPre command. Select the parameters that
apply to your application.
The following example is the complete form of the WFMPre command.
Subcommands that have no argument have been omitted.
WFMPRE:ENCDG BIN;BN_FMT RP;BYT_OR MSB;BYT_NR 2;BIT_NR 12;
PT_FMT Y;PT_OFF 0;XZERO 0.000;XUNIT "S";YUNIT "V";YOFF 2047;
NR_PT 512;YMULT 0.00122;YZERO 2;XINCR 1E 6;
This example selects the following output parameters:
H Number of points: 512 (see NR_PT)
H Amplitude: 5 volts (see YMULT 0.00122)
H Offset: 2 volts (see YZERO 2)
H Clock frequency: 1 MHz (see XINCR 1E 6)
3. Transfer the waveform data with the CURVe command, followed by the
waveform block data, as shown in the following example:
CURVE #41024.....
The block data requires a header string that defines the data length. The data
length is a calculated value based on the number of data bytes. Each
waveform point consists of 12 bits (two bytes). For the 512-point waveform
used in this example, the CURVe command consists of the following:
H The left-most "4" represents the number of digits in the byte count field
H The "1024" represents the number of bytes; this is the byte count field
H The following information (".....") is an array of binary data
See page 3–27 for additional details about the CURVe command syntax.
Programming Examples
2-45

Advertisement

Table of Contents
loading

Table of Contents