SCPI Commands

Commands list

  1. *IDN? : Query device identification
  2. SYSTem:SN? : Query system serial number
  3. SYSTem:PN? : Query system product number
  4. *RST : Reset all settings to default
  5. *SAV : Save current settings to EEPROM
  6. *RCL : Restore settings from EEPROM
  7. VOLTage : Set voltage of a channel
  8. VOLTage? : Query voltage of a channel
  9. OUTPut : Enable or disable output of a channel
  10. OUTPut? : Query output state of a channel
  11. FREQuency : Set frequency. There is one frequency for all channels
  12. FREQuency? : Query frequency
  13. MEASure:VOLTage? : Measure voltage of a sensing channel
  14. MEASure:CURRent? : Measure current of an output channel
  15. MEASure:INput? : Measure voltage of incoming power supply (VIN)
  16. PARAllel : Set parallel mode
  17. PARAllel? : Query parallel mode
  18. MPMW : Write MPM Register
  19. MPMR : Read MPM Register
  20. USBPD : Dump USBPD Status
  21. PLOTter : Enable or disable plotter
  22. I2C_R : Read i2c device register
  23. I2C_W : Write i2c device register

Commands details

*IDN?

Description

Query device identification

This command is used to query device identification. The response will be the device name.

Example

*IDN?

Query device identification


SYSTem:SN?

Description

Query system serial number

This command is used to query system serial number. The response will be the serial number.

Result

Type: UIntList

Example

SYSTem:SN?

Query system serial number


SYSTem:PN?

Description

Query system product number

Same as command "SN?"

Result

Type: UIntList

Example

SYSTem:PN?

Query system product number


*RST

Description

Reset all settings to default

This command is used to reset all settings to default.

Example

*RST

Reset all settings to default


*SAV

Description

Save current settings to EEPROM

This command is used to save current settings to EEPROM. The settings will be restored after power cycle.

Result

Type: Bool

Example

*SAV

Save current settings to EEPROM


*RCL

Description

Restore settings from EEPROM

This command is used to restore settings from EEPROM. The settings will be restored immediately

Result

Type: Bool

Example

*RCL

Restore settings from EEPROM


VOLTage

Description

Set voltage of a channel

Voltage range: 0.55V to 5.46V

Arguments

Name Description Type
voltage Channel voltage Float
channels Channel list ChannelList

Example

VOLTage 1.2, (@1)

Sets voltage 1.2 Volt for channel 1


VOLTage?

Description

Query voltage of a channel

Arguments

Name Description Type
channels Channel list ChannelList

Result

Type: FloatList

Example

VOLTage? (@1)

Query voltage of channel 1


OUTPut

Description

Enable or disable output of a channel

Use channel 99 to enable/disable all channels as done by master switch

Arguments

Name Description Type
enable Enable or disable Bool
channels Channel list ChannelList

Example

OUTPut 1, (@1)

Enable output of channel 1

OUTPut 0, (@1,2)

Disable output of channel 1 and 2

OUTPut 0, (@1:4)

Disable output of channel 1 to 4

OUTPut 0, (@99)

Disable all outputs by master switch


OUTPut?

Description

Query output state of a channel

Use channel 99 to enable/disable all channels as done by master switch

Arguments

Name Description Type
channels Channel list ChannelList

Result

Type: BoolList

Example

OUTPut? (@1)

Query output state of channel 1

OUTPut? (@99)

Query master enable status


FREQuency

Description

Set frequency. There is one frequency for all channels

Codes:

0: 533 kHz

1: 800 kHz

2: 1006 kHz

3: 1600 kHz

Arguments

Name Description Type
frequency Channel frequency code (0..3) Int32

Result

Type: Bool

Example

FREQuency 0

Sets frequency 533 kHz

FREQ 1

Sets frequency 800 kHz


FREQuency?

Description

Query frequency

Codes:

0: 533 kHz

1: 800 kHz

2: 1006 kHz

3: 1600 kHz

Result

Type: Int32

Example

FREQuency?

Query frequency


MEASure:VOLTage?

Description

Measure voltage of a sensing channel

This command is used to measure the voltage of a channel. There are channel 1 and 2 available.

Arguments

Name Description Type
channels Channel list ChannelList

Result

Type: FloatList

Example

MEASure:VOLTage? (@1)

Measure voltage of channel 1


MEASure:CURRent?

Description

Measure current of an output channel

This command is used to measure the current of output channel (1 to 4)

Arguments

Name Description Type
channels Channel list ChannelList

Result

Type: FloatList

Example

MEASure:CURRent? (@1)

Measure current of channel 1


MEASure:INput?

Description

Measure voltage of incoming power supply (VIN)

This command is used to measure voltage of incoming power supply (VIN). Original AC/DC wall adapter will have about 12V

Result

Type: Float

Example

MEASure:INput?

Measure input of VIN


PARAllel

Description

Set parallel mode

This command is used to set parallel mode. In parallel mode, the output current is doubled. Only channels 1+2 and 3+4 can be in parallel. In this case you should also tie the pins of the channels together. To control voltage of 1/2 only use channel 1 and to control voltage of 3/4 only use channel 3.

Arguments

Name Description Type
enable Enable or disable Bool
channels Channel list. Only combinations (@1:2) and (@3:4) are valid ChannelList

Example

PARAllel 1,(@1:2)

Enable parallel mode for channel 1 and 2

PARAllel 0,(@1:2)

Disable parallel mode for channel 1 and 2

PARAllel 1,(@3:4)

Enable parallel mode for channel 3 and 4

PARAllel 0,(@3:4)

Disable parallel mode for channel 3 and 4


PARAllel?

Description

Query parallel mode

This command is used to set parallel mode. In parallel mode, the output current is doubled. Only channels 1+2 and 3+4 can be in parallel. In this case you should also tie the pins of the channels together. To control voltage of 1+2 only use channel 1 and to control voltage of 3+4 only use channel 3.

Arguments

Name Description Type

Result

Type: UIntList

Example

PARAllel?

Query status of chanel parallelization. Result will be two number which represent state of parallelization of channels 1+2 and 3+4


MPMW

Description

Write MPM Register

This command is used to write MPM register. The register is 8-bit wide.

Arguments

Name Description Type
reg Register address Int32
value Register value Int32

Example

MPMW 0, 1

Write 1 to register 0


MPMR

Description

Read MPM Register

This command is used to read MPM register. The register is 8-bit wide.

Arguments

Name Description Type
reg Register address Int32

Result

Type: Int32

Example

MPMR 0

Read register 0


USBPD

Description

Dump USBPD Status

This command is used to dump USBPD status

Example

USBPD

Dump usb pd status


PLOTter

Description

Enable or disable plotter

This command is used to enable or disable plotter. The plotter is used to plot the voltage and current of the channels by Arduino IDE serial plotter.

Arguments

Name Description Type
enable Enable or disable Bool

Example

PLOTter 1

Enable plotter

PLOTter 0

Disable plotter


I2C_R

Description

Read i2c device register

This command is used to read i2c device register. The register is 8-bit wide.

Arguments

Name Description Type
addr I2C device address Int32
reg Register address Int32

Result

Type: Int32

Example

I2C_R 16, 0

Read register 0 of i2c device 0x10


I2C_W

Description

Write i2c device register

This command is used to write i2c device register. The register is 8-bit wide.

Arguments

Name Description Type
addr I2C device address Int32
reg Register address Int32
value Register value Int32

Example

I2C_W 16, 0, 1

Write 1 to register 0 of i2c device 0x10