03-02-2012 04:27 PM
how could i control the execution of a code with a timed loop in lavbview with a start bottom on my front panel? i don´t want to use normal start and stop bottoms which i have up of my code of labview
i just want to create a bottom conected to my timed loop and control de excution of my code
thanks
03-02-2012 04:37 PM - edited 03-02-2012 04:40 PM
You VI should always be running. All you need is a state machine with ain idle case and a case that runs the timed loop. If the VI is not running, it cannot react to controls on the front panel. (except in rare cases)
I don't know what a "bottom" is (actually I do, but it has many meanings ;)), but you can use a simple boolean button to switch between states.
03-02-2012 04:52 PM
i attached the code which i am running, i tried to put this code inside a case structure with a boolean control but the code didn´t work
i want to do it,because for example when i am runnig the code,i would like to reset the value of the indicator called contador' when i push a bottom, 'without stopping the code
03-02-2012 05:57 PM
Put the addition inside the FALSE case and place a zero diagram constant inside the TRUE case.
03-05-2012 06:11 AM
i got it,but when i tried to run the code again, the indicators start running since the value which they had when i stopped the code.
i would like that they start since value equal to 0 when i run the code again
how could i do it?
thanks
03-05-2012 10:41 AM
ok no problem,i could do it myself
i just needed to restart the values=0 when i have the false case
thanks for your help