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
Speedometer
Moderator: Benj
-
- Posts: 45
- Joined: Mon Nov 07, 2011 6:36 pm
- Has thanked: 1 time
- Been thanked: 30 times
Re: Speedometer
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
, but should point you in the right direction.
Goodluck
Gary
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

Goodluck
Gary
- Attachments
-
- spedo.fcf
- (8 KiB) Downloaded 414 times
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: Speedometer
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!)