User manual

C-2 Return to Section Topics 3390-900-01 Rev. C / January 2009
Appendix C: Application Programs Model 3390 Arbitrary Waveform Generator User’s Manual
About application programs
This section provides several remote interface example programs which can be used as reference
when creating user programs. Each example includes the list of applicable standard commands
for programmable instruments (SCPI) and accompanying comments.
Application examples
To use the APPLy commands to configure the instrument for a sine waveform function:
To set up the instrument to generate a service request (SRQ) using the status commands
when a command error is received:
To select amplitude modulation:
Table C-1:
APPLy example commands
Command Comment
*RST
Reset Model 3390.
*CLS
Clear 3390 status registers.
APPL:SIN 1000, 1, 0
Set sine to 1 KHz, 1V, 0V offset.
Table C-2:
SRQ example commands
Command Comment
*RST
Reset Model 3390.
*CLS
Clear 3390 status registers.
*ESE 32
Enable SRQ on error.
*SRE 32
Enable SRQ.
APPL:SIN 1000, 1, 0
Set sine to 1 KHz, 1V, 0V offset.
APPL:SAN 1000, 1, 0
Command error, "SAN" vs. "SIN."
*SRE?
Query unit. Should display "+32."
Table C-3:
Amplitude modulation example commands
Command Comment
*RST
Reset Model 3390.
OUTPut:LOAD 50
Set output termination to 50 Ω.
FUNCtion:SHAPe SINusoid
Carrier shape is sine waveform.
FREQuency 6000; VOLTage 3
Carrier frequency is 6 kHz at 3 V peak-to-peak.
AM:INTernal:FUNCtion
Modulating shape is sine waveform.
AM:INTernal:FREQuency 300
Modulation frequency is 300 Hz.
AM:DEPTh 90
Modulation depth is 90 %.
AM:STATe ON
Turn amplitude modulation on.
OUTPut ON
Turn instrument output on.
*SAV 2
Store state in memory location 2.
*RCL 2
Recall the stored state from location (optional).