LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure not running inside While Loop on LabVIEW BeagleBone Black

Solved!
Go to solution

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.

Mono132_0-1747441490294.png

 

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.

 

Mono132_1-1747441564883.png

 

I'm running LabVIEW 2020 community version, and the BBB is on Debian 10.3.

 

0 Kudos
Message 1 of 7
(312 Views)

The Start button works OK for me.  But the Stop button behavior is quite poor.

Take a look at my fix.

0 Kudos
Message 2 of 7
(278 Views)

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.

 

Mono132_0-1747473597480.png

 

0 Kudos
Message 3 of 7
(257 Views)

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. 

Message 4 of 7
(248 Views)

Is there any workaround to get LabVIEW UI functions to fire on a headless BeagleBone Black runtime?

0 Kudos
Message 5 of 7
(239 Views)

@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.

0 Kudos
Message 6 of 7
(227 Views)
Solution
Accepted by topic author Mono132

You can only use the event structure with user events.

See Event Structure Support in LabVIEW Real-Time

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
Message 7 of 7
(173 Views)