LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

run timed loop with a bottom

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

0 Kudos
Message 1 of 6
(2,865 Views)

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.

0 Kudos
Message 2 of 6
(2,862 Views)

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

0 Kudos
Message 3 of 6
(2,856 Views)

Put the addition inside the FALSE case and place a zero diagram constant inside the TRUE case.

0 Kudos
Message 4 of 6
(2,847 Views)

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

 

0 Kudos
Message 5 of 6
(2,814 Views)

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

0 Kudos
Message 6 of 6
(2,802 Views)