Page 1 of 1

Simulation running well but not in the MIAC

Posted: Wed Jul 13, 2011 7:40 am
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

Re: Simulation running well but not in the MIAC

Posted: Wed Jul 13, 2011 8:30 am
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.

Re: Simulation running well but not in the MIAC

Posted: Wed Jul 13, 2011 9:09 am
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

Re: Simulation running well but not in the MIAC

Posted: Wed Jul 13, 2011 10:09 am
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.