Source Meter · SCPI command reference

GW Instek GSM-20H10 SCPI commands

The GW Instek GSM-20H10 source meter is controlled remotely with SCPI commands. TestFlow's instrument library holds 47 commands for it, 12 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 GSM-20H10 on a real bench.

Commands
47
Queries
12
Subsystems
14
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your GW Instek GSM-20H10 and writes the report from the measured results.

Get started

Control the GW Instek GSM-20H10 from Python

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 GW Instek GSM-20H10's VISA address

# Paste the address of your GW Instek GSM-20H10 (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(":OUTPut ON")  # Turn On
print(inst.query(":MEASure:VOLTage?"))  # Measure Voltage

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your GW Instek GSM-20H10 and writes the report from the measured results.

Get started

Run a GSM-20H10 test without writing code

Describe the test in a sentence, for example “turn on on the GSM-20H10, then measure voltage 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.

Get started

SCPI command reference

47 commands in 14 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

Sense (SENSe) (11)

CommandWhat it doesArguments
:SENSe:VOLTage:PROTection:LEVel <Voltage>Set Voltage Limit. Sets the voltage limit (compliance) when sourcing current.Number: -210 to 210
:SENSe:CURRent:PROTection:LEVel <Amp>Set Current Limit. Sets the current limit (compliance) when sourcing voltage.Number: -1.05 to 1.05
:SENSe:CURRent:PROTection:TRIPped?Read Source Limit Tripped. Reads whether the source limit has been tripped.None
:SENSe:FUNCtion "VOLTage"Set Sense Function Voltage. Selects voltage as the measurement function.None
:SENSe:FUNCtion "CURRent"Set Sense Function Current. Selects current as the measurement function.None
:SENSe:FUNCtion "RESistance"Set Sense Function Resistance. Selects resistance as the measurement function.None
:SENSe:VOLTage:RANGe <Range>Set Voltage Sense Range. Sets the voltage measurement range in volts.Number
:SENSe:CURRent:RANGe <Range>Set Current Sense Range. Sets the current measurement range in amps.Number
:SENSe:VOLTage:RANGe:AUTO ONVoltage Sense Autorange On. Enables voltage measurement autorange.None
:SENSe:VOLTage:RANGe:AUTO OFFVoltage Sense Autorange Off. Disables voltage measurement autorange.None
:SENSe:CURRent:NPLCycles <Cycles>Set NPLC. Sets the integration time in power line cycles for current measurement.Number

Source (SOURce) (8)

CommandWhat it doesArguments
:SOURce:FUNCtion <Function>Set Source Function. Sets the source function to voltage or current mode.Text: VOLTage,CURRent
:SOURce:FUNCtion?Read Source Function. Reads the present source function.None
:SOURce:VOLTage <Voltage>Set Voltage Source. Sets the output voltage level in volts when in voltage source mode.Number
:SOURce:CURRent <Amp>Set Current Source. Sets the output current level in amps when in current source mode.Number
:SOURce:VOLTage:RANGe <Range>Set Source Voltage Range. Sets the source voltage range in volts.Number
:SOURce:CURRent:RANGe <Range>Set Source Current Range. Sets the source current range in amps.Number
:SOURce:VOLTage:RANGe:AUTO ONSource Voltage Autorange On. Enables source voltage autorange.None
:SOURce:VOLTage:RANGe:AUTO OFFSource Voltage Autorange Off. Disables source voltage autorange.None

Output (OUTPut) (7)

CommandWhat it doesArguments
:OUTPut ONTurn On. Enables the source output.None
:OUTPut OFFTurn Off. Disables the source output.None
:OUTPut?Read Output State. Reads whether the output is ON or OFF.None
:OUTPut:SMODe HIMPedanceSet Output Off Mode Himp. Sets the output-off state to high impedance.None
:OUTPut:SMODe NORMalSet Output Off Mode Normal. Sets the output-off state to normal.None
:OUTPut:SMODe ZEROSet Output Off Mode Zero. Sets the output-off state to zero.None
:OUTPut:SMODe GUARdSet Output Off Mode Guard. Sets the output-off state to guard.None

System (SYSTem) (3)

CommandWhat it doesArguments
:SYSTem:RSENse ONSet Four Wire On. Enables 4-wire (remote sense) measurement.None
:SYSTem:RSENse OFFSet Four Wire Off. Disables 4-wire sense (uses 2-wire local sense).None
:SYSTem:ERRor?Read Error. Reads the first message from the error queue.None

Measurement (MEASure) (3)

CommandWhat it doesArguments
:MEASure:VOLTage?Measure Voltage. Triggers and returns the measured voltage in volts.None
:MEASure:CURRent?Measure Current. Triggers and returns the measured current in amps.None
:MEASure:RESistance?Measure Resistance. Triggers and returns the measured resistance in ohms.None

Read (READ) (1)

CommandWhat it doesArguments
:READ?Read Value. Triggers and returns one measurement of the active sense function.None

Fetch (FETCh) (1)

CommandWhat it doesArguments
:FETCh?Fetch Value. Returns the last measurement without re-triggering.None

Trigger (TRIGger) (1)

CommandWhat it doesArguments
:TRIGger:COUNt <Count>Set Measure Count. Sets the number of measurements made per trigger.Number: 1-2500

Initiate (INITiate) (1)

CommandWhat it doesArguments
:INITiateInitiate. Places the instrument in the wait-for-trigger state.None

Abort (1)

CommandWhat it doesArguments
:ABORtAbort. Aborts the current operation and returns to idle.None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (7)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear Status. Clears all event registers and the error queue.None
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None
*TRGTrigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from GW Instek's programming documentation for the GSM-20H10 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by GW Instek's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the GW Instek GSM-20H10 support SCPI remote control?

Yes. The GW Instek GSM-20H10 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 47 SCPI commands for it: 12 queries that read values or state, and 35 settings and actions.

How do I control the GW Instek GSM-20H10 from Python?

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?, :OUTPut ON and :MEASure:VOLTage?.

Which command reads a value from the GW Instek GSM-20H10?

:MEASure:VOLTage? (measure voltage). Triggers and returns the measured voltage in volts. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the GW Instek GSM-20H10 without writing code?

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 GW Instek GSM-20H10 through the TestFlow desktop app, and writes the report from the measured results.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.