Page 1 of 1
Resetting the TIMER1 component does not work
Posted: Tue Jul 09, 2024 11:20 pm
by Carmelo
Hello,
I attach a file where I believe that the reset of the timer 1 component does not work.
In the program, after the start of the counter, it sets its value to 0.
After the specified time has passed, I stop the counter and reset the counter variable and also place the "ResetCounter" block. This is correct.
On the second startup with "StartCounter" when passing through the "GetCountSecond" block, I observe (see attached screenshot) that the value that appears in the timer 1 component does not start counting again from 0. It continues counting from last value it stopped at.
In the "StartCounter" block I have selected "ResetCounters=1"
But no reset occurs
This is correct?
Re: Resetting the TIMER1 component does not work
Posted: Wed Jul 10, 2024 8:38 am
by medelec35
Hello.
I also think it should, therefore I have changed the component, so it does.
To try the component.
Browse to this location using file explorer , it's hidden by default so just paste the link into your address bar.
Code: Select all
%ProgramData%\MatrixTSL\FlowcodeV10\Components
Place the attached component.
If Flowcode is already open, then you will need to reload your project for the new component to work
If you run any component updates, then the component you added will be overwritten, so it will stop working again (unless the component update has been pushed).
Also, within your flowchart Decision branch you are using
AND which is bitwise AND.
You will be best using
&& instead as that is logical AND
Re: Resetting the TIMER1 component does not work
Posted: Wed Jul 10, 2024 11:40 am
by Carmelo
Martin,
Acabo de realizar lo que me has dicho en el post y funciona correctamente. Pero.....
Al volver a ejecutar Flowcode me salta la nueva actualización del componente "timer".
Lo actualizo, pero no funciona la actualización sigue como al principio.
Asi que he vuelto a realizar lo comentado en tu post y vuelve a funcionar.
Creo que se debería de informar de este hecho para que se corrija en una nueva actualización.
Re: Resetting the TIMER1 component does not work
Posted: Wed Jul 10, 2024 2:39 pm
by medelec35
Hola.
Mi publicación dice
Si ejecuta alguna actualización de componentes, el componente que agregó se sobrescribirá, por lo que dejará de funcionar nuevamente (a menos que se haya enviado la actualización del componente).
No vale la pena forzar el componente hasta que esté satisfecho con él.
Ahora que ha indicado que funciona, solicitaré que se envíe al sistema de actualización.
Hello.
My post states
If you run any component updates, then the component you added will be overwritten, so it will stop working again (unless the component update has been pushed).
It is not worth pushing the component until you are happy with it.
Now you have stated it works, I will ask for it to be pushed to the update system
Re: Resetting the TIMER1 component does not work
Posted: Wed Jul 10, 2024 3:13 pm
by Carmelo
am not forcing the component, it simply receives its update from the update system and when I tried it it did not work so I had to overwrite the one I attached in the post again.
It would be advisable to report this detail to the update system.