Physical Latch Switch Logic in LabVIEW FPGA

Updated Jun 15, 2018

Reported In

Software

  • LabVIEW
  • LabVIEW FPGA Module

Issue Details

I am looking to get some ideas on how to turn a physical momentary (latch) switch into an on/off switch that changes states upon every press. 

Solution

You can store data in shift registers or use a feedback node to store a Boolean value in memory, and flip the value with the 'Not' function every time the switch is pressed:
 
You can look at the attached VI for one example of how to do this.

Attachments