Probe Basic - HAL pins not being created
- spumco
- Away
- Platinum Member
-
Less
More
- Posts: 2131
- Thank you received: 886
28 Aug 2026 03:24 #349068
by spumco
Probe Basic - HAL pins not being created was created by spumco
Now that I've got the user tabs, ATB buttons, and user DRO showing up, the next snag is creating hal pins.
I added some hal LED indicators to my custom DRO panel, but they aren't being created when LCNC/PB is started. At least they don't appear in halshow.
Dragged & dropped a HalLedIndicator in the panel
edited the object name
edited the pinBaseName
Just trying to get an on-screen indicator of an "is-homed" status.
I remember running in to this issue a few years ago - that time I was missing the lines in custom_config.yml:
I added the above under data_plugins: but still no joy.
Do I need to add this:
To the dros_user.py file somewhere?
I added some hal LED indicators to my custom DRO panel, but they aren't being created when LCNC/PB is started. At least they don't appear in halshow.
Dragged & dropped a HalLedIndicator in the panel
edited the object name
edited the pinBaseName
Just trying to get an on-screen indicator of an "is-homed" status.
I remember running in to this issue a few years ago - that time I was missing the lines in custom_config.yml:
exportedhal:
provider: qtpyvcp.plugins.exported_hal:ExportedHalI added the above under data_plugins: but still no joy.
Do I need to add this:
from qtpyvcp import hal
# create a new component and add some pins
comp = hal.getComponent("loop-back")
comp.addPin("in", "float", "in")
comp.addPin("out", "float", "out")
# mark the component as 'ready'
comp.ready()
# define a function to call when the input pin changes
def onInChanged(new_value):
# loop the out pin to the in pin value
comp.getPin('out').value = new_value
# connect the listener to the input pin
comp.addListener('in', onInChanged)To the dros_user.py file somewhere?
Please Log in or Create an account to join the conversation.
Moderators: KCJ, Lcvette
Time to create page: 0.083 seconds