Herunterladen Inhalt Inhalt Diese Seite drucken

Beispiel: Amplitudenmodulation - Agilent Technologies 33220A Benutzerhandbuch

20 mhz-synthesizer-funktions- / arbitraersignalgenerator
Inhaltsverzeichnis

Werbung

Beispiel: Amplitudenmodulation

Dieses Programm (auf der CD-ROM im Unterverzeichnis „Examples\chapter6\AMLow-
Level" zu finden) konfiguriert unter Verwendung von Lower-Level-SCPI-Befehlen ein
Signal mit Amplitudenmodulation. Das Programmbeispiel zeigt ferner, wie der *SAV-
Befehl zum Speichern der Gerätekonfiguration im internen Speicher des Funktions-
generators verwendet wird.
Private Sub cmdAMLowLevels_Click()
Dim io_mgr As VisaComLib.ResourceManager
Dim Fgen As VisaComLib.FormattedIO488
Set io_mgr = New VisaComLib.ResourceManager
Set Fgen = New VisaComLib.FormattedIO488
Set Fgen.IO = io_mgr.Open(txtIO.Text)
On Error GoTo MyError
' This program uses low-level SCPI commands to configure
' the function gnerator to output an AM waveform.
' This program also shows how to use "state storage" to
' store the instrument configuration in memory.
With Fgen
.WriteString "*RST"
.IO.Clear
.WriteString "OUTPut:LOAD 50"
.WriteString "FUNCtion:SHAPe SINusoid"
.WriteString "FREQuency 5000;VOLTage 5"
.WriteString "AM:INTernal:FUNCtion SINusoid"
.WriteString "AM:INTernal:FREQuency 200"
.WriteString "AM:DEPTh 80"
.WriteString "AM:STATe ON"
.WriteString "OUTPut ON"
.WriteString "*SAV 1"
' Use the "*RCL 1" command to recall the stored state
End With
Exit Sub
MyError:
txtError = Err.Description & vbCrLf
Resume Next
End Sub
Programmbeispiel Beispiel: Einfache Sinus-Signalform
' Reset the function generator
' Clear errors and status registers
' Output termination is 50 Ohms
' Carrier shape is sine
' Carrier freq is 5 kHz @ 5 Vpp
' Turn on the instrument output
' Store state in memory location 1
Kapitel 6 Anwendungsprogramme
' Modulating shape is sine
' Modulation freq = 200 Hz
' Modulation depth = 80%
' Turn AM modulation on
4
6
337

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis