LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subtract values

Solved!
Go to solution

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

0 Kudos
Message 1 of 17
(3,866 Views)

Posting a VI of what you've attempted would be helpful.

0 Kudos
Message 2 of 17
(3,857 Views)

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.

0 Kudos
Message 3 of 17
(3,856 Views)

Can you share what you have?  I'm having trouble understanding your issue.


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 17
(3,852 Views)

Sorry Smiley Sad

 

 

0 Kudos
Message 5 of 17
(3,840 Views)
Solution
Accepted by topic author Cool_Mark

Shift Register.

 

There are also other ways to simplify the code instead of having 3 different case structures.

Message 6 of 17
(3,832 Views)

solved!

Thank u for taking time to help me!

Smiley Happy

0 Kudos
Message 7 of 17
(3,823 Views)

It looks like you a starting out with case structures and while loop...This is OK and understandable in your position Smiley Wink

 

there are other ways of doing this, but you may not know the concepts yet (for example event structures, arrays and maybe shift registers...)

0 Kudos
Message 8 of 17
(3,820 Views)

yea

i'm still learning basic things Smiley Sad

0 Kudos
Message 9 of 17
(3,813 Views)

@RichardCool wrote:

yea

i'm still learning basic things Smiley Sad


nothing wrong with that.... Smiley Happy

we all were there and....we are still learning, hopefully!

0 Kudos
Message 10 of 17
(3,786 Views)