06-21-2013 01:38 PM
Hello,
i'm new to labview & still learning how to use it
i'm putting "OK" buttons in the culster and unbundle it.
Every Ok buttons have their own values eg - fist button is 10, second button is 20, third button is 30
i want to subract these values from the Main constant value by clicking the desired button.
how can i subtract it without setting it back to the main constant value?
Thank for the help
Solved! Go to Solution.
06-21-2013 01:42 PM
Posting a VI of what you've attempted would be helpful.
06-21-2013 01:44 PM
It is difficult to understand what you are describing. It would be better if you'd attach the VI you have so far so we can see what it is you are trying to do.
Your sentence "without setting it back to the main constant value" makes me think you should be using a shift register, but you aren't familiar with that concept yet.
06-21-2013 01:49 PM
Can you share what you have? I'm having trouble understanding your issue.
06-21-2013 01:56 PM
Sorry
06-21-2013 02:03 PM
Shift Register.
There are also other ways to simplify the code instead of having 3 different case structures.
06-21-2013 02:10 PM
solved!
Thank u for taking time to help me!
06-21-2013 02:11 PM
It looks like you a starting out with case structures and while loop...This is OK and understandable in your position
there are other ways of doing this, but you may not know the concepts yet (for example event structures, arrays and maybe shift registers...)
06-21-2013 02:15 PM
yea
i'm still learning basic things
06-21-2013 03:40 PM
@RichardCool wrote:
yea
i'm still learning basic things
nothing wrong with that....
we all were there and....we are still learning, hopefully!