Racal Instruments 3151 User Manual page 36

Waveform generator
Table of Contents

Advertisement

Using The Instrument 3-6
The command:
APPLy:USER {<segment_number>,<sampling_clock>,
<amplitude>,<offset>}
programs the generator to output an arbitrary waveform. The
specified segment number must be loaded with an arbitrary
waveform before the generator can execute this command
successfully. This command lets you specify segment number,
sampling clock rate, amplitude and offset. The default settings for
these functions are: 1, 1 MHz, 5 Vp-p and 0 V.
The query:
APPLy:<function_shape>?
queries parameters associated with the specified function shape.
Returns a string of values depending on the parameters that are
available for the selected function shape.
The query:
APPLy?
queries parameters associated with the currently selected function
shape and returns a string of values depending on the parameters
available for the selected function shape. For example, if the
generator is programmed to output a ramp waveform, the APPL?
command returns: "1e+6, 5, 0 , 0, 10, 10, 10".
Example 2
The following example programs the Model 3151/3151A using the
APPLy command. This example turns on the main output, generates
a square waveform, programs frequency to 2 MHz, programs
amplitude to 5 V and offset to 2.5 V. It also changes the square wave
duty cycle parameter to 25%.
/* Reset the Model 3151/3151A to its default condition as listed in
Table 3-1.*/
:RESet;
/* Change the output waveform to square, frequency to 2 MHz,
amplitude to 5 V, offset to 2.5 V and duty cycle to 25%. Note that
there is no need to use the FUNC:MODE command because the
default value after RESet is FIXed.*/
:APPLy:SQUare 2e6,5,2.5,25
/* Turn the main output on.*/
3151 And 3151A User Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

3151a

Table of Contents