Resetting the TIMER1 component does not work

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Carmelo
Posts: 64
http://meble-kuchenne.info.pl
Joined: Thu Oct 14, 2021 10:04 am
Has thanked: 21 times
Been thanked: 2 times

Resetting the TIMER1 component does not work

Post 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?
Attachments
Timer_1.fcfx
(20.26 KiB) Downloaded 123 times
timer1.png
timer1.png (58.45 KiB) Viewed 2533 times

medelec35
Matrix Staff
Posts: 1560
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 555 times
Been thanked: 514 times

Re: Resetting the TIMER1 component does not work

Post 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
Attachments
Timer.fcpx
(11.53 KiB) Downloaded 130 times
Martin

Carmelo
Posts: 64
Joined: Thu Oct 14, 2021 10:04 am
Has thanked: 21 times
Been thanked: 2 times

Re: Resetting the TIMER1 component does not work

Post 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.

medelec35
Matrix Staff
Posts: 1560
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 555 times
Been thanked: 514 times

Re: Resetting the TIMER1 component does not work

Post 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
Martin

Carmelo
Posts: 64
Joined: Thu Oct 14, 2021 10:04 am
Has thanked: 21 times
Been thanked: 2 times

Re: Resetting the TIMER1 component does not work

Post 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.

Post Reply