qcodes_contrib_drivers.drivers.M2 package¶
Submodules¶
qcodes_contrib_drivers.drivers.M2.M2_Solstis_3 module¶
- class qcodes_contrib_drivers.drivers.M2.M2_Solstis_3.M2Solstis3(*args: Any, **kwargs: Any)[source]¶
Bases:
IPInstrument
Driver for the M² Solstis laser.
- Parameters:
name – The name of the instrument.
address – The IP address of the Laser.
port – The Port number of the Laser.
controller_address – The IP address of the laser controller (PC).
- get_idn() dict[str, str | None] [source]¶
Parse a standard VISA
*IDN?
response into an ID dict.Even though this is the VISA standard, it applies to various other types as well, such as IPInstruments, so it is included here in the Instrument base class.
Override this if your instrument does not support
*IDN?
or returns a nonstandard IDN string. This string is supposed to be a comma-separated list of vendor, model, serial, and firmware, but semicolon and colon are also common separators so we accept them here as well.- Returns:
A dict containing vendor, model, serial, and firmware.
- snapshot_base(update: bool | None = False, params_to_skip_update: Sequence[str] | None = None) dict[Any, Any] [source]¶
State of the instrument as a JSON-compatible dict (everything that the custom JSON encoder class
NumpyJSONEncoder
supports).- Parameters:
update – If True, update the state by querying the instrument. If None only update if the state is known to be invalid. If False, just use the latest values in memory and never update.
params_to_skip_update – List of parameter names that will be skipped in update even if update is True. This is useful if you have parameters that are slow to update but can be updated in a different way (as in the qdac). If you want to skip the update of certain parameters in all snapshots, use the snapshot_get attribute of those parameters: instead.
- Returns:
base snapshot
- Return type: