EasyManuals Logo

Keysight Technologies N5172B EXG Programming Guide

Keysight Technologies N5172B EXG
398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #369 background imageLoading...
Page #369 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 369
Creating and Downloading User–Data Files
Save and Recall Instrument State Files
public const uint DEFAULT_TIMEOUT = 30 * 1000;// Instrument
timeout 30 seconds.
public const int MAX_READ_DEVICE_STRING = 1024; // Buffer
for string data reads.
public const int TRANSFER_BLOCK_SIZE = 4096;// Buffer for
byte data.
// The main entry point for the application.
[STAThread]
static void Main(string[] args)
{
uint defaultRM;// Open the default VISA resource manager
if (VisaInterop.OpenDefaultRM(out defaultRM) == 0) // If no
errors, proceed.
{
uint device;
// Open the specified VISA device: the signal generator
if (VisaInterop.Open(defaultRM,
visaOpenString,VisaAccessMode.NoLock,
DEFAULT_TIMEOUT, out device) == 0)
// if no errors proceed.
{
bool quit = false;
while (!quit)// Get user input
{
Console.Write("1) Backup state files\n" +
"2) Restore state files\n" +
"3) Quit\nEnter 1,2,or 3. Your choice: ");
string choice = Console.ReadLine();
switch (choice)
{

Table of Contents

Other manuals for Keysight Technologies N5172B EXG

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies N5172B EXG and is the answer not in the manual?

Keysight Technologies N5172B EXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5172B EXG
CategoryPortable Generator
LanguageEnglish

Related product manuals