EasyManuals Logo
Home>Agilent Technologies>Inverter>E8267D

Agilent Technologies E8267D User Manual

Agilent Technologies E8267D
366 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 #340 background imageLoading...
Page #340 background image
330 Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide
Creating and Downloading User-Data Files
Save and Recall Instrument State Files
the local directory (identified by a ".STA" file name extension)
to the signal generator.*/
static public void RestoreInstrumentState(uint device)
{
DirectoryInfo di = new DirectoryInfo(".");// Instantiate object class
FileInfo[] rgFiles = di.GetFiles("*.STA"); // Get the state files
foreach(FileInfo fi in rgFiles)
{
Match m = Regex.Match(fi.Name, @"^(\d)_(\d\d)");
if (m.Success)
{
string sequence = m.Groups[1].ToString();
string register = m.Groups[2].ToString();
Console.WriteLine("Restoring sequence #" + sequence +
", register #" + register);
/* Save the target instrument's current state to the specified sequence/
register pair. This ensures the index file has an entry for the specified
sequence/register pair. This workaround will not be necessary in future
revisions of firmware.*/
WriteDevice(device,"*SAV " + register + ", " + sequence + "\n",
true); // << on SAME line!
// Overwrite the newly created state file with the state
// file that is being restored.
WriteDevice(device, "MEM:DATA \"/USER/STATE/" + m.ToString() + "\",",
false); // << on SAME line!
WriteFileBlock(device, fi.Name);
WriteDevice(device, "\n", true);
}
}
}
/* This method reads out all the sequence/register state files from the signal
generator and stores them in your computer's local directory with a ".STA"
extension */
static public void BackupInstrumentState(uint device)
{
// Get the memory catalog for the state directory
WriteDevice(device, "MEM:CAT:STAT?\n", false);

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies E8267D and is the answer not in the manual?

Agilent Technologies E8267D Specifications

General IconGeneral
BrandAgilent Technologies
ModelE8267D
CategoryInverter
LanguageEnglish

Related product manuals