ENCODER

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
DAVIDJOINER
Posts: 140
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

ENCODER

Post by DAVIDJOINER »

Hi

Have used the encoder with interrupt previously with no problem

However tried to use today in simulation in a new program but does not appear to be working ie sometimes it changes sometime not and then appears to freezes

So as a check I decided to revert back to your sample in wiki and got similar erratic results
Note the wiki appeared to work but stopped counting after 25 and froze

Can you please check that no changes this year have affect the encoder

Have included the wiki file i used

David
Attachments
Quad_Encoder_Time2r.fcfx
(10.37 KiB) Downloaded 98 times

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ENCODER

Post by BenR »

Hi David,

Working well here. I noticed the sizes on the panel were a bit off so I've adjusted things slightly and hopefully it works better for you now.
Quad_Encoder_Time2r.fcfx
(13.91 KiB) Downloaded 106 times
Let us know how you're getting on.

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: ENCODER

Post by DAVIDJOINER »

Hi Ben

Thanks but still not working correctly

As before moving the knob up to around 25 to 28 works fine

But then often the knob freezes and does not increase further ie the knob stops moving

if i then move the knob downwards it moves down and then often freezes again but then i can increase it by 1 or 2 before it freezes again

If i run the debug multiple times sometimes it appears to fully work


Confusing

David

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ENCODER

Post by BenR »

Hello,

I've ran the simulation a handful of times here and can't manage to replicate the problem. Are you running version 9.2? If not then updating to this might help the problem.

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: ENCODER

Post by DAVIDJOINER »

Ben

Yes running 9.2 could it get corrupted in anyway ?

Have checked windows performance whilst running it and no obvious windows problems

I wonder if any others in the forum could run it and see if they have similar problems

As hitting a brick wall until i can overcome it

David

Post Reply