User Manual 3153
Using The Instrument 3-7
Example 2
The following example programs the Model 3153 using the APPLy
command. This example turns on the main output, generates a square
waveform, programs frequency to 2MHz, programs amplitude to 1V and
offset to 1V. It also changes the square wave duty cycle parameter to
25%.
/* Reset Model 3153 to its default condition as listed in Table 3-1. */
:RESet;
/* Change the output waveform to square, frequency to 2MHz, amplitude
to 1V, offset to 1V 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,1,1,25
/* Turn the main output on. */
:OUTPut ON
/*Turn the SYNC output on, if required. */
:OUTPut:SYNC ON
If the above commands are executed correctly, a square waveform will
be seen on your oscilloscope.
Selecting the Active
Channel
On power up, the instrument defaults to channel 1. That means that
each command sent to the generator affects channel 1 parameters. If
you want to send commands to other channels, you must switch the
input to other channels. Proceeding channel selection, all command will
affect the selected channel only. Use the following command to select
the channel you want to program:
INSTrument:SELect {1 | 2 | 3}
When “1” is selected, commands will control parameters that are unique
for the channel 1 output. Selecting “2”, modifies the control to channel
2 parameter. Similarly. Selecting “3”, modifies the control to channel 3
parameter The default option is “1”. Parameters that are common to all
three channels may be programmed from either path.
The query:
INSTrument:SELect?
queries the active channel and returns 1, 2, or 3.
The Control Panel from WaveCAD is shown in Figure 3-1 demonstrates
high-level implementation of channel control.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com