376 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Creating and Downloading User–Data Files
Save and Recall Instrument State Files
VisaInterop.Write(device, readBuf, (uint)numRead, out
retCount);
}
// Go ahead and set END on writes
VisaInterop.SetAttribute(device, VisaAttribute.SendEndEnable,
1);
// Done with file
fs.Close();
}
else
{
// Send an empty definite block
WriteDevice(device, "#10", false);
}
}
}
// Declaration of VISA device access constants
public enum VisaAccessMode
{
NoLock = 0,
ExclusiveLock = 1,
SharedLock = 2,
LoadConfig = 4
}
// Declaration of VISA attribute constants
public enum VisaAttribute
{
SendEndEnable = 0x3FFF0016,
TimeoutValue = 0x3FFF001A
}
// This class provides a way to call the unmanaged Keysight IO
Library VISA C
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...