to close
The memory library is a VI package of low level Boolean memory vi’s that are built to allow for better code re-usability.
Pursuant with FRC Rule R13, FRC Team# 3937 has chosen this as their outlet to release code that is intended for reuse.
Below is an inclusive list of the vi’s included in the library and their function. All vi’s are configured so each instance has its own memory (if used multiple times, each time is completely independent of the others).
Edge Detector**
This vi can be used to detect the first time a signal becomes true, or false, or both. Its primary use is in conjunction with a joystick button and can be used to trigger an event on when the button is first pressed or similar using another mode.
SR Flip Flop
This vi implements a software version of the hardware JK Latch with an enable bit.
In short,
Summary of SR Flip Flop Operation | |||
---|---|---|---|
Set | Reset | Enable | Output |
False | False | Either | Previous Value (defaults to false, memory is retained) |
Either | Either | False | Previous Value (defaults to false, memory is retained) |
True | False | True | True |
False | True | True | False |
True | True | True | The opposite of the previous value |
Once Per Press:
Click here to download the latest version (we recommend uninstalling older versions before installing updates).
VI Package Manager required (likely already installed){:target=”_blank”}.
Changelog