LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How I can run two while loops independent of each other?

Solved!
Go to solution

I have two while loops, one for motor run and stop by arduino uno ,second for navigation between pages.

the problem is when i use only first program to run and stop motor it works but if  i put another while  loop of navigation the first while loop of motor didnot work.

how i can solve this problem?

Download All
0 Kudos
Message 1 of 4
(2,193 Views)
Solution
Accepted by topic author khalil95

You probably shouldn't have so many sequence structures, they're usually not necessary and are actually a hindrance. Can you post actual code (VIs) instead of screenshots?

Message 2 of 4
(2,182 Views)

@arteitle  ha escrito:

You probably shouldn't have so many sequence structures, they're usually not necessary and are actually a hindrance. Can you post actual code (VIs) instead of screenshots?


As arteitle said raplace the sequence structures with a State Machine Architecture.

Roger Garcia, Certified LabVIEW Developer

HTML tutorial

There are two ways to tell somebody thanks: Kudos and Marked Solutions
Message 3 of 4
(2,170 Views)

How to run two parallell loops? Place to independant Whiles.
Parallell loops.png

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 4 of 4
(2,158 Views)