From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Communications System Design Suite

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop two while loops in LabVIEW Communication with one stop button?

Solved!
Go to solution

Hi all,

Does anyone know how to stop two while loops in LabVIEW Communication with one stop button?

Thanks.

 

Best regards.

Olivia

0 Kudos
Message 1 of 4
(3,558 Views)
Solution
Accepted by yh10915

If you're using Communications 2.0 you can use a duplicate terminal in the second loop. I attached a project that shows an example of this.

 

To get a duplicate terminal you'll need to use a non-latched control (ex. a switch). Drop the accessor for that control on the block diagram, right click and create duplicate. You can now wire that to two stop conditions as shown below.

 

Code for this VI is attached.

 

Duplicate terminals created from right-click menu on block diagramDuplicate terminals created from right-click menu on block diagram

0 Kudos
Message 2 of 4
(3,524 Views)

Dear Adamarnesen,

 

Thanks a lot. It works very well for my system.

 

Best regards.

Olivia

0 Kudos
Message 3 of 4
(3,500 Views)

You also can use queuing. There is a simple example in the "learn" tab 🙂

0 Kudos
Message 4 of 4
(3,340 Views)