LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subtract values

Solved!
Go to solution

RIchard, here is something along the lines of scalability. for some reason you want to edit the buttons (bool text) to a different number in the future...the vi will handle those changes, as oppose to changing the constant...constantly  Smiley Wink

SubtractMOD_BD.png

Message 11 of 17
(942 Views)
Thanks for another solution.
One more question
How can I reset the subtracted value into original value everytime when the time passed midnight?
0 Kudos
Message 12 of 17
(919 Views)

Use a case structure or a select statement that passes the reset value into the shift register instead of the subtracted value.  You'll just have to work out the boolean conditions to determine that it is after midnight.

0 Kudos
Message 13 of 17
(915 Views)

OK...set up the timeout case to 100ms, then put your timer function with your reset.once the reset time and the current time are equal, bool out true to reset shift register. there might be a better way of doing this, but I can't think of any at this point. Any suggestions?

SubtractMOD[1][1].png

Message 14 of 17
(902 Views)

thanks Apok for being a big help! Smiley Happy

0 Kudos
Message 15 of 17
(866 Views)
Hello. I have a same problem too
There will be the list of values in array.
Then select a value to subtract.


I do not want to subtract the whole list at one time.
I just want to subtract one value from the list.
Please help. Thank .
0 Kudos
Message 16 of 17
(828 Views)

Considering what I've understood, Delete From Array function suits your needs.

Regards

Mondoni
0 Kudos
Message 17 of 17
(818 Views)