LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to design a simple binary one-shot

Solved!
Go to solution

I need a simple binary one-shot that when a signal becomes true, a new value goes True for one evaluation and does not get re-triggered until the original signal becomes false and then true again. I have tried many ways and either the wait for the signal to go false again locks up the loop or the trigger remains true and causes the logic to keep on processing.

0 Kudos
Message 1 of 9
(6,207 Views)

Can you post an image of what you have tried, preferably in .png format? Or attach your code attempts, ID'ing what version of LabVIEW. 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 9
(6,202 Views)

I'll ask for the obvious - can we have a look at the code? either attached VI or a screenshot?

 

I'm confused by what you're trying to do. I'm getting the impression that the signal varies over time between true and false, and that the other is a trigger, so a short burst of true at the moment the signal goes to true, then only returns to true once the signal has gone from true to false to true again?

0 Kudos
Message 3 of 9
(6,196 Views)

You don't need to design one - the folks at OpenG have already done it with the Boolean Trigger.vi.

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 9
(6,190 Views)

Consider a shift register and the boolean Implies function (plus, possibly, an inverter).

 

Lynn

0 Kudos
Message 5 of 9
(6,189 Views)
Solution
Accepted by topic author ITElearner

Rising Edge.png

Omar
Message 6 of 9
(6,172 Views)

Thank you for comming up with such a simple and easy to use solution!

0 Kudos
Message 7 of 9
(6,157 Views)

Dear All,

 

 

I read this a lot on the forum: "I am only just starting, so please go gently on me". But I gues it's true for a lot of people, also for me. After trying to start using this programm for already 5 years, average able to practise it for 4 hours a week, I am still feeling like a starter. I also followed the basics course at NI. But to get better results is very difficult still. I am really start to feeling like it is almost impossible, if you haven't an experienced mentor as a colleague. One of the major practical problems I experience, is when I try to use small pieces of code, like for instance this one (to build a one-shot into my boolean control part of coding) , is when I find a picture like this. So I recognize all building blocks, except for the "arrow" block in the lower boolean line in front of the "greater than" building block. I just don't know how to find it in my building block's since I don't know the name, and it does not appear in any off my blocks. Is there a solution for this? Anyone who knows a solution would help me a great deal.

 

 

 

Sincere Regards, Theo

0 Kudos
Message 8 of 9
(5,110 Views)

Hi Theo,

 

Feedback Node…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 9
(5,085 Views)