SIGLENT SSG5080A Series Programming Manual
SIGLENT SSG5080A Series Programming Manual

SIGLENT SSG5080A Series Programming Manual

Signal generator
Hide thumbs Also See for SSG5080A Series:
Table of Contents

Advertisement

Quick Links

SSG5080A Series Signal Generator
Programming Guide
PG0805A-E01A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SSG5080A Series and is the answer not in the manual?

Questions and answers

Summary of Contents for SIGLENT SSG5080A Series

  • Page 1 SSG5080A Series Signal Generator Programming Guide PG0805A-E01A...
  • Page 2: Table Of Contents

    SIGLENT Contents Programming Overview ............... 5 Build Communication ................5 Build Communication Using VISA ............... 5 1.1.1 Build Communication Using Sockets ..............8 1.1.2 Connecting the signal generator via the USB Host port ......8 1.1.3 Remote Control Capabilities ..............9 User-defined Programming ..................
  • Page 3 SIGLENT Preset Subsystem .................. 25 Preset (:SOURce:PRESet).................. 25 3.3.1 System Preset (:SYSTem:PRESet) ..............25 3.3.2 Preset Save (:SYSTem:PRESet:SAVE) ............... 26 3.3.3 Preset Path (:SYSTem:PRESet:PATH) ............... 26 3.3.4 Preset Type (:SYSTem:PRESet:TYPE) ............... 26 3.3.5 Factory Reset (:SYSTem:FDEFault) ..............27 3.3.6 Reset & Clear (SYSTem:RESet:CLEar) ............. 27 3.3.7...
  • Page 4 SIGLENT LabVIEW Example ....................92 4.1.4 Socket Examples ..................94 Python Example ....................94 4.2.1 Telnet Example ....................96 4.2.2 4 SSG5000A Programming Guide...
  • Page 5: Programming Overview

    SIGLENT 1. Programming Overview The SSG5080A supports both USB and LAN interfaces. By using these interfaces, in combination with NI-VISA and programming languages, users can remotely control the signal generator. The instrument comes with an embedded web interface; VXI-11, Sockets and Telnet protocols can be used to communicate with the signal generator.
  • Page 6 SIGLENT c. The NI-VISA installing dialog is shown above. Click Next to start the installation process. Set the install path, default path is “C:\Program Files\National Instruments\”, you can change it. Click Next, dialog shown as above. 6 SSG5000A Programming Guide...
  • Page 7 SIGLENT d. Click Next twice, in the License Agreement dialog, select the “I accept the above 2 License Agreement(s).”, and click Next, “Start Installation” dialog shown. e. Click Next to run installation. Now the installation is complete, reboot your PC.
  • Page 8: Build Communication Using Sockets

    1. Install NI-VISA on your PC for GPIB driver. 2. Connect the signal generator USB Host port to a PC’s GPIB card port, with SIGLENT USB-GPIB adaptor. 3. Switch on the signal generator. 4. Press button on the front panel System → Interface → GPIB to enter the...
  • Page 9: Remote Control Capabilities

    SIGLENT GPIB number. The signal generator will be detected automatically as a new GPIB point. 1.2 Remote Control Capabilities 1.2.1 User-defined Programming Users can use SCPI commands to program and control the signal generator. For details, refer to the introductions in “Programming Examples”.
  • Page 10 SIGLENT NOTE: The “*IDN?” command (known as the Identification Query) returns the instrument manufacturer, instrument model, serial number, other identification information. 1.2.2.2 Using LAN Add a Network Device, and select a VISA TCP/IP Resource as shown: Run NI MAX software.
  • Page 11 SIGLENT NOTE: Leave the LAN Device Name BLANK or the connection will fail. 4. After a brief scan, the connection should be shown under Network Devices: SSG5000A Programming Guide 11...
  • Page 12 SIGLENT 5. Right-click on the product and select Open NI-VISA Test Panel: 6. Click “Input/Output” option button and click “Query” option button. If everything is OK, you will see the Read operation information returned as shown below. 12 SSG5000A Programming Guide...
  • Page 13 SIGLENT SSG5000A Programming Guide 13...
  • Page 14: Scpi Overview

    SIGLENT 2. SCPI Overview 2.1 Command Format SCPI commands present a hierarchical tree structure containing multiple subsystems; each of the subsystems is made up of a root keyword and several sub keywords. The command string usually starts with a colon “:”, the keywords are separated by a colon “:”...
  • Page 15: Parameter Type

    SIGLENT The vertical bar is used to separate multiple parameters and when sending the command, you can choose one of the parameters. For example, In the “[:SOURce]:AM:STATe OFF|ON|0|1” command, the parameters available are “OFF”, “ON”, “0” or “1”. 4. Braces { } The parameters in the braces are optional which can be ignored or set for one or more times.
  • Page 16: Command Abbreviation

    SIGLENT The parameter <value> can be set to any real number between -100 and 100. 5. String The parameter should be the combinations of ASCII characters. For example: :SYSTem:COMMunicate:LAN:IPADdress <“xxx.xxx.xxx.xxx”> The IP address can be set as the string “192.168.1.12”.
  • Page 17: Scpi Commands

    SIGLENT 3. SCPI Commands This chapter introduces the Siglent Technologies SSG5000A SCPI commands, including: IEEE Common Commands System Subsystem Preset Subsystem Output Subsystem Source Subsystem Sense Subsystem 3.1 IEEE Common Commands 3.1.1 Identification Query (*IDN) Command *IDN? Format Instructi Returns an instrument identification information string. The string contains the manufacturer, model number, serial number, software number, FPGA number and CPLD number.
  • Page 18: Standard Event Status Enable (*Ese)

    SIGLENT responsible for generating service requests. Menu None Example *CLS 3.1.4 Standard Event Status Enable (*ESE) Command *ESE <number> Format *ESE? Instructi Set the bits in the standard event status enable register. This register monitors I/O errors and synchronization conditions such as operation complete, request control, query error, device dependent error, execution error, command error and power on.
  • Page 19: Status Byte Query (*Stb)

    SIGLENT register. The query returns the value of the register, indicating which bits are currently enabled. Menu None Example *SRE 1 3.1.8 Status Byte Query (*STB) Command *STB Format Instruction This query is used by some instruments for a self test.
  • Page 20: System Date (:System:date)

    SIGLENT :SYSTem:TIME 182559 Get System time: :SYSTem:TIME? 3.2.2 System Date (:SYSTem:DATE) Command :SYSTem:DATE <yyyymmdd> Format :SYSTem:DATE? Instruction Set system date Get system date Parameter String Type Parameter Years(four digits), month(1 ~ 12), date(1 ~ 31) Range Return String Default None Menu Utility >...
  • Page 21: Subnet Mask (:System:communicate:lan:smask)

    SIGLENT Type Parameter Conforms to the IP standard (0~255.0~255.0~255.0~255) Range Return Gateway string Default None Menu Utility > Interface > LAN Setting > Gateway Example :SYSTem:COMMunicate:LAN:GATeway “192.168.1.1” :SYSTem:COMMunicate:LAN:GATeway? 3.2.5 Subnet Mask (:SYSTem:COMMunicate:LAN:SMASk) Command :SYSTem:COMMunicate:LAN:SMASk <“xxx.xxx.xxx.xxx”> Format :SYSTem:COMMunicate:LAN:SMASk? Instruction Set the subnet mask according to the network settings. The subnet mask will be set automatically if the IP assignment is set to DHCP.
  • Page 22: Screen Saver (System:screen:saver)

    SIGLENT Parameter Enumeration Type Parameter CHINese|ENGLish Range Return Enumeration Default None Menu Utility > Setting > Language Example :SYSTem:LANGuage CHINese :SYSTem:LANGuage? 3.2.8 Screen Saver (SYSTem:SCReen:SAVer) Command SYSTem:SCReen:SAVer OFF|10S|1MIN|5MIN|15MIN|30MIN|1HOUR|2HOUR Format SYSTem:SCReen:SAVer? Instruction Set screen saver. Get screen saver. Parameter Enumeration Type...
  • Page 23: Power On Line (System:poweron:type)

    SIGLENT Get power on type. Parameter Enumeration Type Parameter DFT|LAST Range DFT: Default LAST: Last Return Enumeration Default Menu Utility > Setting > Setup Type Example :SYSTem:PON:TYPE DFT :SYSTem:PON:TYPE? 3.2.11 Power On Line (SYSTem:POWeron:TYPE) Command SYSTem:POWeron:TYPE ON|OFF|1|0 Format SYSTem:POWeron:TYPE? Instruction Set the signal generator power on line state.
  • Page 24: Ref Osc Code Store (:System:ref:dac:save)

    SIGLENT Get ref osc code. Parameter Type Parameter 0 ~ 65535 Range Return Default 26214 Menu Utility > Setting > 10M Adjustment > Ref Osc Code Example :SYSTem:REF:DAC 43000 :SYSTem:REF:DAC? 3.2.14 Ref Osc Code Store (:SYSTem:REF:DAC:SAVE) Command :SYSTem:REF:DAC:SAVE <file_name> Format Instruction Save the ref osc code in file.
  • Page 25: Gpib Address (System:gpib)

    SIGLENT Range Return None Default None Menu Utility > Setting > 10M Adjustment > Reset to Default Example :SYSTem:REF:DAC:DEFault 3.2.17 GPIB Address (SYSTem:GPIB) Command SYSTem:GPIB <value> Format SYSTem:GPIB? Instruction Set GPIB address of the signal source. Get GPIB address of the signal source.
  • Page 26: Preset Save (:System:preset:save)

    SIGLENT :SYSTem:PRESet:TYPE DFT :SYSTem:PRES Or preset signal generator to current configuration: :SYSTem:PRESet:TYPE USER :SYSTem:PRESet:SAVE :SYSTem:PRES Or preset signal generator to configuration saved in an existing xml file: :SYSTem:PRESet:TYPE USER :SYSTem:PRESet:PATH “Local/test.xml” :SYSTem:PRES 3.3.3 Preset Save (:SYSTem:PRESet:SAVE) Command :SYSTem:PRESet:SAVE Format Instruction Save status for preset when preset type is user...
  • Page 27: Factory Reset (:System:fdefault)

    SIGLENT Return Enumeration Default Menu Utility > Setting > Preset Type Example :SYSTem:PRESet:TYPE DFT :SYSTem:PRESet:TYPE? 3.3.6 Factory Reset (:SYSTem:FDEFault) Command :SYSTem:FDEFault Format Instruction Set both the measure and setting parameters to the factory settings. Parameter None Type Parameter None Range...
  • Page 28: Rf Output ([:Source]:Output)

    SIGLENT Return Boolean Default Menu Example :OUTPut ON :OUTPut? 3.4.2 RF Output ([:SOURce]:OUTPut) Command [:SOURce]:OUTPut ON|OFF|1|0 Format Instruction Activate/Deactivate the RF output Parameter Boolean Type Parameter ON|OFF|1|0 Range Return None Default Menu Example SOURce:OUTPut ON 3.5 Source Subsystem 3.5.1 [:SOURce]:FREQuency Subsystem 3.5.1.1 Frequency Display ([:SOURce]:FREQuency:DISPlay)
  • Page 29 SIGLENT Parameter Float, unit: Hz, kHz, MHz, GHz, Default “Hz” Type Parameter Full frequency range Range Return Float, unit: Hz Default Maximum frequency Menu FREQ > Frequency Example FREQuency 2 MHz :FREQuency? 3.5.1.3 Frequency Offset ([:SOURce]:FREQuency:OFFSet) Command [:SOURce]:FREQuency:OFFSet <freq> Format...
  • Page 30: Source]:Power Subsystem

    SIGLENT Instruction Set the current phase to zero Parameter None Type Parameter None Range Return None Default None Menu FREQ > Reset phase delta display Example :PHASe:RESet :PHASe:REF 3.5.2 [:SOURce]:POWer Subsystem 3.5.2.1 Level Display ([:SOURce]:POWer:POWer) Command [:SOURce]:POWer:POWer <power> Format [:SOURce]:POWer:POWer?
  • Page 31 SIGLENT 3.5.2.3 Level ([:SOURce]:POWer[:LEVel][:IMMediate][:AMPLitude] ) Command [:SOURce]:POWer[:LEVel][:IMMediate][:AMPLitude] <power> Format [:SOURce]:POWer[:LEVel][:IMMediate][:AMPLitude]? Instruction Set the RF output level Get the RF output level Parameter Float, unit: dBm, dBuV, uV, mV, V, nW, uW, mW, W, Default: dBm Type Parameter Please refer to SSG5000A datasheet.
  • Page 32 SIGLENT AUTO Internal level control activated/deactivated automatically depending on the operating state. Return Enumeration Default AUTO Menu LEVEL > ALC State Example POWer:ALC ON POWer:ALC? 3.5.2.6 Flatness List State ([:SOURce]:CORRection[:FLATness]) Command [:SOURce]:CORRection[:FLATness] ON|OFF|1|0 Format [:SOURce]:CORRection[:FLATness]? Instruction Activate/deactivate flatness correction list.
  • Page 33 SIGLENT Parameter Less than the total count of the flatness. Range Return None Default None Menu LEVEL > Flatness > Delete Example CORRection:FLATness:DELete 0 3.5.2.9 Flatness List Count ([:SOURce]:CORRection:FLATness:COUNt?) Command [:SOURce]:CORRection:FLATness:COUNt? Format Instruction Indicates the total count of the number of elements in the flatness...
  • Page 34 SIGLENT Default None Menu LEVEL > Flatness > Load Example :CORRection:LOAD “U-disk3/test.uflt” 3.5.2.12 Flatness List Clear ([:SOURce]:CORRection:FLATness:PRESet) Command [:SOURce]:CORRection:FLATness:PRESet Format Instruction Clear the displayed flatness correction list Parameter None Type Parameter None Range Default None Menu LEVEL > Flatness > Clear...
  • Page 35 SIGLENT Range Return Float, unit: Hz Default Maximum frequency Menu LEVEL > Flatness > Setting > Fill Type > Manual Step > Start Freq Example :CORRection:FLATness:STARtfreq 200 MHz :CORRection:FLATness:STARtfreq? 3.5.2.15 Flatness List Stop Freq ([:SOURce]:CORRection:FLATness:STOPfreq) Command [:SOURce]:CORRection:FLATness:STOPfreq <freq> Format [:SOURce]:CORRection:FLATness:STOPfreq? Instruction Set the stop frequency when you want to fill the flatness list with the sensor and filling type is “Manual Step”.
  • Page 36 SIGLENT Format [:SOURce]:CORRection:FLATness:LINStep? Instruction Set the linear frequency step in Manual Step Fill Type. Get the linear frequency step in Manual Step Fill Type. Parameter Float, unit: Hz, kHz, MHz, GHz, Default “Hz” Type Parameter None Range Return Float, unit: Hz...
  • Page 37 SIGLENT 3.5.2.20 Fill Flatness with Sensor ([:SOURce]:CORRection:CSET:DATA[:SENSor][:POWer]:SONCe) Command [:SOURce]:CORRection:CSET:DATA[:SENSor][:POWer]:SONCe Format Instruction Fill the level values of the flaness list with the power meter. Parameter None Type Parameter None Range Return None Default None Menu LEVEL > Flatness > Setting > Fill Flatness with Sensor...
  • Page 38 SIGLENT 3.5.2.23 Target Level ([:SOURce]:POWer:SPC:TARGet) Command [:SOURce]:POWer:SPC:TARGet <power> Format [:SOURce]:POWer:SPC:TARGet? Instruction Set the nominal level expected at the input of the sensor Get the nominal level expected at the input of the sensor Parameter Float, unit: dBm, dBuV, uV, mV, V, nW, uW, mW, W, Default: dBm...
  • Page 39 SIGLENT 3.5.2.26 Level Limit (:SENSe[:POWer]:LIMit) Command :SENSe[:POWer]:LIMit <power> Format :SENSe[:POWer]:LIMit? Instruction Set the upper limit for the RF output power Get the upper limit for the RF output power Parameter Float, unit: dBm, dBuV, uV, mV, V, nW, uW, mW, W, Default: dBm...
  • Page 40: Source]:Sweep Subsystem

    SIGLENT 3.5.3 [:SOURce]:SWEep Subsystem 3.5.3.1 Sweep State ([:SOURce]:SWEep:STATe) Command [:SOURce]:SWEep:STATe OFF|FREQuency|LEVel|LEV_FREQ Format [:SOURce]:SWEep:STATe? Instruction Activate frequency or/and level sweep Parameter Enumeration Type Parameter OFF|FREQuency|LEVel|LEV_FREQ Range Return Enumeration Default Menu SWEEP > Sweep State Example :SWEep:STATe OFF :SWEep:STATe? 3.5.3.2 Sweep Type ([:SOURce]:SWEep:TYPE)
  • Page 41 SIGLENT :SWEep:STEP:STARt:FREQuency? 3.5.3.4 Stop Frequency ([:SOURce]:SWEep:STEP:STOP:FREQuency) Command [:SOURce]:SWEep:STEP:STOP:FREQuency <freq> Format [:SOURce]:SWEep:STEP:STOP:FREQuency? Instruction Set the stop frequency for the sweep mode Get the stop frequency for the sweep mode Parameter Float, unit: Hz, kHz, MHz, GHz, Default “Hz” Type Parameter Full frequency range.
  • Page 42 SIGLENT Example :SWEep:STEP:STOP:LEVel 0 dBm :SWEep:STEP:STOP:LEVel? 3.5.3.7 Dwell Time ([:SOURce]:SWEep:STEP:DWELl) Command [:SOURce]:SWEep:STEP:DWELl <time> Format [:SOURce]:SWEep:STEP:DWELl? Instruction Set the duration of the individual sweep steps Get the duration of the individual sweep steps Parameter Float, unit: ns, us, ms, s Type...
  • Page 43 SIGLENT Menu SWEEP > Step Sweep > Sweep Shape Example :SWEep:STEP:SHAPe TRIangle :SWEep:STEP:SHAPe? 3.5.3.10 Sweep Space ([:SOURce]:SWEep:STEP:SPACe) Command [:SOURce]:SWEep:STEP:SPACe LINear|LOGarithmic Format [:SOURce]:SWEep:STEP:SPACe? Instruction Select the sweep spacing Get the sweep spacing Parameter Enumeration Type Parameter LINear|LOGarithmic Range Return Enumeration Default...
  • Page 44 SIGLENT Range Return Float, unit: % Default Menu SWEEP > Step Sweep > Freq Step Log Example :SWEep:STEP:LOGarithmic 20 :SWEep:STEP:LOGarithmic? 3.5.3.13 Sweep List Add Row ([:SOURce]:SWEep:LIST:ADDList) Command [:SOURce]:SWEep:LIST:ADDList <freq>,<level>,<time> Format Instruction Insert a new row to the list Parameter Freq: Float, unit: Hz, kHz, MHz, GHz, Default “Hz”...
  • Page 45 SIGLENT Power: Full level range. time: 10 ms ~ 100 s. Return None Default None Menu SWEEP > List Sweep Example :SWEep:LIST:CHANGe 1,1 GHz,1 dBm, 1 s 3.5.3.16 Sweep List Row Count ([:SOURce]:SWEep:LIST:CPOint?) Command [:SOURce]:SWEep:LIST:CPOint? Format Instruction Get how many rows in sweep list...
  • Page 46 SIGLENT Menu SWEEP > List Sweep > Clear Example SWEep:LIST:INITialize:PRESet 3.5.3.19 Sweep List Initialize From Step ([:SOURce]:SWEep:LIST:INITialize:FSTep) Command [:SOURce]:SWEep:LIST:INITialize:FSTep Format Instruction Regenerate the sweep list based on the data points of the current step sweep settings Parameter None Type Parameter...
  • Page 47 SIGLENT 3.5.3.22 Sweep Direction ([:SOURce]:SWEep:DIRect) Command [:SOURce]:SWEep:DIRect FWD|REV Format [:SOURce]:SWEep:DIRect? Instruction Select the direction for sweep Parameter Enumeration Type Parameter FWD|REV Range Return Enumeration Default Menu SWEEP > Direction Example :SWEep:DIRect REV :SWEep:DIRect? 3.5.3.23 Sweep Mode ([:SOURce]:SWEep:MODE) Command [:SOURce]:SWEep:MODE CONTinue|SINGle...
  • Page 48 SIGLENT 3.5.3.25 Trigger Mode ([:SOURce]:SWEep:SWEep:TRIGger:TYPE) Command [:SOURce]:SWEep:SWEep:TRIGger:TYPE AUTO|KEY|BUS|EXT Format [:SOURce]:SWEep:SWEep:TRIGger:TYPE? Instruction Select the trigger mode Get the trigger mode Parameter Enumeration Type Parameter AUTO|KEY|BUS|EXT Range Return Enumeration Default AUTO Menu SWEEP > Trigger Mode Example :SWEep:SWEep:TRIGger:TYPE KEY :SWEep:SWEep:TRIGger:TYPE? 3.5.3.26 Point Trigger ([:SOURce]:SWEep:POINt:TRIGger:TYPE)
  • Page 49: Source]:Modulation Subsystem

    SIGLENT 3.5.3.28 Trigger Slope ([:SOURce]:INPut:TRIGger:SLOPe) Command [:SOURce]:INPut:TRIGger:SLOPe POSitive|NEGative Format [:SOURce]:INPut:TRIGger:SLOPe? Instruction Select the trigger slope when the trigger mode or point trigger is EXT. Get the trigger slope when the trigger mode or point trigger is EXT. Parameter Enumeration Type...
  • Page 50: Source]:Am Subsystem

    SIGLENT Type Parameter ON|OFF|1|0 Range Return Boolean Default Menu Example MODulation ON :MODulation? 3.5.4.2 Modulation State (:OUTPut:MODulation[:STATe]) Command :OUTPut:MODulation[:STATe] ON|OFF|1|0 Format :OUTPut:MODulation[:STATe]? Instruction Switch modulation on and off Get the modulation state Parameter Boolean Type Parameter ON|OFF|1|0 Range Return Boolean...
  • Page 51 SIGLENT Instruction Set the AM modulation waveform Get the AM modulation waveform Parameter Enumeration Type Parameter SINE|SQUAre Range Return Enumeration Default SINE Menu AM > AM Shape Example :AM:WAVEform SINE :AM:WAVEform? 3.5.5.3 AM Source ([:SOURce]:AM:SOURce) Command [:SOURce]:AM:SOURce INTernal|EXTernal|INT,EXT Format [:SOURce]:AM:SOURce?
  • Page 52: Source]:Fm Subsystem

    SIGLENT 3.5.5.5 AM Rate ([:SOURce]:AM:FREQuency) Command [:SOURce]:AM:FREQuency <value> Format [:SOURce]:AM:FREQuency? Instruction Set the AM modulation frequency Get the AM modulation frequency Parameter Float, unit: Hz, kHz, MHz, GHz, Default “Hz” Type Parameter Sine: 0.01 Hz ~ 100 kHz Range Square: 0.01 Hz ~ 20 kHz...
  • Page 53 SIGLENT 3.5.6.2 FM Source ([:SOURce]:FM:SOURce) Command [:SOURce]:FM:SOURce INT1|INT2|INT1,INT2|EXTernal|INT1,EXT| DUAL Format [:SOURce]:FM:SOURce? Instruction Select the modulation signal source for frequency modulation (FM) Get the FM Source Parameter Enumeration Type Parameter INT1|INT2|INT1,INT2|EXTernal|INT1,EXT| DUAL Range Return Enumeration Default INTernal Menu FM > FM Source...
  • Page 54 SIGLENT Example :FM1:DEViation 500 kHz :FM1:DEViation? 3.5.6.5 FM Rate1 ([:SOURce]:FM1:FREQuency) Command [:SOURce]:FM1:FREQuency <value> Format [:SOURce]:FM1:FREQuency? Instruction Set the modulation frequency of the FM waveform1 when the FM Source includes Int1. Get the modulation frequency of the FM waveform1 when the FM Source includes Int1.
  • Page 55 SIGLENT Parameter SINE|SQUAre|SAWTooth|TRIangle Range Return Enumeration Default SINE Menu FM > FM Shape2 Example :FM2:WAVEform SAWTooth :FM2:WAVEform? 3.5.6.8 FM Deviation2 ([:SOURce]:FM2:DEViation) Command [:SOURce]:FM2:DEViation <value> Format [:SOURce]:FM2:DEViation? Instruction Set the deviation value of the FM waveform2 when the FM Source includes Int2.
  • Page 56 SIGLENT Instruction Set the phase of the FM waveform2 when the FM Source is Int1+Int2 or Dual. Get the phase of the FM waveform2 when the FM Source is Int1+Int2 or Dual. Parameter Float, unit: deg or rad, Default “deg”...
  • Page 57: Source]:Pm Subsystem

    SIGLENT 3.5.7 [:SOURce]:PM Subsystem 3.5.7.1 PM State ([:SOURce]:PM:STATe) Command [:SOURce]:PM:STATe ON|OFF|1|0 Format [:SOURce]:PM:STATe? Instruction Activate/Deactivate phase modulation (PM) Get the PM state Parameter Boolean Type Parameter ON|OFF|1|0 Range Return Boolean Default Menu PM > PM State Example :PM:STATe ON :PM:STATe? 3.5.7.2 PM Shape ([:SOURce]:PM:WAVEform)
  • Page 58 SIGLENT Example :PM:SOURce EXTernal :PM:SOURce? 3.5.7.4 PM Deviation ([:SOURce]:PM:DEViation) Command [:SOURce]:PM:DEViation <value> Format [:SOURce]:PM:DEViation? Instruction Set the modulation deviation of the phase modulation (PM) Get the modulation deviation of the phase modulation (PM) Parameter Float, unit: rad Type Parameter 0.01 rad ~ N*5 rad Range The value of N please refer to SSG5000A datasheet.
  • Page 59: Source]:Pulm Subsystem

    SIGLENT Example PM:SENSitivity? 3.5.8 [:SOURce]:PULM Subsystem 3.5.8.1 Pulse State ([:SOURce]:PULM:STATe) Command [:SOURce]:PULM:STATe ON|OFF|1|0 Format [:SOURce]:PULM:STATe? Instruction Activate/Deactivate the pulse modulation Get the state of pulse modulation Parameter Boolean Type Parameter ON|OFF|1|0 Range Return Boolean Default Menu PULSE > Pulse State...
  • Page 60 SIGLENT Default INTernal Menu PULSE > Pulse Source Example PULM:SOUR INTernal :PULM:SOURce? 3.5.8.4 Pulse Source ([:SOURce]:PULM:SOURce:INT) Command [:SOURce]:PULM:SOURce:INT INTernal|EXTernal Format [:SOURce]:PULM:SOURce:INT? Instruction Select the source for the pulse modulation signal Get the source for the pulse modulation signal Parameter Enumeration...
  • Page 61 SIGLENT Range SINGle Enables single pulse generation. DOUBle Enables double pulse generation. The two pulses are generated in one pulse period. PTRain A user-defined pulse train is generated. The pulse train is defined by value pairs of on and off times that can be entered in a pulse train list.
  • Page 62 SIGLENT Example :PULM:INT1:PERiod 900 ns :PULM:INT1:PERiod? 3.5.8.9 Pulse Width ([:SOURce]:PULM:WIDTh) Command [:SOURce]:PULM:WIDTh <value> Format [:SOURce]:PULM:WIDTh? Instruction Set the width of the generated pulse when pulse mode is Single or Double. Get the width of the generated pulse when pulse mode is Single or Double.
  • Page 63 SIGLENT Type Parameter 20 ns ~ 300 s Range Return Float, unit: s Default 4 ms Menu PULSE > Double Pulse Delay Example :PULM:DOUBle:DELay 2 ms :PULM:DOUBle:DELay? 3.5.8.12 #2 Width ([:SOURce]:PULM:DOUBle:WIDTh) Command [:SOURce]:PULM:DOUBle:WIDTh <time> Format [:SOURce]:PULM:DOUBle:WIDTh? Instruction Set the width of the second pulse in the case of double pulse...
  • Page 64 SIGLENT Type Parameter 1 ~ N, which is the specified row number. Range N: the length of the current pulse train. Return None Default None Menu PULSE > Pulse Train > Delete Example PULM:TRAin:DELete 5 3.5.8.15 Pulse Train Edit On Time...
  • Page 65 SIGLENT Parameter Raw: 1 ~ count of pair. Range Count: 1 ~ 65535 Return None Default None Menu PULSE > Pulse Train Example :PULM:TRAin:DATA:COUNt 1,3 3.5.8.18 Pulse Train Edit ([:SOURce]:PULM:TRAin:CHANGe) Command [:SOURce]:PULM:TRAin:CHANGe <row>,<on_time>,<off_time>,<count> Format Instruction Edit train pair value Parameter...
  • Page 66 SIGLENT Range Return Integer Default Menu PULSE > Pulse Train Example :PULM:TRAin:COUNt? 3.5.8.21 Pulse Train Clear ([:SOURce]:PULM:TRAin:CLEAr) Command [:SOURce]:PULM:TRAin:CLEAr Format Instruction Clear train pair list Parameter None Type Parameter None Range Return None Default None Menu PULSE > Pulse Train > Store...
  • Page 67 SIGLENT PULM:TRAin:STORE “U-disk1/test.pulstrn” 3.5.8.24 Trigger Out ([:SOURce]:PULM:TRIGger:STATe) Command [:SOURce]:PULM:TRIGger:STATe ON|OFF|1|0 Format [:SOURce]:PULM:TRIGger:STATe? Instruction Set the trigger output status Get the trigger output status Parameter Boolean Type Parameter ON|OFF|1|0 Range Return Boolean Default Menu PULSE > Trigger Out Example PULM:TRIGger:STATe ON :PULM:TRIGger:STATe? 3.5.8.25 Pulse Trigger ([:SOURce]:PULM:TRIGger:MODE)
  • Page 68: Source]:Lfoutput Subsystem

    SIGLENT Menu PULSE > Pulse Polarity Example PULM:TRIG:EXT:GATE:POL NORMal :PULM:TRIGger:EXTernal:GATE:POLarity? 3.5.8.27 Trig Delay ([:SOURce]:PULM:DELay) Command [:SOURce]:PULM:DELay <value> Format [:SOURce]:PULM:DELay? Instruction Set the pulse delay Get the pulse delay Parameter Float, unit: ns, us, ms, s, and default is s. Type...
  • Page 69 SIGLENT Type Parameter ON|OFF|1|0 Range Return Boolean Default Menu LF > LF State Example LFOutput ON LFOutput? 3.5.9.2 LF Level ([:SOURce]:LFOutput:VOLTage) Command [:SOURce]:LFOutput:VOLTage <volt> Format [:SOURce]:LFOutput:VOLTage? Instruction Set the voltage of the LF output signal Get the voltage of the LF output signal...
  • Page 70 SIGLENT If the signal source is set to “Internal”, the instrument performs the analog modulations (AM/FM /PM) with this frequency. Parameter Float, unit: Hz, kHz, MHz, GHz, Default “Hz” Type Parameter 0.01 Hz ~ 1 MHz Range Return Float, unit: Hz...
  • Page 71: Source]:Lfoutput:sweep Subsystem

    SIGLENT 3.5.10 [:SOURce]:LFOutput:SWEep Subsystem 3.5.10.1 Sweep State ([:SOURce]:LFOutput:SWEep) Command [:SOURce]:LFOutput:SWEep ON|OFF|1|0 Format [:SOURce]:LFOutput:SWEep? Instruction Activate/Deactivate the LF frequency sweep signal generation Get the state of LF frequency sweep Parameter Boolean Type Parameter ON|OFF|1|0 Range Return Boolean Default Menu LF Sweep > LF State...
  • Page 72 SIGLENT Example :LFOutput:SWEep:STARt:FREQuency 100 :LFOutput:SWEep:STARt:FREQuency? 3.5.10.4 Stop Freq ([:SOURce]:LFOutput:SWEep:STOP:FREQuency) Command [:SOURce]:LFOutput:SWEep:STOP:FREQuency <freq> Format [:SOURce]:LFOutput:SWEep:STOP:FREQuency? Instruction Set the stop frequency of sweep mode Get the stop frequency of sweep mode Parameter Float, unit: Hz, kHz, MHz, GHz, Default “Hz” Type Parameter...
  • Page 73 SIGLENT Default 1 kHz Menu LF Sweep > Freq Span Example :LFOutput:SWEep:SPAN:FREQuency 550 :LFOutput:SWEep:SPAN:FREQuency? 3.5.10.7 Sweep Time ([:SOURce]:LFOutput:SWEep:DWELl) Command [:SOURce]:LFOutput:SWEep:DWELl <time> Format [:SOURce]:LFOutput:SWEep:DWELl? Instruction Set the sweep time of sweep mode Get the sweep time of sweep mode Parameter Float, unit: ns, us, ms, s, and default is s.
  • Page 74: Sense Subsystem

    SIGLENT Return Enumeration Default Menu LF Sweep > Trigger Slope Example :LFOutput:SWEep:XPOLar POS :LFOutput:SWEep:XPOLar? 3.5.10.10 Sweep Shape ([:SOURce]:LFOutput:SWEep:SHAPe) Command [:SOURce]:LFOutput:SWEep:SHAPe TRIangle|SAWTooth Format [:SOURce]:LFOutput:SWEep:SHAPe? Instruction Select the waveform shape of the sweep signal Get the waveform shape of the sweep signal...
  • Page 75: Sensor State (:Sense[:Power]:Status)

    SIGLENT Parameter None Type Parameter None Range Return String Default None Menu SENSOR > Sensor Info Example SENSe:TYPE? 3.6.2 Sensor State (:SENSe[:POWer]:STATus) Command :SENSe[:POWer]:STATus OFF|ON|0|1 Format :SENSe[:POWer]:STATus? Instruction Set the sensor state Get the sensor state Parameter Boolean Type Parameter...
  • Page 76: Statistics Value (:Read[:Power]?)

    SIGLENT Parameter ON|OFF|1|0 Range Return Boolean Default Menu SENSOR > Statistics Example SENSe:STATIStics:STATe ON SENSe:STATIStics:STATe? 3.6.5 Statistics Value (:READ[:POWer]?) Command :READ[:POWer]? Format Instruction Indicate the measured mean value and maximum value of power meter readings Parameter None Type Parameter None...
  • Page 77: Statistics Mean Value (:Sense[:Power]:Statistics:avg?)

    SIGLENT Return Float, unit: dBm Default None Menu SENSOR > Statistics Example SENSe:STATIStics:MIN? 3.6.8 Statistics Mean Value (:SENSe[:POWer]:STATIStics:AVG?) Command :SENSe[:POWer]:STATIStics:AVG? Format Instruction Indicate the measured mean value of power meter readings Parameter None Type Parameter None Range Return Float, unit: dBm...
  • Page 78: Auto Zero (:Calibration:zero:type)

    SIGLENT Default None Menu SENSOR > Statistics Example SENSe:STATIStics:CLEAr 3.6.11 Auto Zero (:CALibration:ZERO:TYPE) Command :CALibration:ZERO:TYPE INTernal|EXTernal Format :CALibration:ZERO:TYPE? Instruction Select zero type of power meter Get zero type of power meter Parameter Enumeration Type Parameter INTernal|EXTernal Range Return Enumeration Default...
  • Page 79: Frequency (:Sense[:Power]:Frequency)

    SIGLENT 3.6.14 Frequency (:SENSe[:POWer]:FREQuency) Command :SENSe[:POWer]:FREQuency <freq> Format :SENSe[:POWer]:FREQuency? Instruction Set the frequency for frequency type "USER" Get the frequency for frequency type "USER" Parameter Float, unit: Hz, kHz, MHz, GHz, Default “Hz” Type Parameter 9 kHz ~ Full frequency range...
  • Page 80: Average Type (:Sense[:Power]:Filter:type)

    SIGLENT Example SENSe:OFFSet 10 SENSe:OFFSet? 3.6.17 Average Type (:SENSe[:POWer]:FILTer:TYPE) Command :SENSe[:POWer]:FILTer:TYPE AUTO|USER|NSRatio Format :SENSe[:POWer]:FILTer:TYPE? Instruction Select the averaging mode Get the averaging mode Parameter Enumeration Type Parameter AUTO|USER|NSRatio Range Return Enumeration Default AUTO Menu SENSOR > Averaging Example SENSe:FILTer:TYPE USER SENSe:FILTer:TYPE? 3.6.18 Average Times (:SENSe[:POWer]:FILTer:LENGth)
  • Page 81: Logging (:Sense[:Power]:Logging:state)

    SIGLENT Example SENSe:FILTer:NSRatio 1 SENSe:FILTer:NSRatio? 3.6.20 Logging (:SENSe[:POWer]:LOGGing:STATe) Command :SENSe[:POWer]:LOGGing:STATe <state> Format :SENSe[:POWer]:LOGGing:STATe? Instruction Set logging state Get logging state Parameter Boolean Type Parameter ON|OFF|1|0 Range Return Boolean Default Menu SENSOR > Logging Example SENSe:LOGGing:STATe ON SENSe:LOGGing:STATe? 4. Programming Examples This chapter gives some examples for the programmer.
  • Page 82 SIGLENT #pragma comment(lib,"visa32.lib") (2) Automatic: Set the .h file include directory, the NI-VISA install path, in our computer we set the path is: C:\Program Files\IVI Foundation \VISA\WinNT\include. Set this path to project---properties---c/c++---General---Additional Include Directories: See the picture: Set lib path set lib file: Set lib path: the NI-VISA install path, in our computer we set the path is: C:\Program Files\IVI Foundation\VISA\WinNT\lib\msc.
  • Page 83 SIGLENT Write a function Usbtmc_test: Usbtmc_test() /* This code demonstrates sending synchronous read & write commands */ /* to an USB Test & Measurement Class (USBTMC) instrument using */ /* NI-VISA /* The example writes the "*IDN?\n" string to all the USBTMC */ /* devices connected to the system and attempts to read back */ /* results using the write and read functions.
  • Page 84 SIGLENT status = viOpen (defaultRM, instrResourceString, VI_NULL, VI_NULL, &instr); (status<VI_SUCCESS) printf ("Cannot open a session to the device %d.\n", i+1); continue /* * At this point we now have a session open to the USB TMC instrument. * We will now use the viPrintf function to send the device the string "*IDN?\n", * asking for the device's identification.
  • Page 85 SIGLENT TCP_IP_Test: Write a function int TCP_IP_Test(char *pIP) char outputBuffer[VI_FIND_BUFLEN]; ViSession defaultRM, instr; ViStatus status; /* First we will need to open the default resource manager. */ status = viOpenDefaultRM (&defaultRM); (status<VI_SUCCESS) printf("Could not open a session to the VISA Resource Manager!\n");...
  • Page 86: Vb Example

    SIGLENT The run result: 4.1.2 VB Example Environment: Win10 64bit system, Microsoft Visual Basic 6.0 The function of this example: Use National Instruments NI-VISA to control the device with USBTMC and TCP/IP access and perform write and read operations. Follow the steps to complete the example: 1.
  • Page 87 SIGLENT ' results using the write and read functions. ' The general flow of the code is ' Open Resource Manager ' Open VISA Session to an Instrument ' Write the Identification Query Using viWrite ' Try to Read a Response With viRead...
  • Page 88 SIGLENT ' We will now use the viWrite function to send the device the string "*IDN?", ' asking for the device's identification. status = viWrite(instrsesn, "*IDN?", 5, retCount) (status < VI_SUCCESS) Then resultTxt.Text = "Error writing to the device." status = viClose(instrsesn)
  • Page 89 SIGLENT End If status = viRead(instrsesn, outputBuffer, VI_FIND_BUFLEN, count) (status < VI_SUCCESS) Then resultTxt.Text = "Error reading a response from the device." + CStr(i + 1) Else resultTxt.Text = "read from device:" + outputBuffer End If status = viClose(instrsesn) status = viClose(defaultRM)
  • Page 90: Matlab Example

    SIGLENT 4.1.3 MATLAB Example Environment: Win10 64bit system, MATLAB R2021a The function of this example: Use National Instruments NI-VISA to control the device with USBTMC or TCP/IP access and perform write and read operations. Follow the steps to complete the example: 1.
  • Page 91 SIGLENT %Request the data outputbuffer = fscanf(vu); disp(outputbuffer); %Close the VISA object fclose(vu); delete(vu); clear vu; The run result: (2) TCP/IP access code. TCP_IP_Test: Write a function function TCP_IP_test() % This code demonstrates sending synchronous read & write commands % to an TCP/IP instrument using NI-VISA %Create a VISA-TCPIP object connected to an instrument %configured with IP address.
  • Page 92: Labview Example

    SIGLENT 4.1.4 LabVIEW Example Environment: Win7 32bit system, LabVIEW 2011 The functions of this example: Use National Instruments NI-VISA to control the device with USBTMC and TCP/IP access to perform write and read operations. Follow the steps to complete the example: 1.
  • Page 93 SIGLENT In this example, the VI opens a VISA session to a USBTMC device, writes a command to the device, and reads back the response. In this example, the specific command being sent is the device ID query. Check with your device manufacturer for the device command set.
  • Page 94: Socket Examples

    SIGLENT 4.2 Socket Examples 4.2.1 Python Example Python is an interpreted programming language that lets you work quickly and is very portable. Python has a low-level networking module that provides access to the socket interface. Python scripts can be written for sockets to do a variety of test and measurements tasks.
  • Page 95 SIGLENT s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error: input ('Failed to create socket. \nPress "Enter" to exit: ') sys.exit() try: #Connect to remote server s.connect((remote_ip , port)) except socket.error: input('Failed to connect to ip %s!\nPress "Enter" to exit: ' % remote_ip) s.close()
  • Page 96: Telnet Example

    SIGLENT 4.2.2 Telnet Example Telnet SCPI: Provides the ability to send single SCPI commands from a remote PC to signal generator using LAN port number 5024. How to send single SCPI commands using Telnet: On the remote PC, click Start, then Run cmd Type: telnet <ip address>...
  • Page 97 SIGLENT ⚫ To exit the telnet window click X in the upper-right corner. ⚫ To get a normal telnet prompt, press Ctrl + ] (closing bracket). ⚫ To get SCPI prompt again, type open <ip Address> 5024 and press Enter: To close the normal telnet window, type Quit and press Enter.
  • Page 98 SIGLENT 98 SSG5000A Programming Guide...

Table of Contents