LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean Crossing PtByPt VI

Solved!
Go to solution

Hi, I am new to LabVIEW and have try to use the Boolean Crossing PtByPt Vi as attached but it does not cross into the stage when I trigger the input. Can you advise? Thank you.

 

 Boolean PtByPt.jpg

0 Kudos
Message 1 of 5
(3,107 Views)

Looks like you are trying to capture the event of a boolean changing. Lucky for you there is a structure to help called an event structure.

See what happens when you make a vi like this:

Annotation 2019-12-13 212822.png

0 Kudos
Message 2 of 5
(3,067 Views)

Thanks, Steven

0 Kudos
Message 3 of 5
(3,043 Views)
Solution
Accepted by topic author glendale

@glendale wrote:

Hi, I am new to LabVIEW and have try to use the Boolean Crossing PtByPt Vi as attached but it does not cross into the stage when I trigger the input. Can you advise? Thank you.


You didn't attach a VI, you attached an image of the VI.

 

The crossing probably is detected, but your VI runs so fast (without a wait) that you won't be able to tell. The crossing is only true for one iteration, and that will last for <1 ms.

 

Run the VI with execution highlighting on. Or put a wait in the VI. Or make the loop stop if the condition it true.

 

Once you get the problem, step up to the suggested event driven solution.

0 Kudos
Message 4 of 5
(2,976 Views)

Thanks, Wiebe

 

Yes, I get to know where is my problem here, thanks for sharing.

 

TS

0 Kudos
Message 5 of 5
(2,955 Views)