Page 1 of 1

Speedometer

Posted: Fri Jun 08, 2012 1:19 pm
by Wilmmmmmm
Hello

I've recently written a program in Flowcode V4 for a speedometer and this program functioned in the simulations without any problems, but whenever I tried to use this program with E-blocks it didn't work.
The program itself can be found in the included attachments. Could this be a software problem or a hardware compatibility problem?

Best regards
Willem Dooms

Re: Speedometer

Posted: Wed Jun 27, 2012 2:00 pm
by Gary Freegard
Hi Willem

I think your problem is that your are trying to carry out float maths on an integer. I have made the changes for you, have not tried it myself so no 100% guarantee :D , but should point you in the right direction.

Goodluck

Gary

Re: Speedometer

Posted: Wed Jun 27, 2012 2:07 pm
by DavidA
The simulation in Flowcode v4 assumes calculates everything as an float, so it will appear to work in simulation, in v5 we have improved the simulation to better represent what is going on in the PIC (such as integers behaving as integers!)