Technical data

Creating and Downloading User-Data Files 5
Agilent N8211A/N8212A Performance Upconverter Synthetic Instrument Module, 250 kHz to 20 / 40 GHz 139
", 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);
string catalog = ReadDevice(device);
/* Match the catalog listing for state files which are named
(sequence#)_(register#) e.g. 0_01, 1_01, 2_05*/