Agilent Technologies E8663B Portable Generator User Manual


 
326 Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide
Creating and Downloading User-Data Files
Save and Recall Instrument State Files
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 Agilent VISA User’s Manual available on
Agilent’s website: http:\\www.agilent.com for more 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.
C# and Microsoft .NET Framework
The Microsoft .NET Framework is a platform for creating Web Services and applications. There are
three components of the .NET Framework: the common language runtime, class libraries, and Active
Server Pages, called ASP.NET. Refer to the Microsoft website for more information on the .NET
Framework.
The .NET Framework must be installed on your computer before you can run the State_Files
program. The framework can be downloaded from the Microsoft website and then installed on your
computer.