
Programming Guide SSA3000X Series Spectrum Analyzer
Open the catalog to page 11.Programming Overview SSA3000X Series Spectrum Analyzer support both USB and LAN interfaces. By using these interfaces, in combination with NI-VISA and programming languages, users can remotely control the spectrum analyzer. Through LAN interface, VXI-11, Sockets and Telnet protocols can be used to communicate with the spectrum analyzer. This chapter introduces how to build communication between the spectrum analyzer and the PC. It also introduces the remote control capabilities. Build Communication Using VISA 1、Install NI-VISA Before programming, you need to install NI-VISA, which you can download...
Open the catalog to page 3c.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. d. Click Next twice, in the License Agreement dialog, select the “ I accept the above 2 License Agreement(s).” ,and click Next, dialog shown as below:
Open the catalog to page 4e. Click Next to run installation. Now the installation is complete, reboot your PC. 2、Connect the Instrument Depending on your specific model your spectrum analyzer may be able to communicate with a PC through the USB or LAN interface. This manual takes the USB as an example. (For instructions to communicate with a PC through the LAN interface see the User Manual.) a. Connect the USB Device interface at the rear panel of the spectrum analyzer and the USB Host interface of the PC using a USB cable. Assuming your PC is already turned on, turn on your spectrum analyzer and your PC will display...
Open the catalog to page 5SCPI commands present a hierarchical tree structure containing multiple subsystems, each of the subsystems is made up of a root keyword and several subkeywords. The command string usually starts with “:”, the keywords are separated by “:” and the followed parameter settings are separated by space. Query commands add “?” at the end of the string. For example: :SENSe:FREQuency:CENTer <freq> :SENSe:FREQuency:CENTer? SENSe is the root key of the command, FREQuency and CENTer are second and third keywords. The command begins with “:”, and separates the keywords at the same time, <freq> separated by...
Open the catalog to page 7All of the commands are not case sensitive, so you can use any of them. But if abbreviation is used, all the capital letters in the command must be written completely. For example: :DISPlay:WINDow:TRACe:Y:DLINe:STATe? Can be abbreviated to: :DISP:WIND:TRAC:Y:DLIN:STAT?
Open the catalog to page 8This chapter introduces the Siglent Technologies SSA3000X SCPI commands, include: IEEE Common Commands 3.1
Open the catalog to page 93.1.8 Status Byte Query (*STB)
Open the catalog to page 113.2.12 Factory ReSet (:SYSTem:FDEFault) Command Format
Open the catalog to page 14SIGLENT 3.2.16 System Info (:SYSTem:CONFigure:SYSTem?)
Open the catalog to page 163.5.1.5 Center Frequency Step Mode ([:SENSe]:FREQuency:CENTer:STEP:AUTO)
Open the catalog to page 193.5.3.2 Input Attenuator ([:SENSe]:POWer[:RF]:ATTenuation) Command :DISPlay:WINDow:TRACe:Y:SCALe:RLEVel:OFFSet <value> Format |:DISPlay:WINDow:TRACe:Y:SCAI_e:RLEVel:OFFSet?
Open the catalog to page 22SIGLENT 3.5.3.15 Input Impedance ([:SENSe]:CORRection:IMPedance[:INPut][:MAGNitude])
Open the catalog to page 263.5.4.3 Video Bandwidth ([:SENSe]:BWIDth:VIDeo)
Open the catalog to page 273.5.7.1 Average Type ([:SENSe]:AVERage:TYPE)
Open the catalog to page 323.5.8.1 Sweep Mode ([:SENSe]:SWEep:MODE) 3.5.8.4 Sweep Speed ([:SENSe]:SWEep:SPEed) Command [:SENSe]:SWEep:SPEed NORMal|ACCUracy Format |[:SENSe]:SWEep:SPEed?
Open the catalog to page 333.6.1.14 Marker Table (:CALCulate:MARKer:TABLe) Command |:CALCulate:MARKer:TABLe ON|OFF|0|1 40 SSA3000X Programming Guide
Open the catalog to page 403.6.2.9 Add Limit Point Data (:CALCulate:LLINe[1]|2:DATA) Command Format
Open the catalog to page 503.7.1.1 Main Channel ([:SENSe]:ACPRatio:BWIDth:INTegration)
Open the catalog to page 533.7.1.7 Query Upper Adjacent Channel Power (:MEASure:ACPRatio:UPPer:POWer?)
Open the catalog to page 553.7.2.5 Query Power Spectral Density (:MEASure:CHPower:DENSity?) Command Format
Open the catalog to page 56Example |:TPOWer:LLIMit 0.01 3.7.4.3 T-power Stop Line ([:SENSe]:TPOWer:RLIMit)
Open the catalog to page 603.7.5.2 Spectrogram Restart ([:SENSe]:SPECtrogram:RESTart)
Open the catalog to page 613.8.1 Trigger Type (:TRIGger[:SEQuence]:SOURce)
Open the catalog to page 623.9.4 TG Normalize on-off (:CALCulate:NTData[:STATe]) 3.9.7 TG Normalize Reference Trace on-off (:DISPlay:WINDow:NTTRace[:STATe]) Command | |:DISPlay:WINDow:NTTRace[:STATel OFF|ON|0|1
Open the catalog to page 644.Programming Examples This chapter gives some examples for the programmer. In these examples you can see how to use the VISA or sockets, in combination with the commands have been described above to control the spectrum analyzer. By following these examples, you can develop many more applications. 4.1 Examples of Using VISA 4.1.1 Environment: Win7 32bit system, Visual Studio The functions of this example: use the NI-VISA, to control the device with USBTMC or TCP/IP access to do a write and read. Follow the steps to finish the example: 1、 Open Visual Studio, create a new VC++ win32 console project....
Open the catalog to page 68#include <visa.h> 3n Add codes: (1)USBTMC access code. Write a function Usbtmc_test: int 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. */ /* The general flow of the code is */ /* Open Resource Manager */ /* Open VISA Session to an Instrument */ /* Write the Identification Query Using viPrintf */ /*...
Open the catalog to page 69/* Find all the USB TMC VISA resources in our system and store the number of resources in the system in numlnstrs.*/ status = viFindRsrc (defaultRM, "USB?*INSTR", &findList, &numInstrs, instrResourceString); if (status<VI_SUCCESS) { printf ("An error occurred while finding resources. \nPress ’Enter’ to continue."); fflush(stdin); getchar(); viClose (defaultRM); returnstatus; } /** Now we will open VISA sessions to all USB TMC instruments. * We must use the handle from viOpenDefaultRM and we must * also use a string that indicates which instrument to open. This * is called the instrument descriptor....
Open the catalog to page 7021 Pages
21 Pages
10 Pages
15 Pages
6 Pages
48 Pages
10 Pages
3 Pages
7 Pages
197 Pages
59 Pages
7 Pages
13 Pages
12 Pages
9 Pages
10 Pages
8 Pages
10 Pages