HAL Widgets

These widgets generate HAL pins by which they can control or be controlled by external HAL signals. HAL signals must be connected in the POSTGUI_HALFILE since they do not exist until the GUI has been fully loaded.

All pins belong to the qtpyvcp HAL component. Pin names are derived from the widget’s ObjectName as set in designer, with any underscores replaced by dashes.

HAL Button

Button for setting bit HAL pin values.

Generated HAL Pins
HAL Pin Name Type Direction
qtpyvcp.button.enable bit in
qtpyvcp.button.out bit out
class qtpyvcp.widgets.hal_widgets.hal_button.HalButton(parent=None)[source]

HAL Button

pulseDuration

Pulse duration in ms used when pulseOnPress is active.

pulseOnPress

If active, when the button is pressed the out pin will be True for pulseDuration ms, otherwise the out pin will be True for the duration of the button press.

HAL CheckBox

CheckBox for displaying and setting bit HAL pin values.

Generated HAL Pins
HAL Pin Name Type Direction
qtpyvcp.checkbox.enable bit in
qtpyvcp.checkbox.check bit in
qtpyvcp.checkbox.checked bit out
class qtpyvcp.widgets.hal_widgets.hal_checkbox.HalCheckBox(parent=None)[source]

HAL CheckBox

HAL SpinBox

SpinBox for displaying and setting u32 and s32 HAL pin values.

Generated HAL Pins
HAL Pin Name Type Direction
qtpyvcp.spinbox.enable s32 | u32 in
qtpyvcp.spinbox.in s32 | u32 in
qtpyvcp.spinbox.out s32 | u32 out

Note

If the minimum value property is set to 0 or greater a u32 HAL pin will be created, if the minumum value is less than 0 then a s32 HAL pin will be created.

class qtpyvcp.widgets.hal_widgets.hal_spinbox.HalQSpinBox(parent=None)[source]

HAL SpinBox

HAL DoubleSpinBox

DoubleSpinBox for displaying and setting float HAL pin values.

Generated HAL Pins
HAL Pin Name Type Direction
qtpyvcp.spinbox.enable bit in
qtpyvcp.spinbox.in float in
qtpyvcp.spinbox.out float out
class qtpyvcp.widgets.hal_widgets.hal_double_spinbox.HalDoubleSpinBox(parent=None)[source]

HAL DoubleSpinBox

HAL Slider

Slider for setting u32 or float HAL pin values.

Generated HAL Pins
HAL Pin Name Type Direction
qtpyvcp.slider.enable bit in
qtpyvcp.slider.out-i u32 out
qtpyvcp.slider.out-f float out
class qtpyvcp.widgets.hal_widgets.hal_slider.HalSlider(parent=None)[source]

HAL Slider

HAL Label

Label for displaying HAL pin values.

Input pin type is selectable via the pinType property in designer, and can be any valid HAL type (bit, u32, s32, float).

The text format can be specified via the textFormat property in designer and can be any valid python style format string.

Generated HAL Pins
HAL Pin Name Type Direction
qtpyvcp.label.enable bit in
qtpyvcp.label.in selecatable in
class qtpyvcp.widgets.hal_widgets.hal_label.HalLabel(parent=None)[source]

HAL Label

textFormat

Text Format Property

Parameters:fmt (str) – A valid python style format string. Defaults to %s.

HAL LCD Number

LCD Number for displaying float or s32 HAL pin values.

Generated HAL Pins
HAL Pin Name Type Direction
qtpyvcp.lcd.in-i s32 in
qtpyvcp.lcd.in-f float in
class qtpyvcp.widgets.hal_widgets.hal_lcd.HalLCDNumber(parent=None)[source]

HAL LCD Number

HAL GroupBox

GroupBox that can be enabled/disabled via HAL pins.

Generated HAL Pins
HAL Pin Name Type Direction
qtpyvcp.group-box.enable bit in
qtpyvcp.group-box.check bit in
qtpyvcp.group-box.checked bit out
class qtpyvcp.widgets.hal_widgets.hal_groupbox.HalGroupBox(parent=None)[source]

HAL GroupBox

HAL LED Indicator

LED for indicated the state of bit HAL pins.

Generated HAL Pins
HAL Pin Name Type Direction
qtpyvcp.led.on bit in
qtpyvcp.led.flash bit in
qtpyvcp.led.flash-rate u32 out
class qtpyvcp.widgets.hal_widgets.hal_led.HalLedIndicator(parent=None)[source]

HAL LED