cancel
Showing results for 
Search instead for 
Did you mean: 

subtract values

SOLVED
Cool_Mark
Member
Solved!

subtract values

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

16 REPLIES 16
Trusted Enthusiast

Re: subtract values

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

RavensFan
Knight of NI

Re: subtract values

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.

crossrulz
Knight of NI

Re: subtract values

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



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
Cool_Mark
Member

Re: subtract values

Message contains an attachment

Sorry Smiley Sad

 

 

Highlighted
RavensFan
Knight of NI
Solution

Re: subtract values

Message contains an attachment

Shift Register.

 

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

Cool_Mark
Member

Re: subtract values

solved!

Thank u for taking time to help me!

Smiley Happy

apok
Active Participant

Re: subtract values

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...)

Cool_Mark
Member

Re: subtract values

yea

i'm still learning basic things Smiley Sad

apok
Active Participant

Re: subtract values


@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!