Programming Reference

{

///<summary>

///The main entry point for the application.

///</summary>

[STAThread] static void Main()

{

N5980A instrument = new N5980A();

//Connect to the N5980A software running on the same

//PC as this program and that is using port number 5025 instrument.Connect("localhost", 5025);

//set the data rate to OC-3

instrument.Send(":freq OC3"); // read the data rate

string response = instrument.Send(":freq?");

//Close the socket => disconnect from the instrument instrument.Disconnect();

//From here on, it is no longer possible to communicate

with the

//instrument.

}

}

}

44

N5980A User Guide

Page 44
Image 44
Agilent Technologies N5980A manual Programming Reference