LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS Flip flop

How can I realize a RS flip flop without sequential loop ???
0 Kudos
Message 1 of 3
(7,812 Views)
Hi,
as pointed out at http://www.shef.ac.uk/~phys/teaching/phy107/srff.html
you have a situation with a RS flip flop that it can enter an unstable state before it settles out. That's the nature of the circuit design.
I've attached a .vi which can be used as a sub.vi to emulate the RS flip flop. It relies on an uninitialised shift register to maintain the data in Q.
If you need multiple RS flip flops, you'll need multiple of these .vi's. (suggest you look at .vit's - vi template files, and use VI server to create multiple in memory).
I guess you could always use a boolean control off to one side to represent this - you take the state of the boolean now, and if you send a reset, then you clear it (set it to false) if you send a set, you set it, if you send
neither, you leave it at its current value.


Hope that helps

S.
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 2 of 3
(7,812 Views)
McLeeuwin wrote in message news:<506500000008000000115B0000-1027480788000@exchange.ni.com>...
> How can I realize a RS flip flop without sequential loop ???

I'm not sure what you mean by sequential loop, but you will need a
loop of some form with a shift register on it to store the internal
state of the "flip-flop". Obviously, to make the resulting subVI
reusable in multiple locations, you'll need to make it reentrant.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(7,812 Views)