EasyManuals Logo
Home>Agilent Technologies>Inverter>E4428C

Agilent Technologies E4428C Programming Guide

Agilent Technologies E4428C
366 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #277 background imageLoading...
Page #277 background image
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 267
Creating and Downloading Waveform Files
Programming Examples
Get #FileHandle, index + 1, data '(index+1) is the record number
iq_data(index) = data
Next index
Close #FileHandle 'Close the file
'Write the command to the Header string. NOTE: syntax
Header = "MEM:DATA ""/USER/WAVEFORM/IQ_DataVB"","
'Now write the data to the signal generator's non-volatile memory (NVWFM)
SigGen.WriteIEEEBlock Header, iq_data
SigGen.WriteString "*OPC?" 'Wait for the operation to complete
response = SigGen.ReadString 'Signal generator reponse to the OPC? query
Call MsgBox("Data downloaded to the signal generator", vbOKOnly, "Download")
Exit Sub
errorhandler:
MsgBox Err.Description, vbExclamation, "Error Occurred", Err.HelpFile, Err.HelpContext
Exit Sub
file_error:
Call MsgBox(Err.Description, vbOKOnly) 'Display any error message
Close #FileHandle
End Sub
HP Basic Programming Examples
This section contains the following programming examples:
“Creating and Downloading Waveform Data Using HP BASIC for Windows®” on page 267
“Creating and Downloading Waveform Data Using HP BASIC for UNIX” on page 270
“Creating and Downloading E443xB Waveform Data Using HP BASIC for Windows” on page 272
“Creating and Downloading E443xB Waveform Data Using HP Basic for UNIX” on page 274
Creating and Downloading Waveform Data Using HP BASIC for Windows®
On the documentation CD, this programming example’s name is “hpbasicWin.txt.”
The following program will download a waveform using HP Basic for Windows into volatile ARB
memory. The waveform generated by this program is the same as the default SINE_TEST_WFM
waveform file available in the signal generators waveform memory. This code is similar to the code
shown for BASIC for UNIX but there is a formatting difference in line 130 and line 140.
To download into non- volatile memory, replace line 190 with:
190 OUTPUT @PSG USING "#,K";":MMEM:DATA ""NVWFM:testfile"", #"

Table of Contents

Other manuals for Agilent Technologies E4428C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies E4428C and is the answer not in the manual?

Agilent Technologies E4428C Specifications

General IconGeneral
BrandAgilent Technologies
ModelE4428C
CategoryInverter
LanguageEnglish

Related product manuals