From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(2,810 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,779 Views)

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

0 Kudos
Message 3 of 5
(2,767 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,750 Views)

You are awesome. Thank you. 🙂

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