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).
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.
|Summary of SR Flip Flop Operation|
|False||False||Either||Previous Value (defaults to false, memory is retained)|
|Either||Either||False||Previous Value (defaults to false, memory is retained)|
|True||True||True||The opposite of the previous value|
Once Per Press: