Technical data
136 Agilent N8211A/N8212A Performance Upconverter Synthetic Instrument Module, 250 kHz to 20 / 40 GHz
5 Creating and Downloading User-Data Files
using System.Collections;
using System.Text.RegularExpressions;
namespace State_Files
{
class MainApp
{
// Replace the visaOpenString variable with your instrument's address.
static public string visaOpenString = "TCPIP0::IP ADDRESS::INST0::INSTR";
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)