Page 1 of 2

Butzer does not go out again

Posted: Thu Jun 24, 2021 10:10 am
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

Re: Butzer does not go out again

Posted: Thu Jun 24, 2021 3:24 pm
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?

Re: Butzer does not go out again

Posted: Thu Jun 24, 2021 7:07 pm
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

Re: Butzer does not go out again

Posted: Fri Jun 25, 2021 8:00 am
by SpeedPIC32
Buzzer.fcfx
(6.76 KiB) Downloaded 531 times

Re: Butzer does not go out again

Posted: Fri Jun 25, 2021 8:57 am
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.

Re: Butzer does not go out again

Posted: Fri Jun 25, 2021 10:51 am
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.

Re: Butzer does not go out again

Posted: Fri Jun 25, 2021 11:14 am
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.

Re: Butzer does not go out again

Posted: Fri Jun 25, 2021 7:38 pm
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

Re: Butzer does not go out again

Posted: Fri Jun 25, 2021 11:27 pm
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.

Re: Butzer does not go out again

Posted: Sat Jun 26, 2021 1:36 pm
by SpeedPIC32
hi medelec35

it's ok now

Question: How can I thank someone in the forum?

Greeting SpeedPic32