LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with activation subVI

Solved!
Go to solution

Hello everybody!!!

 

Who tells me, why the subVi doesn't start pushing  ok botton??

 

Thanks a lot!!!!

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

Because the VI isn't running.

 

What are you trying to do here?  Is that VI a main VI?  If so, then the OK button makes no sense at all.  I would also highly recommend hitting the diagram cleanup since it is really hard to tell what is wired to what.


GCentral
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 2 of 3
(2,191 Views)
Solution
Accepted by topic author gmazza

This vi starts running and immediately stops. The OK button is not pushed at this time so nothing happens.

Add a While loop structure around your code and a STOP button to terminate it. Take the Wait out of the Case structure.

Then, when running the vi the loop will keep it alive until you press STOP.  Pressing OK during run will execute the code inside the Case structures.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 3 of 3
(2,172 Views)