Timer interval and Timer - problem

Any bugs you encounter with Flowcode should be discussed here.
LeighM
Valued Contributor
Posts: 401
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 73 times
Been thanked: 218 times

Re: Timer interval and Timer - problem

Post by LeighM »

1) Help -> Library Updates
2) Add a Timer component macro to your project

timer.jpg
timer.jpg (38.53 KiB) Viewed 157 times

Note: Timer component is not needed for simple Delay icon.

BenR
Matrix Staff
Posts: 1753
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 445 times
Been thanked: 605 times

Re: Timer interval and Timer - problem

Post by BenR »

Hello,

In both programs you posted you are not calling any of the component macros of the timer component. This as I said is problematic.
As you're not calling any of the component macros that can cause problems in the code generation.
Aha Leigh beat me to it :)

DStoyankov
Posts: 12
Joined: Sun Feb 26, 2023 12:44 pm
Been thanked: 1 time

Re: Timer interval and Timer - problem

Post by DStoyankov »

Thanks! Only with Timer it worked. After I added a timer interval again error
Attachments
Flowcode3.msg.txt
(2.93 KiB) Downloaded 14 times
Flowcode3.fcfx
(10.95 KiB) Downloaded 12 times

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 73 times
Been thanked: 218 times

Re: Timer interval and Timer - problem

Post by LeighM »

You could do with exploring the Help -> Wiki -> Components search
Then ensure you have set the component properties.
For example, for the TimedInterval component you need to set a callback macro (that runs at the timed interval)

DStoyankov
Posts: 12
Joined: Sun Feb 26, 2023 12:44 pm
Been thanked: 1 time

Re: Timer interval and Timer - problem

Post by DStoyankov »

Thanks! Everything is OK

Post Reply