LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get basic trigger to have constant true after trigger is detected? ver 8.2

I am using version 8.2 and I can not figure out how to make the 'basic level trigger dectection' VI to hold a constant true once the trigger is detected. 

Basically I will have a ramp input coming from a pressure transducer and going into the 'basic level trigger dectection' VI. Once the trigger is dectected (using rise slope), I want to hold that 'true' output until I reset the trigger.

Got any idea's?

0 Kudos
Message 1 of 4
(2,602 Views)
There are examples of this in the user contributed code section, if not in the LabVIEW shipping examples. Basically, you OR the value into a shift register, where the or inputs are the current trigger state and the previous value of the shift register. You have to clear the shift register to clear the trigger, so the VI ends up working like a functional global.
0 Kudos
Message 2 of 4
(2,594 Views)
I have tryed your suggestion and looked at examples but I can not get it to work, does anyone have an example?

Joe
using ver 8.2
0 Kudos
Message 3 of 4
(2,580 Views)
Hey Joe,
    Here's a quick example that I made up (in 8.20) .  It doesn't use that VI in particular, but shows what I think your desired behavior is.  This should lead you to a resolution.  I also included a screenshot of my block diagram for those customers not using the latest and greatest.



Brian B
Account Manager
National Instruments
Download All
Message 4 of 4
(2,569 Views)