LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Value (signaling) property for event--button press on joystick

Solved!
Go to solution

Hi Ed,

 

an IMPLIES is not an OR... See the (detailed) help for the truth table! (It gives you a FALSE on the rising edge as shown by Altenbach in it's snippet: "Event triggered" is wired to the FALSE input of the select function.)

But you could still use my suggestion using the compound function to apply a (X AND NOT Y) function to detect a rising edge by outputting a TRUE...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 21 of 25
(1,317 Views)

 


EMotts wrote:

I couldn't get the "Implies" function to work for me--I think because it is basically an Or function, it was continuously triggering the event, and the LED was blinking.  Not exactly what I wanted. 


 

You did somethings wrong. Please show us your code.

(Remember the a FALSE output of the implies function indicates that FALSE-to-TRUE condition has occurred.)

0 Kudos
Message 22 of 25
(1,308 Views)

Maybe sticking with the more basic logic funtion like 'Greater Than' 'Less Than' and 'Not Equal' will be easrier for you get the effect you wish.  

 

EdgeDetect.png

Omar
0 Kudos
Message 23 of 25
(1,294 Views)

Altenbach,

 

Okay, I see the problem with my code.  GerdW pointed it out, too, but I missed it in my quick reading over breakfast this morning.  Your example would trigger the event on the False case of the Implies function. 

 

When I put my Value (Signaling) node into the False case of the case structure, it triggers the event correctly.

 

Thanks again to all who contributed.  Ed

 

 

Edward Motts
Certified LabVIEW Associate Developer
0 Kudos
Message 24 of 25
(1,281 Views)

Thanks Omar

0 Kudos
Message 25 of 25
(1,007 Views)