LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Mechanical Actionon for LM3s8962 buttons

I am working on controlling some parameters of my control system using the buttons on my LM3S8962 Board.  Does anyone know how to adjust the mechanical action for the buttons to "Latch when Pressed"  I have looked around but have yet to find something that will work. 

 

Thanks.

 

 

0 Kudos
Message 1 of 2
(5,504 Views)

Tilgath,

 

From your post, I understand you to be referring to the mechanical action of the physical push buttons soldered onto the LM3S8962 evaluation board.  If this is the case, you only have the option of using what physical hardware you have on the board.  If you want a push button to act like a latching button, you would have to write code that performs this operation.  You might code the following:

1) detect when the physical button is pushed

2) set a variable (or shift register) with the new button value

3) read from this variable in your code (instead of from the physical button)

4) when you read from the variable, clear the value

 

By introducing a variable in software, you can simulate a latching mechanical action for your hardware switch.

 

Kevin S.

Applications Engineer

National Instruments

0 Kudos
Message 2 of 2
(5,495 Views)