Technical data

602 Agilent N8201A Performance Downconverter Synthetic Instrument Module, 250 kHz to 26.5 GHz
28 Programming Fundamentals
static void doDcas(string host,
int port)
{
// First open the control port
Tcp C lien t dc a sPort = new TcpClient () ;
dcasPort.Connect(host,port);
NetworkStream dcasStream = dcasPort.GetStream();
// The control port accepts one command only. When you send DCL\n to the control
// port, a device clear will automatically happen.
dcasStream.Write(Encoding.UTF8.GetBytes("DCL\n"),0,4);
}
/// <summary>
/// This program demonstrates how to do a device clear over the raw socket port. The
N8201A
/// must be running revision A.09.00 firmware or later.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Tc p Cl ie n t N8201A = new TcpClient();
// First open the N8201A. Replace the string "N8201A" with the hostname assigned to
your
// N8201A.