qtics.instruments.srs package#

Stanford Research Systems instrument drivers.

Submodules#

qtics.instruments.srs.sim928 module#

Controller of the SIM928 isolated voltage source (SRS), used through a SIM900 mainframe.

class qtics.instruments.srs.sim928.SIM928(transport: Transport | str, name: str = 'SIM928', mainframe_port: int = 1, **transport_kwargs)[source]#

Bases: DCSource, SCPIInstrument

SIM928 isolated voltage source by Stanford Research Systems.

Works in conjunction with the SIM900 mainframe.

battery_charger_override()[source]#

Force the SIM928 to switch the active output battery.

battery_full_spec()[source]#

Print the full battery specifications.

battery_spec(parameter: str) → str[source]#

Query the battery specification for parameter i.

Valid parameters to query: - PNUM (0): Battery pack part number - SERIAL (1): Battery pack serial number - MAXCY (2): Design life (# of charge cycles) - CYCLES (3): # charge cycles used - PDATE (4): Battery pack production date (YYYY-MM-DD)

battery_state() → str[source]#

Query the battery status of the SIM928.

Returns:

A string in the format “<a>,<b>,<x>”, where <a> and <b> correspond to batteries “A” and “B”, and are equal to 1 for in use, 2 for charging, and 3 for ready/standby. The third parameter, <x>, is normally 0; it is set to 1 if the service batteries indicator is lit.

Return type:

str

connect_port(port: int)[source]#

Connect to the a specific port in the mainframe.

default_transport#

alias of SerialTransport

dev_error() → str[source]#

Get last command/device error.

exe_error() → str[source]#

Get last execution error.

property output: bool#

Whether the output is on.

query(cmd: str) → str[source]#

Return query without terminal character.

transport_defaults: ClassVar[Dict[str, Any]] = {'baudrate': 9600, 'delay': 0.1, 'terminator': '\n'}#
property voltage: float#

Output voltage.