User Manual 3153
Using The Instrument 3-3
What To Do Now
When writing low level code to operate the Model 3153, follow the
instructions in this chapter to understand the meaning and response
that each command generates. Examples contained in the following
paragraphs show basic techniques of how to program output waveforms.
Example
1
The following example programs the Model 3153 to turn on channel 1 and
programs the waveform frequency to 10MHz. Then, it programs channel 1 to
output a square waveform with amplitude of 2V and offset of 0.5V. Next, it
programs channel 2 to output a triangular waveform with amplitude of 1V and
offset of 0.5V.
/* Reset the Model 3153 to its default state as listed in Table 3-1. */
:RESet;
/* Change the output waveform to square. Note that there is no need to use the
FUNC:MODE command as the default value after RESet is FIXed. */
:FUNCtion:SHAPe SQUare;
/* Change the frequency to 10MHz. */
:FREQuency 10e6;
/* Change the amplitude to 2V and the offset to 0.5 V. */
:VOLTage 2;
:VOLTage:OFFSet 0.5;
Note that output peak voltage may never exceed
±
5V. Amplitude and
offset may be set freely within a 10V window, as long as the following
limits are kept:
| offset | +Vpk-pk
÷
2
≤
10
/* Turn on the channel 1 output. */
:OUTPut ON;
/* The following command changes control to channel 2. */
:INSTrument:SELect 2;
/* Set channel 2 amplitude to 1V and the offset to 0.5 V. */
:VOLTage 1;
:VOLTage:OFFSet 0.5;
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com