Page 2
CONTAINED HEREIN. SHOULD KEYSIGHT agreement and written consent from or commercial computer software AND THE USER HAVE A SEPARATE Keysight Technologies as governed by documentation that is not customarily WRITTEN AGREEMENT WITH WARRANTY United States and international copyright provided to the public; or (2) Relinquish to, TERMS COVERING THE MATERIAL IN THIS laws.
Failure to comply with these precautions or with specific warnings or operating instructions in the product manuals violates safety standards of design, manufacture, and intended use of the instrument. Keysight Technologies assumes no liability for the customer's failure to comply with these requirements. Product manuals are provided on the Web.
Instrument Markings Instrument Marking Description The instruction manual symbol. The product is marked with this warning symbol when it is necessary for the user to refer to the instructions in the manual. Standby supply. Unit is not completely disconnected from AC mains when switch is off.
Compliance and Environmental Information Table 1 Compliance and Environmental Information Safety Symbol Description This product complies with WEEE Directive (2002/96/EC) marking requirements. The affixed label indicates that you must not discard this electrical/electronic product in domestic household waste. Product Category: With reference to the equipment types in WEEE Directive Annex I, this product is classed as a “Monitoring and Control instrumentation”...
Contents Safety Summary Instrument Markings Compliance and Environmental Information Declaration of Conformity 1 Introduction to Programming Message Queues How the Input Queue Works Clearing the Input Queue The Output Queue The Error Queue Programming and Syntax Diagram Conventions Short Form and Long Form Command and Query Syntax Common Commands Common Command Summary...
Page 9
Keysight N778xC Series Polarization Instruments Programming Guide Introduction to Programming Message Queues / 10 Programming and Syntax Diagram Conventions / 12 Common Commands / 15 This chapter provides general information on how to control your instrument remotely. Descriptions for the actual commands for the instruments are given in the following chapters.
Introduction to Programming Message Queues The instrument exchanges messages using an input and an output queue. Error messages are kept in a separate error queue. How the Input Queue Works The input queue is a FIFO queue (first-in first-out). Incoming bytes are stored in the input queue.
Page 11
Introduction to Programming If more than 29 errors are put into the queue, the message: -350, "Queue overflow" is placed as the last message in the queue. Keysight N778xC Series Polarization Instruments Programming Guide...
Introduction to Programming Programming and Syntax Diagram Conventions A program message is a message containing commands or queries that you send to the instruments. The following are a few points about program messages: • You can use either upper-case or lower-case characters. •...
Page 13
Introduction to Programming The characters between angled brackets ( < > ) indicate the kind of data that you should send, or that you get in a response. You do not type the angled brackets in the actual message. Descriptions of these items follow the syntax description. The following types of data are most commonly used: string is ascii data.
Page 14
Introduction to Programming Data Types With the commands you give parameters to the instrument and receive response values from the instrument. Unless explicitly specified these data are given in ASCII format. The following types of data are used: • Boolean data may only have the values 0 or 1. •...
Introduction to Programming Common Commands The IEEE 488.2 standard has a list of reserved commands, called common commands. Some of these commands must be implemented by any instrument using the standard, others are optional. Your instrument implements all the necessary commands, and some optional ones.
Introduction to Programming Common Status Information There are three registers for the status information. Two of these are status-registers and one is an enable-registers. These registers conform to the IEEE Standard 488.2-1987. You can find further descriptions of these registers under *ESE, *ESR?, and *STB?. Figure 1 shows how the Standard Event Status Enable Mask (SESEM) and the Standard Event Status Register (SESR) determine the Event Status Bit...
Page 17
Introduction to Programming The SESEM allows you to choose the event that may affect the ESB of the Status Byte. If you set a bit of the SESEM to zero, the corresponding event cannot affect the ESB. The default is for all the bits of the SESEM to be set to 0.
Page 19
Keysight N778xC Series Polarization Instruments Programming Guide Command Summary Command Summary / 20 This chapter lists commands relating to the N778xC series polarization instruments. Each of these summaries contains a page reference for more detailed information about the particular command later in this manual.
Command Summary Command Summary The commands are ordered in a command tree. Every command belongs to a node in this tree. The root nodes are also called the subsystems. A subsystem contains all commands belonging to a specific topic. In a subsystem there may be further subnodes.
Page 27
Keysight N778xC Series Polarization Instruments Programming Guide Instrument Setup and Status IEEE-Common Commands / 28 Interface/Instrument Behaviour Settings – The SYSTem Subsystem / 34 System Communicate - The :SYST:COMMunicate sub tree / 38 This chapter gives descriptions of commands that you can use when setting up your instrument.
Instrument Setup and Status IEEE-Common Commands Common Commands on page 15 gave a brief introduction to the IEEE-common commands which can be used with the instruments. This section gives fuller descriptions of each of these commands. Command: *CLS Syntax: *CLS Description: The Clear Status (*CLS) command clears the status byte by emptying the error queue and clearing all the event registers (SESR) including the Data Questionable Event Register, the Standard Event Status Register, the Standard Operation Status...
Page 29
Instrument Setup and Status Not Used 0 (LSB) Operation Complete Response: none Example: *ESE 255 Command: *ESE? Syntax: *ESE? Description: The standard Event Status Enable query *ESE? returns the contents of the Standard Event Status Enable Mask (see *ESE for information on this register). Parameters: none Response:...
Page 30
Description: The IDeNtification query *IDN? gets the instrument identification over the interface. Parameters: none Response: The identification, for example: MMMMMMMM manufacturer, for example Keysight Technologies mmmm instrument model number (for example N7785C) ssssssss serial number rrrrrrrrrr firmware revision level Example: *IDN? ->...
Page 31
Instrument Setup and Status Command: *OPC? Syntax: *OPC? Description: The OPeration Complete query *OPC? parses all program message units in the input queue, sets the operation complete bit in the Standard Event Status register, and places an ASCII ’1’ in the output queue, when the contents of the input queue have been processed.
Page 32
Instrument Setup and Status Parameters: none Response: none Example: *RST Command: *STB? Syntax: *STB? Description: The STatus Byte query *STB? returns the contents of the Status Byte register. Parameters: none Response: The bit value for the register (a 16-bit signed integer value): Mnemonic Decimal Value 7 (MSB)
Page 33
Instrument Setup and Status Parameters: none Response: Selftest failed 1 A value of zero indicates no errors. Example: *TST? > 0 Command: *WAI Syntax: *WAI Description: The WAIt command prevents the instrument from executing any further commands until the current command has finished executing.
Instrument Setup and Status Interface/Instrument Behaviour Settings – The SYSTem Subsystem The SYSTem subsystem lets you control the instrument’s serial interface. You can also control some internal data (like date, time, and so on) Command: :SYSTem:DATE Syntax: :SYSTem:DATE<wsp><year>,<month>,<day> Description: Sets the instrument’s internal date. Parameters: The date in the format year, month, day.
Instrument Setup and Status Command: :SYSTem:HELP:ERRors? Syntax: :SYSTem:HELP:ERRors? Description: Return an overview about all Errorcodes and a short description. Parameters: none Response: String list of error codes Example: :syst:help:err? -> +0,"No error",-100,"Command error",- 101,"Invalid character",-102,"Syntax error",-103, "Invalid separator",-104,"Data type error",-105,"GET not allowed",-108,"Parameter not allowed",... Command: :SYSTem:PRESet Syntax:...
Instrument Setup and Status Command: :SYSTem:TIME? Syntax: :SYSTem:TIME? Description: Returns the instrument’s internal time. Parameters: none Response: The time in the format hour, minute, second. Hours are counted 0...23. -> Example: :syst:time? +20,+15,+30 Command: :SYSTem:ERRor[:NEXT]? Syntax: :SYSTem:ERRor[:NEXT]? Description: Returns the next error from the error queue. Parameters: none Response:...
Instrument Setup and Status System Communicate - The :SYST:COMMunicate sub tree We recommend you change network settings using the local user interface. The instrument does not close open connections when restarting the network NOTE interface (:SYSTem:COMMunicate:ETHernet:RESTart). This means the number of possible connections is reduced by the number of previously open connections.
Instrument Setup and Status Command: :SYSTem:COMMunicate:ETHernet:AUTOip:ENABle Syntax: :SYSTem:COMMunicate:ETHernet:AUTOip:ENABle Description: Enable or disable whether IP addresses can be created automatically by the instrument. Automatic IP addressing is only used if DHCP is enabled, but the instrument cannot find a DHCP server. Parameters: Boolean (0 | 1 | off | on) Response:...
Instrument Setup and Status Command: :SYSTem:COMMunicate:ETHernet:DOMainname? Syntax: :SYSTem:COMMunicate:ETHernet:DOMainname? Description: Get the domain name. Parameters: None Response: String Example: :syst:comm:eth:dom? -> “.companyname.com” Command: :SYSTem:COMMunicate:ETHernet:DOMainname Syntax: :SYSTem:COMMunicate:ETHernet:DOMainname Description: Set the domain name (used if DHCP is disabled). Parameters: String Response: None Example: :syst:comm:eth:dom “.companyname.com”...
Instrument Setup and Status Parameters: string (maximum 19 characters, though not all characters can be used) The default host name is K-P...P-S...S; where P...P is the product Number, and S...S is as many of the last digits of the serial number as it takes to get a 15 character host name.
Instrument Setup and Status Command: :SYSTem:COMMunicate:ETHernet:NSERver Syntax: :SYSTem:COMMunicate:ETHernet:NSERver Description: Set one or two nameservers for name resolution. (used if DHCP is disabled). Parameters: IP Address String Response: None Example: :syst:comm:eth:nser "1.1.1.1" Command: :SYSTem:COMMunicate:ETHernet:NSERver:CURRent? Syntax: :SYSTem:COMMunicate:ETHernet:NSERver:CURRent? Description: Get the DNS server addresses assigned from your DHCP sever (this is only valide if DHCP is available and enabled. Parameters: None Response:...
Instrument Setup and Status Parameters: String (Up to four groups of up to 3 digits, groups separated by ".". Groups with leading zeroes are interpreted as octal numbers.) Response: None Example: :syst:comm:eth:ipad “192.132.13.2” Command: :SYSTem:COMMunicate:ETHernet:IPADdress? Syntax: :SYSTem:COMMunicate:ETHernet:IPADdress? Description: Get the manually set IP address of the system. Parameters: None Response:...
Instrument Setup and Status Command: :SYSTem:COMMunicate:ETHernet:NTP:ENABle? Syntax: :SYSTem:COMMunicate:ETHernet:NTP:ENABle? Description: Returns the usage of a NTP Server Parameters: None Response: Boolean (0 | 1) Example: :syst:comm:eth:ntp:enab? -> 1 Command: :SYSTem:COMMunicate:ETHernet:NTP:ENABle Syntax: :SYSTem:COMMunicate:ETHernet:NTP:ENABle Description: Disables or enables instrument's use of NTP. The acronym NTP stands for Network Time Protocol, a protocol for clock synchronization between computer systems. Parameters: Boolean (0 | 1) Response:...
Instrument Setup and Status Command: :SYSTem:COMMunicate:ETHernet:WHITEList:ENABle Syntax: :SYSTem:COMMunicate:ETHernet:WHITEList:ENABle Description: Set or enables the device access IP whitelist Parameters: Boolean (0 | 1) Response: None Example: :syst:comm:eth:whitel:enab 0 Command: :SYSTem:COMMunicate:ETHernet:WHITEList#:IPADdress? Syntax: :SYSTem:COMMunicate:ETHernet:WHITEList#:IPADdress? Description: Get one entry from the device access IP whitelist (up to 10 IP Addresses) of permitted client which could control this instrument.
Instrument Setup and Status Parameters: Int (1-10) Response: IP Address String Example: :syst:comm:eth:whitel1:smas? -> "192.168.0.2" Command: :SYSTem:COMMunicate:ETHernet:WHITEList#:SMASk Syntax: :SYSTem:COMMunicate:ETHernet:WHITEList#:SMASk Description: Define an entry in the device access ip whitelist (up to 10 IP Addresses) of permitted client which could control this instrument.
Instrument Setup and Status Command: :SYSTem:COMMunicate:ETHernet:SMASk:CURRent? Syntax: :SYSTem:COMMunicate:ETHernet:SMASk:CURRent? Description: Get the currently used subnet mask. Parameters: None Response: String Example: :syst:comm:eth:smas:curr? -> “255.255.255.0” Keysight N778xC Series Polarization Instruments Programming Guide...
Page 51
Keysight N778xC Series Polarization Instruments Programming Guide Measurement Operations & Settings Configure Subsystem Commands / 52 Triggering - The TRIGger Subsystem / 55 This chapter gives descriptions of commands that you can use when you are setting up or performing measurements. The commands are split up into the following subsystems: Configure subsystem commands that control all instruments.
Measurement Operations & Settings Configure Subsystem Commands This section provides the description of the following commands. Command: :CONFigure:MEASurement:SETTing:ACTual? Syntax: :CONFigure:MEASurement:SETTing:ACTual? Description: Get the index of the setting currently being used. Parameters: None Response: A value >0 is returned if the setting has been stored in FLASH memory (using :CONFigure:MEASurement:SETTing:SAVE), or has been recalled from FLASH memory (using :CONFigure:MEASurement:SETTing:RECall), and has not been changed since.
Page 53
Measurement Operations & Settings Response: None Example: :conf:meas:sett:pres Affects: All instruments Command: :CONFigure:MEASurement:SETTing:CANCel Syntax: :CONFigure:MEASurement:SETTing:CANCel Description: Discard all the changes to the setting since the last save or recall Parameters: None Response: None Example: :conf:meas:sett:canc Affects: All instruments Command: :CONFigure:MEASurement:SETTing:RECall Syntax: :CONFigure:MEASurement:SETTing:RECall Description:...
Page 54
Measurement Operations & Settings Command: :CONFigure:MEASurement:SETTing:ERASe Syntax: :CONFigure:MEASurement:SETTing:ERASe Description: Erase a setting from memory Parameters: Integer Response: None Example: :conf:meas:sett:eras 1 Affects: All instruments Keysight N778xC Series Polarization Instruments Programming Guide...
Measurement Operations & Settings Triggering - The TRIGger Subsystem Command: :TRIGger Syntax: :TRIGger<wsp>NODEA|1|NODEB|2 Description: Generates a hardware trigger. Parameters: 1 or NODEA: Is identical to a trigger at the Input Trigger Connector. 2 or NODEB: Generates trigger at the Output Trigger Connector. A hardware trigger cannot be effective in the DISabled triggering mode but can be effective in DEFault, PASSthrough or :TRIGger:CONFiguration LOOPback triggering modes, see...
Measurement Operations & Settings Command: :TRIGger[n]:INPut? Syntax: :TRIGger[n]:INPut? Description: Returns the incoming trigger response. Parameters: None Response: IGNore: Ignore incoming trigger SMEasure: Start a single measurement. If a measurement function is active. CMEasure: Start a complete measurement. If a measurement function is active, a complete measurement function is performed.
Measurement Operations & Settings Command: :TRIGger[n]:INPut:EDGe? Syntax: :TRIGger[n]:INPut:EDGe? Description: Returns the trigger edge detection of the BNC TTL input. Parameters: None Response: RISing: trigger on the high edge of the BNC TTL input FALLing: trigger on the low edge of the BNC TTL input Example: :TRIG:INP:EDG? →...
Measurement Operations & Settings Command: :TRIGger[n]:OFFSet Syntax: :TRIGger[n]:OFFSet <value> Description: Sets the number of incoming triggers received before data logging begins. Parameters: <value> - an integer value. (maximum possible value is 2147483647) Response: None Example: :trig1:offs 5 Affects: All modules Command: :TRIGger[n]:OUTPut? Syntax:...
Measurement Operations & Settings Command: :TRIGger:CONFiguration? Syntax: :TRIGger:CONFiguration? Description: Returns the hardware trigger configuration. Parameters: None Parameters: 0 or DISabled: Trigger connectors are disabled. 1 or DEFault: The Input Trigger Connector is activated, the incoming trigger response for each slot. 2 or PASSthrough: A trigger at the Input Trigger Connector generates a trigger at the Output Trigger Connector automatically.
Page 61
Keysight N778xC Series Polarization Instruments Programming Guide Polarization Commands Polarization Analyzer Commands / 62 Polarization Synchronous Scrambler Commands / 77 Polarization Synthesizer / Polarization Component Analyzer Commands / 89 This chapter provides description of the polarization commands.
Polarization Commands Polarization Analyzer Commands Command: :POLarimeter:SOP? Syntax: :POLarimeter:SOP? Description: Returns the measured S0, S1, S2 and S3 stokes parameter The normalized Stokes parameter are obtained by dividing the Stokes parameters by the total optical power s1 = S1/S0 s2=S2/S0 s3=S3/S0 Parameters: None Response:...
Page 63
Polarization Commands Command: :POLarimeter:POWer:FETCh? Syntax: :POLarimeter:POWer:FETCh? Description: Returns the power from last measurement Parameters: None Response: Float Example: :POL:POW:FETC? -> +1.53759156E-05 Affects N7781C / N7786C / N7788C Command: :POLarimeter:POWer:UNIT Syntax: :POLarimeter:POWer:UNIT<wsp>DBM|0|Watt|1 Description: Sets the power unit Parameters: 0 or DBM: dBm 1 or Watt: Watts Example: :POL:POW:UNIT 1...
Page 64
Polarization Commands Command: :POLarimeter:WAVelength Syntax: :POLarimeter:WAVelength<wsp><wavelength> [PM|NM|UM|MM|M]|MINimum|MAXimum|DEFault Description: This command sets the current wavelength / start wavelength. Parameters: The wavelength as a float value. If you specify no units in your command, meters are used as the default. Example: :POLarimeter:WAVelength 1.550E-06 Affects N7781C / N7786C / N7788C Command:...
Page 65
Polarization Commands Command: :POLarimeter:GAIN? Syntax: :POLarimeter:GAIN? Description: Returns the gain level Parameters: None Response Gain level as integer Example: :pol:gain? -> +8 Affects N7781C / N7786C / N7788C Command: :POLarimeter:AGFLag Syntax: :POLarimeter:AGFLag Description: Enable or disable auto gain NOTE - Auto Gain is disabled when setting manual Gain with the POL:GAIN command. NOTE - Auto gain setting is ignored in Logging / Sweep and Stabilizer Mode.
Page 66
Polarization Commands Command: :POLarimeter:STOP Syntax: :POLarimeter:STOP Description: Stops logging Parameters: None Example: :pol:swe:stop Affects N7781C / N7786C / N7788C Command: :POLarimeter:ZERO Syntax: :POLarimeter:ZERO Description: Zeros photodiodes. That means dark current is measured and will be subtracted from future measurements. Parameters: None Example: :pol:zero...
Page 67
Polarization Commands Parameters: Integer 0: endless Example: :pol:swe:loop 1 Affects N7781C / N7786C / N7788C Command: :POLarimeter:SWEep:LOOP? Syntax: :POLarimeter:SWEep:LOOP? Description: Gets the number of loops, which should be logged after starting Parameters: None Response: Integer Example: :pol:swe:loop? Affects N7781C / N7786C / N7788C Command: :POLarimeter:SWEep:STARt Syntax:...
Page 68
Polarization Commands Response: IDLE,NO_DATA: No data available, logging stopped SAMPLING,DATA_AVAILABLE: Data available, logging running SAMPLING,NO_DATA: No data available, logging running READY,DATA_AVAILABLE: Data available, logging not running IDLE,DATA_AVAILABLE: Data available, logging stopped Example: :pol:swe:stat? -> SAMPLING,DATA_AVAILABLE Affects N7781C / N7786C / N7788C Command: :POLarimeter:SWEep:GET? Syntax:...
Page 69
Polarization Commands Parameters: None Response: Integer Example: :pol:swe:get:ind? → +1120055703 Affects N7781C / N7786C / N7788C Command: :POLarimeter:SWEep:SAMPles Syntax: :POLarimeter:SWEep:SAMPles Description: This command sets the number of samples/logging count (1-1048576) Parameters: Number of samples Example: :pol:swe:samp 1000 Affects N7781C / N7786C / N7788C Command: :POLarimeter:SWEep:SAMPles? Syntax:...
Page 70
Polarization Commands Command: :POLarimeter:SWEep:RATe Syntax: :POLarimeter:SWEep:RATe<wsp>[nm/s|pm/s] Description: This command sets the sweep rate in m/s. When performing a swept measurement, very often, the wavelength is changed over time. This parameter allows you to inform the instrument about the speed at which the wavelength of the laser source is changing.
Page 71
Polarization Commands Command: :POLarimeter:SWEep:SRATe? Syntax: :POLarimeter:SWEep:SRATe?[<wsp>MIN|MAX|DEF] Description: This command gets the sampling rate and averaging time Parameters: None: to get current sampling rate and averaging time MIN: minimum sampling rate MAX: maximum sampling rate DEF: default sampling rate Response: No parameter: sampling rate in float averaging time in float MIN|MAX|DEF parameter:...
Page 72
Polarization Commands Parameters: Sweep step in m Example: :pol:swe:step 1pm Affects N7781C / N7786C / N7788C Command: :POLarimeter:SWEep:STEP? Syntax: :POLarimeter:SWEep:STEP? Description: In SME mode, this is the step (wavelength increased by this value) which is done for every trigger while logging. Parameters: None Response:...
Page 73
Polarization Commands Command: :POLarimeter:SWEep:TRIGger:POST:SAMPles Syntax: :POLarimeter:SWEep:TRIGger:POST:SAMPles Description: Sets the number of post samples. That means samples after trigger event. Numbers of pre samples and post samples have to be smaller than 1048576. Parameters: Number of post samples Example: :pol:swe:trig:post:samp 2000 Affects N7781C / N7786C / N7788C Command:...
Page 74
Polarization Commands Command: :POLarimeter:SWEep:CONTinuous:SACCuracy? Syntax: :POLarimeter:SWEep:CONTinuous:SACCuracy? Description: Returns the SOP accuracy in rad used in the continuous sampling mode. Parameters: None Response: SOP accuracy in rad Example: :pol:swe:cont:sacc? → +0.00000000E+00 Affects N7781C / N7786C / N7788C Command: :POLarimeter:TRIGger:INPut Syntax: :POLarimeter:TRIGger:INPut<wsp><value> Description: Defines the trigger input Parameters:...
Page 79
Polarization Commands Response: None Example: :PCONtroller:SEQuence:RRATe 50.2 Affects N7785C / N7786C / N7788C Command: :PCONtroller:SEQuence:RRATe? Syntax: :PCONtroller:SEQuence:RRATe? Description: Get the polarization controller repetition rate for each datapoint in kHz Parameters: None Response: Double value Example: :PCONtroller:SEQuence:RRATe? +5.02000000E+01 Affects N7785C / N7786C / N7788C Command: :PCONtroller:SEQuence:SMODe Syntax:...
Page 80
Polarization Commands Command: :PCONtroller:SEQuence:SMODe? Syntax: :PCONtroller:SEQuence:SMODe? Description: Returns the current configured Sequence Mode 0 = Sequence will automatically start and restart when reaching the end. 1 = Sequence will automatically start and run only once. 2 = Sequence will start when a low/high-transition is detected on the BNC input. When reachig the end of the sequence, it will be restarted.
Page 81
Polarization Commands Response: Boolean integer value Example: :PCONtroller:SEQuence:DCOMpensation? 1 Affects N7785C / N7786C / N7788C Command: :PCONtroller:SEQuence:HOLDoff Syntax: :PCONtroller:SEQuence:HOLDoff<wsp><number> Description: Define an external trigger delay after changing the SOP value Parameters: Integer value (0-32766) 1 means 1/32 us Response: None Example: :PCONtroller:SEQuence:HOLDoff 10 Affects...
Page 83
Polarization Commands Command: :PCONtroller:SEQuence:SEQVoltage? Syntax: :PCONtroller:SEQuence:SEQVoltage? Description: Get the polarization controller sequence DAC voltage sequence Parameters: None Response: 488.2 Binary Block <word / short> Example: :PCONtroller:SEQuence:SEQVoltage? Affects N7785C / N7786C / N7788C Command: :PCONtroller:SCRambler:ENABle Syntax: :PCONtroller:SCRambler:ENABle Description: Enables (1) or disables (0) the Scrambler (same function like :PCONtroller:STARt and :PCONtroller:STOP). Parameters: Integer value 1 = Polcontroller is running...
Page 84
Polarization Commands Command: :PCONtroller:STAGe<stage>:DEGree Syntax: :PCONtroller:STAGe<stage>:DEGree<wsp><orientation> Description: Set the orientation for each waveplate (lambda/4 plate) Parameters: <stage> integer value between 1 to 6 <orientation> float value from 0.0 to 359.999 Response: None Example: :pcon:stag1:deg 75.4 Affects N7785C / N7786C / N7788C Command: :PCONtroller:STAGe<stage>:DEGree? Syntax:...
Page 85
Polarization Commands Command: :PCONtroller:REPetition Syntax: :PCONtroller:REPetition<wsp><repetitions> Description: Sets the polarization controller repetition Parameters: <repetitions> NOTE: 0 means endless Response: None Example: :pcon:rep 10 Affects N7785C / N7786C / N7788C Command: :PCONtroller:REPetition? Syntax: :PCONtroller:REPetition? Description: Get the polarization controller repetition Parameters: None Response: Integer value between 0 to 2147483647...
Page 86
Polarization Commands Command: :PCONtroller:SAVE:ARB? Syntax: :PCONtroller:SAVE:ARB? Description: Save the current arb sequence in nonvolatile memory Parameters: None Response: "save 4 datapoints" Example: :pcon:save:arb? -> "save 4 datapoints" Affects N7785C / N7786C / N7788C Command: :PCONtroller:LOAD:ARB? Syntax: :PCONtroller:LOAD:ARB? Description: Load an arbitrary waveform Parameters: None Response:...
Page 87
Polarization Commands Command: :PCONtroller:GEN:SCRAmble? Syntax: :PCONtroller:GEN:SCRAmble?<wsp><number> Description: Generate a random sequence. Example: :PCON:GEN:SCRA? #Datapoints Example: :PCON:GEN:SCRA 120000 Return Value = status string "GEN DONE" Parameters: <number> integer value from 1-1000000 Response: Status message: "GEN DONE" when the generation is finished Example: :PCONtroller:GEN:SCRAmble? 300' ->...
Page 88
Polarization Commands Response: Integer value 0 = optical Scrambler Input signal will be routed to the internal polarimerer 1 = optical Scrambler Input signal will be routed to the Scrambler Output Example: :pcon:swit? -> +0 Affects N7788C Keysight N778xC Series Polarization Instruments Programming Guide...
Polarization Commands Polarization Synthesizer / Polarization Component Analyzer Commands Command: :STABilizer:STABilize Syntax: :STABilizer:STABilize<wsp> <value> Description: Sets the Stabilizer Operating Mode. NOTE - The stabilizer function configures and controls both, the Scrambler and the Polarimeter including intern and extern Trigger Configuration. After Stopping the Stabilizer Mode use System:Preset or *RST to activate the normal Scrambler and Polarimeter Mode NOTE - Use only gain between 0 and 7 for Stabilizer Mode because 8 and 9 have a small Bandwith e.g.
Page 90
Polarization Commands Command: :STABilizer:SOP Syntax: :STABilizer:SOP<wsp> <s1>,<s2>,<s3>[,<Factor>] Description: Sets the target SOP for the Stabilizer. • For the N7786C and N7788C which have a build in Polarimeter the target SOP must be provided as a 3-element normalized Stokes vector (s1,s1,s3 with DOP=1). If the DOP is not 1, then it will be normalized before processing. •...
Page 91
Keysight N778xC Series Polarization Instruments Programming Guide Error Codes Error Strings / 92 This chapter gives information about error codes used with the N778xC series tunable laser source instruments.
Error Codes Error Strings Error strings in the range -100 to -183 are defined by the SCPI standard, downloadable from: http://www.ivifoundation.org/docs/scpi-99.pdf String descriptions taken from this standard (VERSION 1999.0 May, 1999), whether in whole or in part, are enclosed by [ ]. Table 1 Overview for Supported Strings Error...
Page 93
Error Codes Error Number String -112 "Program mnemonic too long" [The header contains more than twelve characters (see IEEE 488.2, 7.6.1.4.1).] -113 "Undefined header" [The header is syntactically correct, but it is undefined for this specific device; for example, *XYZ is not defined for any device.] -114 "Header suffix out of range"...
Page 94
Error Codes Error Number String -148 “Character data not allowed” [A legal character data element was encountered where prohibited by the device.] -150 “String data error” [This error, as well as errors -151 through -159, are generated when parsing a string data element. This error message is used when the device cannot detect a more specific error.] -151 “Invalid string data”...
Page 95
Error Codes Error Number String -185 “Subop out of range” Description: Suboperations are parameters that are passed to refine the destination of a command. They are used to address slots, channels, laser selections and GPIB/SCPI register levels. This error is generated if the parameter is not valid in the current context or system configuration.
Page 96
Error Codes Error Number String -214 "Trigger deadlock" -215 "Arm deadlock" -220 "Parameter error (StatParmError)” Description: The user has passed a parameter that cannot be changed in this way. The device cannot detect one of the following more specific errors: -220 -220, "Parameter error (StatParmOutOfRange)"...
Page 97
Error Codes Error Number String -223 “Too much data” Description: A function returns more data or the user requests more data than the application is able to handle. Example: A tunable laser source produces more data when lambda values of a sweep are stored than the 816x instrument is able to handle.
Page 98
Error Codes Error Number String -257 "File name error" -258 "Media protected" -260 "Expression error" -261 "Math error in expression (StatUnitCalculationError)" Description: This may occur when the user attempts to transform data in a way that is currently not possible. Example: When a powermeter is measuring very small power values in dBm (such as noise power), negative power values in Watt may also be present (such as when the powermeter calibration wavelength...
Page 99
Error Codes Error Number String -283 "Illegal variable name" -284 "Function currently running (StatModuleBusy)" Description: This error is generated when a function is currently running on a module so that it cannot process another command. Example: When a powermeter is running a logging application, you are not able to configure the logging application parameters (also see -200).
Page 100
Error Codes Error Number String -330 “Self-test failed” Description: You have started the self test, but the module has detected an error while executing it -340 "Calibration failed" -350 “Queue overflow” [A specific code entered into the queue in lieu of the code that caused the error. This code indicates that there is no room in the queue and an error occurred but was not recorded.] -360 "Communication error"...
Page 101
Error Codes Error Number String -420 “Query UNTERMINATED” [Indicates that a condition causing an UNTERMINATED Query error occurred (see IEEE 488.2, 6.3.2.2); for example, the device was addressed to talk and an incomplete program message was received.] -430 “Query DEADLOCKED” [Indicates that a condition causing an DEADLOCKED Query error occurred (see IEEE 488.2, 6.3.1.7);...
Need help?
Do you have a question about the N778 C Series and is the answer not in the manual?
Questions and answers