EasyManua.ls Logo

Sony Tektronix VX4792 - Compiling Equations

Sony Tektronix VX4792
297 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming Examples
2-44
VX4792 User Manual
Compiling Equations
Compiling functions only work on equations that are already in main memory.
One way to load an equation is to define it with the EQUATION:DEFINE command
and then compile it. Once you have compiled the equation file, you can load the
resulting waveform file into the VX4792 Arbitrary Waveform Generator with the
IBIC command IBWRTF (for GPIB systems), or the WAVeform command.
. Do not use CR (0x0D) as a terminator in your equation file. Use only
LF (0x0A).
The following procedure illustrates how to set the number of equation points,
and how to compile an equation.
1. Before compiling an equation, set the number of equation points with the
EQUATION:WPOINTS command. For example,
EQUATION:WPOINTS sample.equ",10000
sets the number of equation points for the “sample.equ” equation to 10,000
points.
2. To begin compilation of the “sample.equ” equation, use the
EQUATION:COMPILE EXECUTION command as shown below:
EQUATION:COMPILE EXECUTION,sample.equ"
At any time during compilation, you can check status with the
EQUATION:COMPILE:STATE? query. If the compiler is still working, it will return
a 1. A return of 0 indicates that the compiler is finished.
You can stop a compilation in process with the EQUATION:COMPILE ABORT
command.
When you stop waveform compilation, a warning message is stored in the output
queue. To see this message, use the following commands:
*ESR?
EVMSG?
The response will have the following form:
16
:EVMSG 501,"Equation compile has aborted"
Checking Status
Aborting Compilation

Table of Contents

Related product manuals