Save And Recall Programming Example Using Visa And C - Keysight Technologies X-Series Programming Manual

Signal generators
Hide thumbs Also See for X-Series:
Table of Contents

Advertisement

Creating and Downloading User–Data Files
Save and Recall Instrument State Files
catalog as the *SAV command does not save data files. For more information
on storing file data such as modulation formats, arb setups, and table entries
refer to the signal generator's User's Guide.
If a saved instrument state contains a reference to a waveform file, ensure
that the waveform file resides in volatile memory before recalling the
instrument state. For more information, see the User's Guide.
The recall function recalls a saved instrument state. If there is a data file
associated with the instrument state, the file will be loaded along with the
instrument state. The following command recalls the instrument state saved in
register 01, sequence 1.
*RCL 01,1

Save and Recall Programming Example Using VISA and C#

The following programming example uses VISA and C# to save and recall
signal generator instrument states. Instruments states are saved to and
recalled from your computer. This console program prompts the user for an
action: Backup State Files, Restore State Files, or Quit.
The Backup State Files choice reads the signal generator's state files and
stores it on your computer in the same directory where the State_Files.exe
program is located. The Restore State Files selection downloads instrument
state files, stored on your computer, to the signal generator's State directory.
The Quit selection exists the program. The figure below shows the console
interface and the results obtained after selecting the Restore State Files
operation.
The program uses VISA library functions. Refer to the Keysight VISA User's
Manual available on Keysight's website:
information on VISA functions.
The program listing for the State_Files.cs program is shown below. It is
available on the CD–ROM in the programming examples section under the
same name.
366
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
http:\\www.keysight.com
for more

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents