Page 1 of 1

Fowcode V4.5 Freeze

Posted: Fri Oct 07, 2011 8:17 pm
by sotos
Hi
Another annoying isue with Flowcode v4.5 .
When i try to simulate ( a very simple project ) << as fast as posible >> the program
stop to responding and its impossible to do nothing , the only way is to use the task manager
to stop and close the program .


:( :( :(

Re: FOWCODE V4.5 FREEZE

Posted: Fri Oct 07, 2011 8:41 pm
by medelec35
Just a theory.
It maybe reading code too fast.
You can try placing a small delay in main loop 10ms for example.

Martin

Re: FOWCODE V4.5 FREEZE

Posted: Sat Oct 08, 2011 3:33 pm
by sotos
Hi Martin
Thak you for your answer , you are right .
If i add a small delay (1ms ) in the main loop the simulation works fine .
I hope it is not necessary in the real hardware .

Thanks Again .

Re: FOWCODE V4.5 FREEZE

Posted: Sun Oct 09, 2011 1:12 pm
by Steve001
Hi,

Just tried your program works for me . can stop and start with no problems

steve

Re: FOWCODE V4.5 FREEZE

Posted: Sun Oct 09, 2011 1:55 pm
by medelec35
Hi sotos & Steve,
I just tried the program without the delay, and I can confirm it does also freeze on my PC. For some strange reason when running at the fastest simulation speed, the top icon has a red outline as though you are single stepping, and program is not responding. e.g pot will not rotate at all, Also Stop,play & pause have no effect when clicked.
Flowcode Freezing .png
(174.87 KiB) Downloaded 788 times
So this could affect different operating systems in different ways.

PC specs are:
pc specs.png
(9.38 KiB) Downloaded 2433 times
Running windows 7

Martin

Re: FOWCODE V4.5 FREEZE

Posted: Mon Oct 10, 2011 8:23 am
by Steve
sotos wrote:If i add a small delay (1ms ) in the main loop the simulation works fine .
I hope it is not necessary in the real hardware.
To allow this to work in simulation with the delay but not add the delay when compiling to real hardware, you can add C code icons before and after the delay as follows:

Code: Select all

C Code Icon:
#if 0

Delay Icon:
Delay 1ms

C Code Icon:
#endif