hello, i am working in a counter,to know the falling edges of a digital signal but i have a problem at the input of the main case structure(the code is attached)
when the boolean control is false the code isn´t executed OK!
(*) when the boolean control is true,the code is exectued. OK! and the indicators 'contador'(counter) and 'tiempo ejecucuion del bucle'(time which the code is running) start to 0. OK!
but when the code is running, i want to stop the program to know the value of the indicators when the execution time is 60seg, but it doens´t happen because the code start to execute again with the inicators from value equal to 0, therefore i can´t to know the values of the indicators at time equal to 60seg
later i want to execute the code again like in (*).
The counter works perfect.
I need the boolean control because later i will have another code being executed continuously with this counter code(executed about the state of the boolean control)
could somebody help me with this? i hope that all is clear explained
thanks!