LabVIEW Communications System Design Suite

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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

Solved!
Go to solution
Highlighted

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

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
(1,057 Views)
Solution
Accepted by topic author yh10915
08-10-2017 05:44 AM

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

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.

 

dupterm.pngDuplicate terminals created from right-click menu on block diagram

0 Kudos
Message 2 of 4
(1,023 Views)

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

Dear Adamarnesen,

 

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

 

Best regards.

Olivia

0 Kudos
Message 3 of 4
(999 Views)

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

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

0 Kudos
Message 4 of 4
(839 Views)