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.

mousePressEvent(self, e: QMouseEvent)[source]
mouseReleaseEvent(self, e: QMouseEvent)[source]
keyPressEvent(self, a0: QKeyEvent)[source]
keyReleaseEvent(self, e: QKeyEvent)[source]
initialize()[source]

This method is called right before the main application starts.

class qtpyvcp.widgets.hal_widgets.hal_plot.HalPlot(parent=None)[source]

HAL Plot

Plots HAL pin values over time, similar to HAL scope. Up to four HAL pin values can be plotted.

Generated HAL Pins

HAL Pin Name

Type

Direction

qtpyvcp.pinBaseName.seriesXname.in

float

in

both pinBaseName and seriesXname can be set in the property editor in QtDesigner.

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.

mousePressEvent(self, e: QMouseEvent)[source]
mouseReleaseEvent(self, e: QMouseEvent)[source]
keyPressEvent(self, e: QKeyEvent)[source]
keyReleaseEvent(self, e: QKeyEvent)[source]
changeEvent(self, e: QEvent)[source]
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_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

mousePressEvent(self, ev: QMouseEvent)[source]
mouseReleaseEvent(self, ev: QMouseEvent)[source]
keyPressEvent(self, ev: QKeyEvent)[source]
keyReleaseEvent(self, a0: QKeyEvent)[source]
mouseDoubleClickEvent(self, a0: QMouseEvent)[source]
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

mousePressEvent(self, e: QMouseEvent)[source]
mouseReleaseEvent(self, e: QMouseEvent)[source]
keyPressEvent(self, e: QKeyEvent)[source]
keyReleaseEvent(self, e: QKeyEvent)[source]
changeEvent(self, e: QEvent)[source]
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_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

mousePressEvent(self, e: QMouseEvent)[source]
mouseReleaseEvent(self, e: QMouseEvent)[source]
keyPressEvent(self, e: QKeyEvent)[source]
keyReleaseEvent(self, e: QKeyEvent)[source]
changeEvent(self, e: QEvent)[source]
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

Button for displaying HAL pin values.

resizeEvent(self, a0: QResizeEvent)[source]
update(self)[source]
update(self, a0: QRect) None
update(self, a0: QRegion) None
update(self, ax: int, ay: int, aw: int, ah: int) None
sizeHint(self) QSize[source]
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

initialize()[source]

This method is called right before the main application starts.

class qtpyvcp.widgets.hal_widgets.hal_bar_indicator.HalBarIndicator(parent=None)[source]

HAL Bar Indicator

Bar for indicating the value of float HAL pins.

Generated HAL Pins

HAL Pin Name

Type

Direction

qtpyvcp.bar-indicator.in-i

u32

in

qtpyvcp.bar-indicator.in-f

float

in

qtpyvcp.bar-indicator.min-val

float

in

qtpyvcp.bar-indicator.max-val

float

in

initialize()[source]

This method is called right before the main application starts.