LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Little problem with event structure.

Solved!
Go to solution

I have a program who generate number values. Almost everything is ok, but if i click something from menu, values are generated and app run one times (values are displayed). Why this is happen and how solve this problem. I think is something wrong with timeout. I cant upload my menu config 😕 Example is when i click OK button. Why program is running?

Download All
0 Kudos
Message 1 of 5
(3,003 Views)

Something that will help you a lot is to turn off the "Use Default If Unwired" on all of your output tunnels except for the stop condition.  You could also use the Linked Tunnels feature to help you wire your timeout through all of your cases.

 

What is happening is you have nothing wired for the timeout in the menu selection event case.  So the timeout for the next iteration is 0.  This is causing the Start/Stop Value Change;Timeout event case to run immediately.


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 5
(2,972 Views)

So i should write -1 in output? Like this?

0 Kudos
Message 3 of 5
(2,960 Views)
Solution
Accepted by topic author crisdragon

The -1 would set the timeout to infinity.  So I imagine that is what you want.


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 4 of 5
(2,943 Views)

You are awesome. Thank you. 🙂

0 Kudos
Message 5 of 5
(2,938 Views)