368 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Creating and Downloading User–Data Files
Save and Recall Instrument State Files
//*****************************************************************
// FileName: State_Files.cs
//
// This C# example code saves and recalls signal generator
instrument states. The saved
// instrument state files are written to the local computer
directory computer where the
// State_Files.exe is located. This is a console application that
uses DLL importing to
// allow for calls to the unmanaged Keysight IO Library VISA DLL.
//
// The Keysight VISA library must be installed on your computer for
this example to run.
// Important: Replace the visaOpenString with the IP address for
your signal generator.
//
//*****************************************************************
using System;
using System.IO;
using System.Text;
using System.Runtime.InteropServices;
using System.Collections;
using System.Text.RegularExpressions;
namespace State_Files
{
class MainApp
{
// Replace the visaOpenString variable with your instrument's
address.
static public string visaOpenString =
"TCPIP0::000.000.000.000"; //"GPIB0::19";
//"TCPIP0::ESG3::INSTR";
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...