EasyManuals Logo

Keysight Technologies N5173B EXG Programming Guide

Keysight Technologies N5173B EXG
398 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 #308 background imageLoading...
Page #308 background image
308 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Creating and Downloading Waveform Files
Programming Examples
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 308
“Creating and Downloading Waveform Data Using HP BASIC for UNIX” on
page 310
“Creating and Downloading E443xB Waveform Data Using HP BASIC for
Windows” on page 312
“Creating and Downloading E443xB Waveform Data Using HP Basic for
UNIX” on page 314
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
generator’s . 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"", #"
As discussed at the beginning of this section, I and Q waveform data is
interleaved into one file in 2’s compliment form and a marker file is associated
with this I/Q waveform file.
In the Output commands, USING “#,K” formats the data. The pound symbol
(#) suppresses the automatic EOL (End of Line) output. This allows multiple
output commands to be concatenated as if they were a single output. The “K”
instructs HP Basic to output the following numbers or strings in the default
format.
10 ! RE-SAVE "BASIC_Win_file"

Table of Contents

Other manuals for Keysight Technologies N5173B EXG

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies N5173B EXG and is the answer not in the manual?

Keysight Technologies N5173B EXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5173B EXG
CategoryPortable Generator
LanguageEnglish

Related product manuals