Keysight E4428C ESG RF Programming Manual page 377

Signal generators
Table of Contents

Advertisement

bool quit = false;
while (!quit)// Get user input
{
Console.Write("1) Backup state files\n" +
string choice = Console.ReadLine();
switch (choice)
{
case "1":
{
BackupInstrumentState(device);
break;
}
{
RestoreInstrumentState(device); // Read instrument state
break;// files to the sig gen
}
case "3":
{
quit = true;
break;
}
default:
{
break;
}
}
}
VisaInterop.Close(device);// Close the device
}
else
{
Console.WriteLine("Unable to open " + visaOpenString);
}
VisaInterop.Close(defaultRM);
}
else
{
Console.WriteLine("Unable to open the VISA resource manager");
}
}
/* This method restores all the sequence/register state files located in
Keysight Signal Generators Programming Guide
"2) Restore state files\n" +
"3) Quit\nEnter 1,2,or 3. Your choice: ");
// files to the computer
case "2":
// Write instrument state
// Close the default resource manager
Creating and Downloading User–Data Files
Save and Recall Instrument State Files
369

Advertisement

Table of Contents
loading

Table of Contents