EasyManua.ls Logo

Sony Tektronix VX4792 - Defining 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
VX4792 User Manual
2-43
Defining Equations
The following procedure shows how to define, compile, and output a waveform
using an equation to generate a waveform file. You might want to view the
output waveform on an oscilloscope to verify its shape (sine wave) and period
(1 ms).
. Do not use CR (0x0D) as a terminator in your equation file. Use only
LF (0x0A).
1. Define the waveform file. Use the following command
EQUATION:DEFINE "new.equ",#224range(0,1s)<LF>sin(2*pi*x)<LF>
to define an equation file named “new.equ” that produces a one-cycle sine
wave when compiled.
2. Set the number of waveform points. Use the following command
EQUATION:WPOINTS "new.equ",128
to set the number of waveform points to 128 for the "new.equ" equation
file.
3. Compile the new.equ" equation file to generate a waveform file named
new.wfm." Use the following command
EQUATION:COMPILE EXECUTION,"new.equ"
to compile the equation file. A waveform file called "new.wfm" will be
loaded into memory.
4. Select the new.wfm" file for output. Use the following command
WAVEFORM "new.wfm"
to select the new.wfm" file.
5. Turn on the WAVEFORM OUTPUT connector. Use the following command
OUTPUT:STATE ON
to turn on the output. The LED beside the WAVEFORM OUTPUT connector
turns green to show the output is active.

Table of Contents

Related product manuals