Agilent Technologies N5980A manual Programming Reference

Page 44

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

Image 44
Contents Agilent 125 Gb/s Serial Bert Revision 1.0 May Herrenberger StrSafety Summary Environmental Information Contents Programming Reference Introduction Serial Bert CD content isInspect Shipment Connect the Instrument Front PanelRear Panel To Connect N5980AInstall User Software for N5980A Serial Bert setup diagramTo Install the User Software for N5980A Select the folder in which N5980A will be saved To Access N5980A Demo Offline Advanced Mode IntroductionRunning the BER Test Setting the Instrument Parameters SetupAdvanced Viewing the Results BER displays Gating BER and the Elapsed Gating TimeFile Menu Advanced ModeStore Setting Connection Menu Connect Each PC can control only one N5980AInfo Error IndicatorsHelp Menu Sync Loss ErrorBER Bar Generator Setup and Advanced TabGeneral Error Detector InputSFP Data Pattern SMA Data PatternBER and Advanced BER Tab Gating BER BarGating Errors Actual ErrorsError Detector Pattern Advanced BERCommon Command Summary Agilent N5980A Command SummaryID Query Scpi Instrument Command List- ReferenceCommon Commands Read error queue Load factory default settingOperation complete Option QueryStore current setting Recall settingAll Channels DatarateSMA Output Electrical Generator PatternSOUR1PATT Either sets or gets the pattern of the SMA outputError Insertion Add Single ErrorInsertion Rate Output LevelEither sets or gets the pattern of the SFP output SFP Output Optical GeneratorSOUR2PATT Syntax SOUR2PATTEADD Once SOUR2PATTEADDRATESOUR2PATTEADD Once Trigger Output Detected PatternSOUR3PATT SENS1PATT?Actual Number of Errors Synchronization modeActual Bit Error Rate Gating Bit Error Rate Gating Number of ErrorsGating Time Start GatingDescription Selects the input for the error detector Gating ProgressInput Selection SENS1INPSample Code Communicate with the instrument Programming Reference