Is there any workaround to get LabVIEW UI functions to fire on a headless BeagleBone Black runtime?
05-16-2025 07:44 PM - edited 05-16-2025 07:46 PM
Hi, I'm trying to run a simple VI on LabVIEW using LINX on Beaglebone Black. I have an event structure that returns the string "CLICKED!", activated by a start button, inside a while loop.
But I don't know why the Start button (switch when pressed) never activates the event structure, the data is stuck at its borders.
I would be thankful for any help.
I'm running LabVIEW 2020 community version, and the BBB is on Debian 10.3.
Solved! Go to Solution.
05-16-2025 11:52 PM
The Start button works OK for me. But the Stop button behavior is quite poor.
Take a look at my fix.
05-17-2025 04:27 AM
Thanks for the answer. The fix VI generally works when I open it directly as a file on LabVIEW.
But the same problem persists when I open it in the project to which the Beaglebone Black is connected.
05-17-2025 06:53 AM
The LabVIEW engine on an PI or BBB does not have a visible front panel.
The code is designed to run headless. So most functions regarding user interface do not work on these targets.
05-17-2025 07:53 AM - edited 05-17-2025 07:54 AM
Is there any workaround to get LabVIEW UI functions to fire on a headless BeagleBone Black runtime?
05-17-2025 09:02 AM - edited 05-17-2025 10:52 AM
@Mono132 wrote:
Is there any workaround to get LabVIEW UI functions to fire on a headless BeagleBone Black runtime?
Why would you need UI functions is there is no UI? Since there is no UI, there is no button, right?
An event structure is not needed and everything can be programmed without one. Initially, LabVIEW did not have event structures for decades.
Maybe take a step back and explain in more general terms what problem you are trying to solve. Are you trying to sense a digital input channel, for example? Just poll it at a reasonable rate!
I also recommend a few basic tutorials, one obvious flaw is that if the stop button is pressed, your linx resource becomes invalid (either up to 10 seconds later at the next timeout or if you do a stop event as suggested earlier) so the "close" will not work correctly. Also your start button (desktop UI) does not have a reasonable mechanical action.
05-18-2025 06:48 PM
You can only use the event structure with user events.
See Event Structure Support in LabVIEW Real-Time