ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Clickable Picture Inside Message Handling Loop

I am trying to add the attached VI into the message handling loop of a larger VI. It appears that despite a while loop around the VI within the message handling loop, I am locked out of the front panel on my main VI. I also took everything directly out of this VI, put it directly into a while loop inside the message handling loop and I was still unable to make it work.

 

Goals:

 

- Run after completing a previous message initiated sequence of events including clicking a button to end that sequence

- Run in a loop, allowing the user to click on pixels until the user clicks the end button

- Upon ending, the coordinates are pass out.

 

Any help is appreciated. I have not yet found a work around.

 

It appears that:

- either I record my last mouse click on the button to end my previous message initiated events

- time out occurs consistently in the while loop and a down click is never recognized

- everything passes through the "timeout" event and the program continues

- I am entirely locked out of everything on the front panel

0 Kudos
Message 1 of 2
(1,301 Views)

CatDoe_0-1663612065938.png

Screenshot of the code inside the message handling loop. After waiting, the event loop immediately triggers a Boolean in the timeout event. This happens at the same time I am locked out of the front panel...

 

0 Kudos
Message 2 of 2
(1,266 Views)