Simulation running well but not in the MIAC

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
icare34
Flowcode V4 User
Posts: 14
Joined: Thu Jun 24, 2010 6:56 am
Has thanked: 5 times

Simulation running well but not in the MIAC

Post by icare34 »

Hello,
I have a problem with the program test2.fcf
The simulation is running well on my computer ( 22 is display), but when I transfer the the program in the MIAC, it display 0.0000
If I put :

Code: Select all

toto = 10.0
instead of :

Code: Select all

toto = 10.0 + 12.0
it running well on PC and MIAC (display : 10.00...)
Where is the problem ?
  • Program problem ?
  • Compilation problem ?
  • Transfert problem ?
  • Miac Problem ?
How can I solve it ?

Best regards
Didier
Attachments
test2.fcf
Program with problem
(5.5 KiB) Downloaded 268 times

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: Simulation running well but not in the MIAC

Post by Steve »

When using the BoostC compiler toolchain, you need to use the special floating-point functions (fp_add, etc) to perform arithmetic on floating-point numbers.

I suggest you use integers where possible: "toto = 10 + 12" should work fine.

User avatar
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: Simulation running well but not in the MIAC

Post by DavidA »

May I also add that if you are using Flowcode V4 could you please post any questions which include Flowcode V4 programs into the relevant V4 forums.

Instructions on how to do this are available here: http://www.matrixmultimedia.com/support ... f=29&t=602

icare34
Flowcode V4 User
Posts: 14
Joined: Thu Jun 24, 2010 6:56 am
Has thanked: 5 times

Re: Simulation running well but not in the MIAC

Post by icare34 »

Hello,
Thanks a lot :D
With :

Code: Select all

toto = fadd(10.0 , 12.0)
everything is OK.
Could you please transfer my question to V4 forums ? I can't do by myself.

Post Reply