LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

when boolean is change , i want add value

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

 

 

0 Kudos
Message 1 of 4
(953 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(940 Views)

@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?)

0 Kudos
Message 3 of 4
(907 Views)

It's also relevant what this 'Boolean' is.

 

Is it a Boolean control? Or a digital DAQ signal?

0 Kudos
Message 4 of 4
(883 Views)