Technical data

134 Agilent N8211A/N8212A Performance Upconverter Synthetic Instrument Module, 250 kHz to 20 / 40 GHz
5 Creating and Downloading User-Data Files
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 Users 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.
Perform the following steps to run the State_Files program.
1 Copy the State_Files.cs file from the CD–ROM programming examples section to the
directory where the .NET Framework is installed.
2 Change the TCPIP0 address in the program from TCPIP0::000.000.000.000 to your signal
generator’s address.
3 Save the file using the .cs file name extension.
4 Run the Command Prompt program. Start > Run > "cmd.exe". Change the directory for
the command prompt to the location where the .NET Framework was installed.