ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numerical Inputs reset to 0 when while loop stops. Snippet attatched

Solved!
Go to solution

vi snip.png 

Could some one please tell me how I make my numerical inputs down the left hand side reset to 0 when the while loop gets its stop signal?

Much Much appreciated

0 Kudos
Message 1 of 7
(3,876 Views)
Solution
Accepted by topic author metsystemalex
Here's an easy way to do it.

reset.png

PS - If I had LV2009 I'd download that snippet and make it a lot simpler, or die trying. 🙂
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 7
(3,860 Views)

Simple counting reveiles, that you could use an 4x6 array. You can simplify the comparisons by using the polymorphism of the Equal primitive (yes, they work for arrays: right click to select if you want a boolean array out for each element or a single boolean if all elements are equal).

 

And very important: The equals might fail! Use I32 as inputs. The doubles might not be equal in the last digits because of numerical errors, hence you might evaluate 3=3->false (one is 2.9999876 and the other 3.00000123).

 

Felix

0 Kudos
Message 3 of 7
(3,857 Views)
PLEASE STICK TO ONE THREAD. This is the third thread you've created on this same subject. Original thread.
0 Kudos
Message 4 of 7
(3,848 Views)

 

First of all apologies for posting multiple threads. I feel like i have broken a cardinal rule of the forum.

 

Secondly could you please tell me what and where i can find those instructions inside your flat sequence snippet.

 

cheers

0 Kudos
Message 5 of 7
(3,840 Views)

Everything is on the Application Control palette.

 

When you drop the  Invoke Node onto the diagram, right click on it anddo 'Select Class>VI Server>VI>VI'> Then right click againon it and select 'Methods>Default Values>Reinitialize All to Default'.

0 Kudos
Message 6 of 7
(3,819 Views)

metsystemalex wrote:

 

Secondly could you please tell me what and where i can find those instructions inside your flat sequence snippet.

I did not have a flat sequence snippet. That's an event structure, and I explicitly told you in the response how to create the invoke nodes.

0 Kudos
Message 7 of 7
(3,801 Views)