Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 367
Creating and Downloading User–Data Files
Save and Recall Instrument State Files
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.
5.
Type csc.exe State_Files.cs at the command prompt and then press the
Enter key on the keyboard to run the program. The following figure shows
the command prompt interface.
The State_Files.cs program is listed below. You can copy this program from the
examples directory on the signal generator’s Documentation CD–ROM.
The State_Files.cs example uses the
ESG
in the programming code but can
be used with X-Series signal generators.
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...