The Signal Hound PN400 phase noise analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 106 commands for it, 29 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the PN400 on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Signal Hound PN400 and writes the report from the measured results.
With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the Signal Hound PN400's VISA address
# Paste the address of your Signal Hound PN400 (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000 # ms
print(inst.query("*IDN?")) # identify the instrument
inst.write(":SENSe:PNoise:VCO:VOLTage:STATe ON") # VCO Voltages On
print(inst.query(":SENSe:PNoise:XCORr:MEAS:PROGress?")) # Read XCorr Progress
inst.close()Describe the test; TestFlow's agent uses this command set to drive your Signal Hound PN400 and writes the report from the measured results.
Describe the test in a sentence, for example “vco voltages on on the PN400, then read xcorr progress and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.
106 commands in 12 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| :SENSe:PNoise:CARRier:SEARch:STATe ON | Carrier Search On. Turns the carrier signal search on. | None |
| :SENSe:PNoise:CARRier:SEARch:STATe OFF | Carrier Search Off. Turns the carrier signal search off. | None |
| :SENSe:PNoise:CARRier:SEARch:STARt <Frequency> | Set Search Start. Sets the start frequency of the carrier search range. | Number |
| :SENSe:PNoise:CARRier:SEARch:STOP <Frequency> | Set Search Stop. Sets the stop frequency of the carrier search range. | Number |
| :SENSe:PNoise:CARRier:SEARch:PERForm | Perform Carrier Search. Forces a new carrier search. | None |
| :SENSe:PNoise:CARRier:THReshold:MINimum <Level> | Set Carrier Threshold. Sets the minimum amplitude in dBm for a signal to be detected as carrier (no units). | Number |
| :SENSe:PNoise:CARRier:VALid? | Read Carrier Valid. Returns whether a carrier was detected in the last sweep. | None |
| :SENSe:PNoise:CARRier:FREQuency? | Measure Carrier Frequency. Returns the detected carrier frequency in Hz. | None |
| :SENSe:PNoise:CARRier:AMPLitude? | Measure Carrier Amplitude. Returns the detected carrier amplitude in dBm. | None |
| :SENSe:PNoise:FREQuency:CENTer <Frequency> | Set Center Frequency. Sets the center of the 200 kHz carrier search window. | Number |
| :SENSe:PNoise:FREQuency:OFFSet:STARt <Frequency> | Set Start Offset. Sets the start offset in Hz (clamped to 10 Hz/100 Hz/1 kHz/10 kHz). | Number: 10,100,1000,10000 |
| :SENSe:PNoise:FREQuency:OFFSet:STOP <Frequency> | Set Stop Offset. Sets the stop offset in Hz (clamped to 1k/10k/100k/1M/10M; at least one decade above start). | Number: 1000,10000,100000,1000000,10000000 |
| :SENSe:PNoise:PKTRack ON | Peak Tracking On. Turns peak tracking on. | None |
| :SENSe:PNoise:PKTRack OFF | Peak Tracking Off. Turns peak tracking off. | None |
| :SENSe:PNoise:TYPE <Type> | Set Noise Type. Selects phase noise, phase + AM noise or AM noise. | Text: PN,PNPAM,AM |
| :SENSe:PNoise:VIEW:RLEVel <Level> | Set Ref Level. Sets the plot reference level in dBc/Hz. | Number |
| :SENSe:PNoise:VIEW:PDIVision <Scale> | Set dB Per Division. Sets the plot division height. | Number |
| :SENSe:PNoise:VIEW:PNUMDIVisions <Divisions> | Set Num Divisions. Sets the number of divisions on the phase noise plot. | Number |
| :SENSe:PNoise:XCORr:DEVice:ACTive? | Read XCorr Device Active. Returns true if the second SM analyzer is connected. | None |
| :SENSe:PNoise:XCORr:DEVice:COUNt? | Read XCorr Device Count. Returns the number of devices available as second analyzer. | None |
| :SENSe:PNoise:XCORr:DEVice:LIST? | Read XCorr Device List. Returns the list of SM devices usable as the second analyzer. | None |
| :SENSe:PNoise:XCORr:DEVice:CURRent? | Read XCorr Device Current. Returns the name of the active second analyzer. | None |
| :SENSe:PNoise:XCORr:DEVice:CONnect? <Device> | Connect XCorr Device. Connects the second analyzer (serial number or SOCKET::IP::PORT from LIST?) and returns 1 on success. | Text |
| :SENSe:PNoise:XCORr:DEVice:DISConnect? | Disconnect XCorr Device. Disconnects the second analyzer. | None |
| :SENSe:PNoise:XCORr:STATe ON | Cross Correlation On. Turns cross correlation (PN400 and second SM must be connected first) on. | None |
| :SENSe:PNoise:XCORr:STATe OFF | Cross Correlation Off. Turns cross correlation (PN400 and second SM must be connected first) off. | None |
| :SENSe:PNoise:XCORr:REFerence <Reference> | Set XCorr Reference. Sets the timebase reference of the cross correlation system. | Text: INTernal,EXTernal,RF |
| :SENSe:PNoise:XCORr:FACTor <Factor> | Set XCorr Factor. Sets the cross correlation factor (number of correlations). | Number |
| :SENSe:PNoise:XCORr:MEAS:RESTart | Restart XCorr. Restarts the cross correlation measurement. | None |
| :SENSe:PNoise:XCORr:MEAS:PROGress? | Read XCorr Progress. Returns the cross correlation progress (0 to factor; complete when equal to the factor; -1 if disabled). | None |
| :SENSe:PNoise:VCO:ACTive? | Read PN400 Active. Returns whether the PN400 is connected in the software. | None |
| :SENSe:PNoise:VCO:CONnect? | Connect PN400. Connects the PN400 and returns true if successful. | None |
| :SENSe:PNoise:VCO:VOLTage:STATe ON | VCO Voltages On. Turns the PN400 supply and tune output voltages on. | None |
| :SENSe:PNoise:VCO:VOLTage:STATe OFF | VCO Voltages Off. Turns the PN400 supply and tune output voltages off. | None |
| :SENSe:PNoise:VCO:VOLTage:SUPply <Voltage> | Set Supply Voltage. Sets the PN400 supply voltage in V. | Number |
| :SENSe:PNoise:VCO:VOLTage:SUPply:MIN <Voltage> | Set Supply Min. Sets the minimum PN400 supply voltage in V. | Number |
| :SENSe:PNoise:VCO:VOLTage:SUPply:MAX <Voltage> | Set Supply Max. Sets the maximum PN400 supply voltage in V. | Number |
| :SENSe:PNoise:VCO:VOLTage:TUNE <Voltage> | Set Tune Voltage. Sets the PN400 tuning voltage in V. | Number |
| :SENSe:PNoise:VCO:VOLTage:TUNE:MIN <Voltage> | Set Tune Min. Sets the minimum PN400 tuning voltage in V. | Number |
| :SENSe:PNoise:VCO:VOLTage:TUNE:MAX <Voltage> | Set Tune Max. Sets the maximum PN400 tuning voltage in V. | Number |
| Command | What it does | Arguments |
|---|---|---|
| :TRACe:PNoise:SELect <Trace> | Select Trace. Selects the active trace (1 to 6). | Number: 1,2,3,4,5,6 |
| :TRACe:PNoise:TYPE <Type> | Set Trace Type. Sets the trace type. | Text: OFF,NORMal,AVERage,REFerence,MINhold,MAXhold |
| :TRACe:PNoise:AVERage:COUNt <Count> | Set Trace Average Count. Sets the number of sweeps averaged for an average trace. | Number |
| :TRACe:PNoise:UPDate:STATe ON | Trace Update On. Turns trace updating on each new sweep on. | None |
| :TRACe:PNoise:UPDate:STATe OFF | Trace Update Off. Turns trace updating on each new sweep off. | None |
| :TRACe:PNoise:HIDE:STATe ON | Trace Hide On. Turns hiding of the trace on. | None |
| :TRACe:PNoise:HIDE:STATe OFF | Trace Hide Off. Turns hiding of the trace off. | None |
| :TRACe:PNoise:SMOothing:STATe ON | Trace Smoothing On. Turns trace smoothing on. | None |
| :TRACe:PNoise:SMOothing:STATe OFF | Trace Smoothing Off. Turns trace smoothing off. | None |
| :TRACe:PNoise:SMOothing:APERture <Aperture> | Set Smoothing Aperture. Sets the trace smoothing aperture in percent. | Number |
| :TRACe:PNoise:SPURReject:STATe ON | Spur Reject On. Turns trace spur rejection on. | None |
| :TRACe:PNoise:SPURReject:STATe OFF | Spur Reject Off. Turns trace spur rejection off. | None |
| :TRACe:PNoise:SPURReject:THRESHold <Threshold> | Set Spur Reject Threshold. Sets the spur reject threshold in dB. | Number |
| :TRACe:PNoise:OFFSet <Offset> | Set Trace Offset. Applies an offset in dB to the trace. | Number |
| :TRACe:PNoise:TO <Trace> | Move Trace To. Moves the current trace to the selected trace (set to reference). | Number: 1,2,3,4,5,6 |
| :TRACe:PNoise:CLEar | Clear Trace Average. Clears the current average accumulation. | None |
| :TRACe:PNoise:DATA:Y? | Read Trace Y. Returns the trace amplitudes in dBc/Hz (100 points per decade). | None |
| :TRACe:PNoise:DATA:X? | Read Trace X. Returns the trace offset frequencies in Hz (100 points per decade). | None |
| Command | What it does | Arguments |
|---|---|---|
| :CALCulate:PNoise:MARKer:SELect <Marker> | Select Marker. Selects the active marker (1 to 6). | Number: 1,2,3,4,5,6 |
| :CALCulate:PNoise:MARKer:STATe ON | Marker On. Turns the selected marker on. | None |
| :CALCulate:PNoise:MARKer:STATe OFF | Marker Off. Turns the selected marker off. | None |
| :CALCulate:PNoise:MARKer:TRACe <Trace> | Set Marker Trace. Places the selected marker on a trace (1 to 3). | Number: 1,2,3 |
| :CALCulate:PNoise:MARKer:DELTa ON | Delta Marker On. Turns the delta marker (creates a reference marker) on. | None |
| :CALCulate:PNoise:MARKer:DELTa OFF | Delta Marker Off. Turns the delta marker (creates a reference marker) off. | None |
| :CALCulate:PNoise:MARKer:X <Frequency> | Set Marker Offset. Sets the marker position as an offset from the carrier. | Number |
| :CALCulate:PNoise:MARKer:X? | Read Marker X. Returns the marker offset frequency in Hz. | None |
| :CALCulate:PNoise:MARKer:Y? | Read Marker Y. Returns the marker amplitude in dBc/Hz (or dB difference in delta mode). | None |
| :CALCulate:PNoise:JITTer:STATe ON | Jitter On. Turns the jitter measurement on. | None |
| :CALCulate:PNoise:JITTer:STATe OFF | Jitter Off. Turns the jitter measurement off. | None |
| :CALCulate:PNoise:JITTer:TRACe <Trace> | Set Jitter Trace. Selects the trace for the jitter measurement (1 to 3). | Number: 1,2,3 |
| :CALCulate:PNoise:JITTer:STARt <Frequency> | Set Jitter Start. Sets the jitter integration start offset. | Number |
| :CALCulate:PNoise:JITTer:STOP <Frequency> | Set Jitter Stop. Sets the jitter integration stop offset. | Number |
| :CALCulate:PNoise:JITTer:RMS? | Measure RMS Jitter. Returns the RMS jitter in seconds. | None |
| :CALCulate:PNoise:JITTer:PHASe? | Measure Phase Jitter. Returns the phase jitter in radians. | None |
| Command | What it does | Arguments |
|---|---|---|
| :SYSTem:DEVice:ACTive? | Read Device Active. Returns whether an analyzer is connected and active in Spike. | None |
| :SYSTem:DEVice:LIST? | Read Device List. Returns the connection strings of all available devices. | None |
| :SYSTem:DEVice:CONnect? <Device> | Connect Device. Connects a device (serial number or SOCKET::IP::PORT) and returns 1 on success. | Text |
| :SYSTem:DEVice:DISConnect? | Disconnect Device. Disconnects the active device; returns 1 when finished. | None |
| :SYSTem:TEMPerature? | Read Temperature. Returns the internal temperature of the active device in degrees Celsius. | None |
| :SYSTem:PRESet:USER:SAVE <FileName> | Save User Preset. Saves a preset to the given .ini file. | Text |
| :SYSTem:PRESet:USER:LOAD <FileName> | Load User Preset. Loads a preset from the given .ini file. | Text |
| :SYSTem:IMAGe:SAVe <FileName> | Save Screenshot. Saves an image of the display to the given file. | Text |
| :SYSTem:ERRor:NEXT? | Read Error. Returns and removes the next error in the queue (0 = no error). | None |
| :SYSTem:ERRor:COUNt? | Read Error Count. Returns the number of errors in the error queue. | None |
| :SYSTem:ERRor:CLEAr | Clear Errors. Removes all errors from the queue. | None |
| :SYSTem:VERsion? | Read Software Version. Returns the Spike software version. | None |
| :SYSTem:COMMunicate:GTLocal | Go To Local. Puts Spike in local mode. | None |
| :SYSTem:PRESet? | Preset Device. Presets (closes and reopens) the active device; returns 1 on success. | None |
| Command | What it does | Arguments |
|---|---|---|
| :DISPlay:PNoise:XCORr:GINdicator:STATe ON | XCorr Gain Indicator On. Turns the cross correlation gain indicator on. | None |
| :DISPlay:PNoise:XCORr:GINdicator:STATe OFF | XCorr Gain Indicator Off. Turns the cross correlation gain indicator off. | None |
| :DISPlay:PNoise:XCORr:COUNt:STATe ON | XCorr Count Display On. Turns the cross correlation count display on. | None |
| :DISPlay:PNoise:XCORr:COUNt:STATe OFF | XCorr Count Display Off. Turns the cross correlation count display off. | None |
| Command | What it does | Arguments |
|---|---|---|
| :INITiate:CONTinuous OFF | Single Measurement. Disables continuous measurement (measurements triggered by INIT only). | None |
| :INITiate:CONTinuous ON | Continuous Measurement. Enables continuous measurement operation. | None |
| :INITiate:IMMediate | Start Measurement. Triggers a measurement (no effect if continuous is enabled). | None |
| Command | What it does | Arguments |
|---|---|---|
| :INSTrument:SELect PNoise | Select Phase Noise Mode. Selects the phase noise measurement mode in Spike. | None |
| :INSTrument:RECALibrate | Recalibrate. Performs a device recalibration. | None |
| Command | What it does | Arguments |
|---|---|---|
| :FORMat:TRACe:DATA <Format> | Set Trace Format. Selects ASCII or binary (32-bit float block) trace data format. | Text: ASCii,REAL |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *SAV <Preset> | Save Preset. Saves the settings to preset 1 to 9. | Number: 1,9 |
| *RCL <Preset> | Recall Preset. Loads preset 1 to 9. | Number: 1,9 |
| *IDN? | Identify. Returns the serial number and name of the active device. | None |
| *RST | Reset. Presets the software/device (same as SYSTem:PRESet). | None |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Signal Hound's programming documentation for the PN400 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Signal Hound's programming manual: check it before you rely on an edge case. Last updated September 26, 2026.
Yes. The Signal Hound PN400 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 106 SCPI commands for it: 29 queries that read values or state, and 77 settings and actions.
Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, :SENSe:PNoise:VCO:VOLTage:STATe ON and :SENSe:PNoise:XCORr:MEAS:PROGress?.
:SENSe:PNoise:XCORr:MEAS:PROGress? (read xcorr progress). Returns the cross correlation progress (0 to factor; complete when equal to the factor; -1 if disabled). The full list of queries is in the command reference on this page, grouped by subsystem.
Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Signal Hound PN400 through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.