LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Little problem with event structure.

Solved!
Go to solution
Highlighted

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
(1,248 Views)
Highlighted

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
0 Kudos
Message 2 of 5
(1,217 Views)
Highlighted

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

0 Kudos
Message 3 of 5
(1,205 Views)
Highlighted
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
0 Kudos
Message 4 of 5
(1,188 Views)
Highlighted

You are awesome. Thank you. 🙂

0 Kudos
Message 5 of 5
(1,183 Views)