12-13-2012 02:24 AM - edited 12-13-2012 02:47 AM
Im working with Luminary Micro Evaluation Board (LM3S8962). In a case structure One case Clears screen when select button is pushed. I would like to make it so it also Stops the program when the same button is pushed for a period of time....Lets say 5 seconds.....But if the select button is not pushed and held then it just clears screen and keeps running. I cant seem to figure out how to use the Elapsed Time VI correctly or maybe there is another way..??? Also What I've tryed with the Elapsed time VI it seems to pick up where it left off as far as counting so by the time I push select lets say 3 times (eventhough push and release) it returns a true. Can anyone help?
12-13-2012 02:50 AM - edited 12-13-2012 02:51 AM
I did this with an event structure, a timer "state" enum passed by shift register on the surrounding while loop and the following events:
With this method you would have to make sure you pass the timer state enum in every event.
12-13-2012 04:17 PM
Im an electronics student and I just got started with Labveiw so everything is still pretty confusing. I opened up an event structure but as I started disecting it and reading about it I became Very lost. If you dont mind, Can you break it down like your talking to a four year old :). Do I use the event structure outside of the case structure? Do i use it in the same case as the reset button or make another case??? What terminals do I need to connect to what....... I was up reading about the parts of the Event structure which seemed to get me nowhere because I needed to know what the other things are that are involved. What I am building is an Etch-a-Sketch to run on an ARM controller OLED. Everything works except this stop button Idea.
12-13-2012 06:11 PM - edited 12-13-2012 06:18 PM
Here you go (LV2012).
12-13-2012 10:05 PM - edited 12-13-2012 10:06 PM
I noticed a slight performance problem in the program I posted. Move the "Select" control in the block diagram from the Timeout case to the Value Change case. It will be more responsive.