device module

The Device class handles persistent settings saved in json files in labAPI/settings. Settings are loaded into the Device.params dict and are handled differently based on their “type”: “state” objects are loaded into a state vector to be made accessible by the Optimizer class, while “settings” objects (e.g. velocity of the a translation stage) are not.

The settings file always contains the following attributes:
id: the LabJack id, COM port, or similar address default: the default setpoint
class device.Device(name, base_path=None, lowlevel=True, parent=None)

Bases: object

actuate(state)

Ensures that the target state is within bounds, then calls the device-specific actuate() method to update the physical state. Finally, updates the internal state and params

name = None

Prepare filepath for parameter file