03-10-2013 10:20 AM
I have started to learn something with hardware (cRio starter kit). I want to implement what is called "memory" in motor control that is when I press a push button (PS1), the LED (LED1) will change its state and stay until PB1 is pressed again. I tried to implement it but failed completely. It should be done with a register but I just could not keep it from blinking.
Solved! Go to Solution.
03-10-2013 12:11 PM - edited 03-10-2013 12:20 PM
Hi muahang,
use a shift register to keep the previous state of the button. Compare the current state of the button with it's previous one. When you detect a rising edge you invert the boolean value of a second shift register. Write the boolean from the second shift register to your LED...
Keywords: boolean, rising edge detection, shift register
03-10-2013 12:54 PM
Thank you very much. I never thought about using the second shift register to achieve it.
03-10-2013 01:09 PM
07-09-2014 05:52 AM
Dear GerdW,
I can't see the picture. Can you share it again?
07-09-2014 05:57 AM
07-09-2014 07:25 AM
🙂 Thank you very much. I am new at Labview so I can't visualize it