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.

class qtpyvcp.widgets.hal_widgets.hal_button.HalButton(parent=None)[source]

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
qtpyvcp.button.checked bit out
qtpyvcp.button.io bit io

Note

The qtpyvcp.button.checked halpin is only present if the checkable property is set to true.

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.

pulseDuration

Pulse duration in ms used when pulseOnPress is active.

initialize()[source]

This method is called right before the main application starts.

class qtpyvcp.widgets.hal_widgets.hal_checkbox.HalCheckBox(parent=None)[source]

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
initialize()[source]

This method is called right before the main application starts.

class qtpyvcp.widgets.hal_widgets.hal_double_spinbox.HalDoubleSpinBox(parent=None)[source]

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
initialize()[source]

This method is called right before the main application starts.

class qtpyvcp.widgets.hal_widgets.hal_groupbox.HalGroupBox(parent=None)[source]

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.visible bit in
qtpyvcp.group-box.check bit in
qtpyvcp.group-box.checked bit out
initialize()[source]

This method is called right before the main application starts.

class qtpyvcp.widgets.hal_widgets.hal_label.HalLabel(parent=None)[source]

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
textFormat

Text Format Property

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

This method is called right before the main application starts.

class qtpyvcp.widgets.hal_widgets.hal_lcd.HalLCDNumber(parent=None)[source]

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
initialize()[source]

This method is called right before the main application starts.

class qtpyvcp.widgets.hal_widgets.hal_led.HalLedIndicator(parent=None)[source]

HAL LED

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
initialize()[source]

This method is called right before the main application starts.

class qtpyvcp.widgets.hal_widgets.hal_led_button.HALLEDButton(parent=None)[source]

HAL LED Button

diameter

alias of __builtin__.property

color

alias of __builtin__.property

alignment

alias of __builtin__.property

flashPinName
The actionName property for setting the action the button
should trigger from within QtDesigner.
Returns:The action name.
Return type:str
pinName
The actionName property for setting the action the button
should trigger from within QtDesigner.
Returns:The action name.
Return type:str
class qtpyvcp.widgets.hal_widgets.hal_slider.HalSlider(parent=None)[source]

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
initialize()[source]

This method is called right before the main application starts.

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

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.

initialize()[source]

This method is called right before the main application starts.