Butzer does not go out again

Any bugs you encounter with Flowcode should be discussed here.
SpeedPIC32
Posts: 261
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Butzer does not go out again

Post by SpeedPIC32 »

Hello,

Small error in the simulation.
Start a new project, processor not important.
Choose an output.
Set only Butzer or nothing else and start the simulation and then end the simulation.

have fun :D :lol:
SpeedPic32

Steve-Matrix
Matrix Staff
Posts: 1509
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 211 times
Been thanked: 350 times

Re: Butzer does not go out again

Post by Steve-Matrix »

Thanks, but I'm not sure I understand (and I don't know what "Butzer" is). Can you attach a program, list the exact steps and explain what the error is please?

SpeedPIC32
Posts: 261
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: Butzer does not go out again

Post by SpeedPIC32 »

hello,

this is a typo on my part, sorry. :oops:
I mean buzzer.

I mean a debugging error.
If the debugging stops or aborts then it should really do that.
Actually you don't do it like I did, but you should change it I think.
Debugger off and all states that are only simulated on the computer should then also be off. In this particular case I had to close FC9 first.
Meanwhile I know how to do it.
You rewrite the software and debug it again.

See Programme Buzzer



have fun
SpeedPic32 :P

SpeedPIC32
Posts: 261
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: Butzer does not go out again

Post by SpeedPIC32 »

Buzzer.fcfx
(6.76 KiB) Downloaded 530 times

medelec35
Matrix Staff
Posts: 1988
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 660 times

Re: Butzer does not go out again

Post by medelec35 »

Hi SpeedPic32,
I agree that the buzzer should go off when simulation has stopped.
There is a workaround.
There is an event simulation stop you can use to turn the buzzer off when the simulation has stopped.
To add the Event, you select the EV icon within Project explorer.
Expand Simulation, then double click Stop, double click Add New on the popup window, select OK on the next popup window, then select OK again.
A new function macro will be set. I just added BuzzerOff in that.
Attachments
Buzzer.fcfx
(7.68 KiB) Downloaded 543 times
Martin

Steve-Matrix
Matrix Staff
Posts: 1509
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 211 times
Been thanked: 350 times

Re: Butzer does not go out again

Post by Steve-Matrix »

Thanks for the explanation, SpeedPic32. And thanks for the fix, Martin.

I'll ask Ben to see if it is worth having the stop simulation event trapped by the component itself.

BenR
Matrix Staff
Posts: 1940
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times

Re: Butzer does not go out again

Post by BenR »

Hello,

Yes thanks for letting us know. I have now added a sim stop event to the component which should stop the buzzer from sounding.

I'll push out the new component to the update system later today.

SpeedPIC32
Posts: 261
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: Butzer does not go out again

Post by SpeedPIC32 »

hello Team ,
unfortunately this is only a 4 according to school grades
The software has only two commands
1. buzzer on
2. 2sec Wait
The simmulation stops, ...good.
Now comes the new error.
When I start the same simulation for the second time, there is no sound.
I have to close the software, then it only works once again.
If I add BuzzerOff as a third time, the simulation runs well and again.

Greetings to the team
Even if I get on your nerves with this, FC9 is getting better.
SpeedPic32

medelec35
Matrix Staff
Posts: 1988
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 660 times

Re: Butzer does not go out again

Post by medelec35 »

Hi SpeedPic32
For now can you try something?
In file explorer address bar, paste this:

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV9\Components
Extract the component within the attached zip file and save it into the above hidden folder.
Just select ok to replace the current file.
If you got Flowcode loaded when file was placed the components directory, you must select the reload icon before compiling again.
Attachments
Buzzer.zip
(3.67 KiB) Downloaded 537 times
Martin

SpeedPIC32
Posts: 261
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: Butzer does not go out again

Post by SpeedPIC32 »

hi medelec35

it's ok now

Question: How can I thank someone in the forum?

Greeting SpeedPic32

Post Reply