labscript.outputs.StaticAnalogQuantity

class StaticAnalogQuantity(*args, **kwargs)[source]

Bases: Output

Base class for StaticAnalogOut.

It can also be used internally by other more complex output types.

__init__(*args, **kwargs)[source]

Instatiantes the static analog quantity.

Defines an internal tracking variable of the static output value and calls Output.__init__().

Parameters:

Methods

__init__(*args, **kwargs)

Instatiantes the static analog quantity.

add_device(device)

Adds a child device to this device.

add_instruction(time, instruction[, units])

Adds a hardware instruction to the device instruction list.

apply_calibration(value, units)

Apply the calibration defined by the unit conversion class, if present.

constant(value[, units])

Set the static output value of the output.

do_checks(trigger_times)

Basic error checking to ensure the user's instructions make sense.

expand_timeseries(*args, **kwargs)

Defines the raw_output attribute.

generate_code(hdf5_file)

Generate hardware instructions for device and children, then save to h5 file.

get_all_children()

Get all children devices for this device.

get_all_outputs()

Get all children devices that are outputs.

get_change_times()

Enforces no change times.

get_properties([location])

Get all properties in location.

get_property(name[, location])

Method to get a property of this device already set using Device.set_property().

get_ramp_times()

If this is being called, then it means the parent Pseuedoclock has asked for a list of the output ramp start and stop times.

init_device_group(hdf5_file)

Creates the device group in the shot file.

instruction_to_string(instruction)

Gets a human readable description of an instruction.

make_timeseries(change_times)

Since output is static, does nothing.

offset_instructions_from_trigger(trigger_times)

Subtracts self.trigger_delay from all instructions at or after each trigger_time.

quantise_to_pseudoclock(times)

Quantises times to the resolution of the controlling pseudoclock.

set_properties(properties_dict, property_names)

Add one or a bunch of properties packed into properties_dict

set_property(name, value[, location, overwrite])

Method to set a property for this device.

Attributes

allowed_children

Defines types of devices that are allowed to be children of this device.

allowed_states

clock_limit

Returns the parent clock line's clock limit.

default_value

Value of output if no constant value is commanded.

description

Brief description of the device.

parent_clock_line

Stores the clocking clockline, which may be itself.

pseudoclock_device

Stores the clocking pseudoclock, which may be itself.

scale_factor

static_value

The value of the static output.

t0

The earliest time output can be commanded from this device at the start of the experiment.

trigger_delay

The earliest time output can be commanded from this device after a trigger.

wait_delay

The earliest time output can be commanded from this device after a wait.

constant(value, units=None)[source]

Set the static output value of the output.

Parameters:
  • value (float) – Value to set the output to.

  • units – Units, defined by the unit conversion class, the value is in.

Raises:

LabscriptError – If static output has already been set to another value or the value lies outside the output limits.

default_value = 0.0

Value of output if no constant value is commanded.

Type:

float

description = 'static analog quantity'

Brief description of the device.

expand_timeseries(*args, **kwargs)[source]

Defines the raw_output attribute.

get_change_times()[source]

Enforces no change times.

Returns:

An empty list, as expected by the parent pseudoclock.

Return type:

list

make_timeseries(change_times)[source]

Since output is static, does nothing.

property static_value

The value of the static output.

Type:

float