11-26-2021 11:26 AM
I want to add +1 to the variable value when the boolean changes.
for example like boolean ( off -> on ) just one time i want add +1 at my value
( on -> off) or ( off -> on) when this change , one time add + 1
thanks help me
i saw some about for it ( like use "feedback node" or " shift " )
but i dont know how use for my problem
11-26-2021 12:25 PM
Hi morong,
@morong wrote:
i saw some about for it ( like use "feedback node" or " shift " ) but i dont know how use for my problem
Did you notice those "Training resources" offered at the top of the LabVIEW board?
It seems you could use them…
@morong wrote:
I want to add +1 to the variable value when the boolean changes.
for example like boolean ( off -> on ) just one time i want add +1 at my value
( on -> off) or ( off -> on) when this change , one time add + 1
Read the help for the PtByPt-BooleanCrossing function.
Then you just need to add a select node and a shift register in your loop…
11-27-2021 11:06 AM - edited 11-27-2021 06:53 PM
@morong wrote:
i saw some about for it ( like use "feedback node" or " shift " )
but i dont know how use for my problem
As has been said, the training resources are a good start. Show us what you tried and where you got stuck!
If you already "saw" a solution somewhere here, it would help if you give us the link so we can tell you if it is a reasonable solution. There are plenty of old discussions with examples, because this is a recurring beginner problem. (For example does this make sense to you?)
11-29-2021 08:08 AM
It's also relevant what this 'Boolean' is.
Is it a Boolean control? Or a digital DAQ signal?