Hi
We use flowcode V8 ( version 8.2.2.15 student version) since few month with my students and i have a bug of simulation push button
This example ( attach file ) is :
one push button
one led
and a very simple program ( Input read portA0 to variable BP and decision (if button is push the led is active and if is not push le led is not active) )
When i simulate this in 2D panel the button not fonctionned all the time
sometimes when i click to the button and i stop the click the button leaves on and the led is light ( the input and output is on in the device )
and I have to click again for the program to work correctly.
If I add a component routine "read state " ( attached to the button) the program work correctly
I specify that the program works correctly on the chip.
Thanks for your help
bug of simulating in FCV8
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: bug of simulating in FCV8
Hello,
I've replicated the problem here. I think the issue is that the event pipe in Flowcode is becoming blocked due to your tight loop. If you add even a 1ms delay anywhere in the loop then it allows the pipe to work as intended and the simulation then works as expected.
I've replicated the problem here. I think the issue is that the event pipe in Flowcode is becoming blocked due to your tight loop. If you add even a 1ms delay anywhere in the loop then it allows the pipe to work as intended and the simulation then works as expected.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel