LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MASTER/SLAVE PATTERN: how to stop slave loop without stop main loop

Don't use a timeout on your dequeue. Only execute when you actually have something to work on.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 11 of 16
(868 Views)

The case structure connected with Dequeue has no "time out", could you tell me where can I change to solve the problem in the vi file I uploaded? Thank you very much! 

0 Kudos
Message 12 of 16
(865 Views)

See below where you are setting the dequeue timeout.

 

Dequeue timeout.PNG



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 13 of 16
(862 Views)

Hi Mark_Yedinak, I followed your advise and make this vi work. Thank you very much! But I got another problem. As you know, the uploaded program is a simplified one, and the real program has very complicated main loop. Now in my program, when I click the boolean buttin in the main loop (like "start/stop 3" button in my uploaded program), it cannot change the status and is kept in "False" state. Could you advise what is the possible cause for this kind of situation? Thank you very much!

0 Kudos
Message 14 of 16
(849 Views)

Without seeing the code I couldn't really give you any advise.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 15 of 16
(841 Views)

 i would send a notifier to your sub vi....

Spoiler
trigger and stop loop_BD.png
0 Kudos
Message 16 of 16
(831 Views)