SDK docs menu

class

Control

Something you can do to the board, as returned by Board.controls.

from hardlabs_sdk import Control

Attributes

namestr
The name Board.do takes, <panel>.<control>.
kindstr
What it takes. button and preset take nothing, toggle takes True/False, number and slider take a number, and form, vector and generator take named values (see fields).
labelstr
The control's label on the board's panel.
usagestr
How to call it, e.g. bench-supply.volts <value 0..24 V>.
minfloat | None
The lowest value it takes.
maxfloat | None
The highest value it takes.
unitstr | None
The value's unit.
fieldstuple[dict, ...]
For a form or generator, the keyword arguments Board.do takes, each with name and, when set, label, min, max, unit and default.
aliasestuple
Other names it answers to, by reference designator: ("U3.set-ambient-temperature",).