bug of simulating in FCV8

Moderator: Benj

Post Reply
tdidier1
Posts: 2
Joined: Sun Nov 15, 2020 7:10 pm
Contact:

bug of simulating in FCV8

Post by tdidier1 »

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
Attachments
Test_button.fcfx
(8.55 KiB) Downloaded 142 times

User avatar
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

Post by Benj »

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.

tdidier1
Posts: 2
Joined: Sun Nov 15, 2020 7:10 pm
Contact:

Re: bug of simulating in FCV8

Post by tdidier1 »

Thanks Benj
I try whis

Post Reply