Device

SCPI Commands :

SYSTem:BASE:DEVice:SUBinst
SYSTem:BASE:DEVice:COUNt
SYSTem:BASE:DEVice:RESet
SYSTem:BASE:DEVice:MSCont
SYSTem:BASE:DEVice:MSCCount
SYSTem:DEVice:ID
class DeviceCls[source]

Device commands group definition. 8 total commands, 2 Subgroups, 6 group commands

class SubinstStruct[source]

Structure for reading output parameters. Fields:

  • Cur_Sub_Inst: int: decimal Number of the addressed subinstrument, as indicated in a VISA resource string for VXI-11 Value n means instrument n+1. Example: 0 means instrument 1.

  • Sub_Inst_Count: int: decimal Total number of subinstruments into which the instrument is split.

get_count() int[source]
# SCPI: SYSTem:BASE:DEVice:COUNt
value: int = driver.system.device.get_count()

Splits the instrument into subinstruments or assigns all hardware resources to a single subinstrument. Send this command to the subinstrument with the lowest number (device number 0 / assigned instrument 1 / subinstrument 1) . To assign/distribute the available hardware resources to the subinstruments, enter method RsCmwBase.System.Device.reset after you have changed the number of subinstruments.

return:

count: integer Number of subinstruments The allowed values depend on your instrument configuration.

get_id() str[source]
# SCPI: SYSTem:DEVice:ID
value: str = driver.system.device.get_id()

Queries the device identification of the instrument. This ID is important for ordering licenses.

return:

device_id: string

get_msc_count() int[source]
# SCPI: SYSTem:BASE:DEVice:MSCCount
value: int = driver.system.device.get_msc_count()

No command help available

return:

max_sc_count: No help available

get_mscont() int[source]
# SCPI: SYSTem:BASE:DEVice:MSCont
value: int = driver.system.device.get_mscont()

Returns the maximum number of subinstruments into which the instrument can be split.

return:

max_si_count: decimal Maximum number of subinstruments

get_subinst() SubinstStruct[source]
# SCPI: SYSTem:BASE:DEVice:SUBinst
value: SubinstStruct = driver.system.device.get_subinst()

Queries the number of the addressed subinstrument and the total number of subinstruments.

return:

structure: for return value, see the help for SubinstStruct structure arguments.

reset() None[source]
# SCPI: SYSTem:BASE:DEVice:RESet
driver.system.device.reset()

Assigns the available hardware resources to the subinstruments. Send this command to the subinstrument with the lowest number (device number 0 / assigned instrument 1 / subinstrument 1) . After changing the number of subinstruments via method RsCmwBase.System.Device.count, always send this command.

reset_with_opc(opc_timeout_ms: int = -1) None[source]
# SCPI: SYSTem:BASE:DEVice:RESet
driver.system.device.reset_with_opc()

Assigns the available hardware resources to the subinstruments. Send this command to the subinstrument with the lowest number (device number 0 / assigned instrument 1 / subinstrument 1) . After changing the number of subinstruments via method RsCmwBase.System.Device.count, always send this command.

Same as reset, but waits for the operation to complete before continuing further. Use the RsCmwBase.utilities.opc_timeout_set() to set the timeout value.

param opc_timeout_ms:

Maximum time to wait in milliseconds, valid only for this call.

set_count(count: int) None[source]
# SCPI: SYSTem:BASE:DEVice:COUNt
driver.system.device.set_count(count = 1)

Splits the instrument into subinstruments or assigns all hardware resources to a single subinstrument. Send this command to the subinstrument with the lowest number (device number 0 / assigned instrument 1 / subinstrument 1) . To assign/distribute the available hardware resources to the subinstruments, enter method RsCmwBase.System.Device.reset after you have changed the number of subinstruments.

param count:

integer Number of subinstruments The allowed values depend on your instrument configuration.

Cloning the Group

# Create a clone of the original group, that exists independently
group2 = driver.system.device.clone()

Subgroups