Experiments

Defining new experiments

Protocols

A basic Protocol is generally made up of Stage s, which are made up of Step s. These are often compatible with AB’s software.

While the parameters for these classes default to seconds and degrees Celsius, when using numbers as input, they also use the pint library to accept strings (or pint Quantity objects). Thus, you can use "1 hr" or "1 hour" instead of 3600, or "59 °C" or "59 degC" for a temperature. Note that for temperature increments, pint distinguishes between a temperature change and absolute temperature unit, so you would need to use, for example "-1 delta_degC".

QSLib also supports custom steps, which can contain arbitrary SCPI commands. For common commands, it also includes classes that allow more convenient use:

protocol.Exposure(settings[, state])

Modifies exposure settings.

protocol.Hold(time[, increment, ...])

A protocol hold (for a time) command.

protocol.Ramp(temperature[, increment, ...])

Ramps temperature to a new setting.

protocol.HACFILT(filters[, default_filters])

Sets filters for HoldAndCollect .

protocol.HoldAndCollect(time[, increment, ...])

A protocol hold (for a time) and collect (set by HACFILT) command.

scpi_commands.SCPICommand(command, *args[, ...])

A representation of an SCPI Command.

Once created, there are several useful methods:

Plates

Loading and saving existing experiments

Loading

Saving

Information, data access and plotting

Information

Data

Plotting

Normalization

Running and controlling experiments