LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting Boolean Transition

Hi. I'm new to labview. I have managed to do a boolean transition and it works. But now I want the boolean 3 true and the false 3 to count as 1. I thought it would be easy but haven't figured a way to do it.

0 Kudos
Message 1 of 2
(788 Views)

Hi nasha,

 


@User002 wrote:

Hi. I'm new to labview. I have managed to do a boolean transition and it works. But now I want the boolean 3 true and the false 3 to count as 1. I thought it would be easy but haven't figured a way to do it.


Whatever you have "managed": we cannot see it!

Why don't you attach your current VI? (Suggestion: when using a recent version of LabVIEW you should use "File->Save for previous" to attach a LV2019 version of your VI.)

 

When you want to count boolean transitions you need to detect them:

  1. compare the current state of the boolean with its previous state
  2. use the PtByPTBooleanCrossing function, which does the very same…
Best regards,
GerdW


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