LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update HMI VI while looping another VI

Good afternoon,

 

I'm trying to separate a VI in two parts : one doing a long process, the other showing gradually to the user the results of this process but I want to let the user cancel the process at any time. How can I do this ? I tried to call the HMI VI with an event structure IN but it's blocking the process. I also looked to do an asynchronous call but it doesn't helped me that much.

 

Schématisation_Affichage des résultats au fur et à mesure.png

 

Knowing the interface is extremely simple and won't do complex tasks, it look like this :

 

interface simple_automatisation acquisition.png

 

Thank you in advance for your attention.

0 Kudos
Message 1 of 3
(2,285 Views)

Hi Martial,

 

learn about using queues and notifier (or wire channels), then place "process" and "HMI" into their own loops…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,281 Views)

@GerdW wrote:

learn about using queues and notifier (or wire channels), then place "process" and "HMI" into their own loops…


I would like to also add User Events to this list.  I use User Events to pass data from the process loops to the HMI loop (which is mostly an Event Structure already).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,260 Views)