Page 1 of 1

Problem with variavle in C Code

Posted: Wed May 15, 2019 6:19 pm
by Halcon0653
Hello,
I have a problem trying to run C code in my FC6. It seems as it doesn't pay attention to it. For instance, the next easy program:
Sin título.png
(5.71 KiB) Downloaded 2269 times
The 'Test' variable, begins with a '0', changes to '1', remains with '2' because the C code doesn't work, and in the end of the program, the value is '3'.
But should be '4' if C code were working. Of course, when I complile the program, doesn't appear errors.
May Anyone tellme something?. Thank You in advance.

Re: Problem with variavle in C Code

Posted: Wed May 15, 2019 6:20 pm
by Halcon0653
Sorry, I mean:
begins with a '0', changes to '1', remains with '1' because the C code doesn't work, and in the end of the program, the value is '2'.
But should be '3' if C code were working.

Re: Problem with variavle in C Code

Posted: Wed May 15, 2019 8:14 pm
by mnf
The C code won't simulate in V6. Should work ok on a device.

If you upgrade to V8 you can simulate the C code- and this would give the result you expect.

Re: Problem with variavle in C Code

Posted: Wed May 15, 2019 8:25 pm
by kersing
Why are you asking the same question here you asked in the FC5 forum where you state that you’re using FC5 and do not want to upgrade?

Re: Problem with variavle in C Code

Posted: Thu May 16, 2019 9:18 am
by Halcon0653
OK!. Now I understand. Won´t simulate, but work on Chip.
Thank You.

Re: Problem with variavle in C Code

Posted: Mon Sep 30, 2019 10:37 am
by cisawohi
mnf wrote:The C code won't simulate in V6. Should work ok on a device.

If you upgrade to V8 you can simulate the C code- and this would give the result you expect.
For me most time the V8 similation to C code does the job as you said. True!