Page 1 of 1

How do "C Code blocks" work ?

Posted: Mon Nov 29, 2010 8:46 pm
by INSAMan
Hi everyone,

I am using flowcode in a universitary project, and I would be greatly interested in using the "C Code" blocks, but they seem just to be... not executed by the program.

When I create a block like this, and put some code into it, like, for example "answer = 42" (with "anwser" a variable declared in the flowcode variables window), the variable just doesn't change its value when the program runs through the C Code block.

I have also tried to put another thing to see if it's executed or not, like "delay(10000);" or "sleep(1000);" and there's just nothing which appends...

When I click on "help" or I push "F1" key, of course that doesn't work I have a message "The help can't be open" or something like that. So I am totally puzzled with how are we suppose to use "C Code Blocks".


Thanks in advance for you anser.


Regards,

Théo

Re: How do "C Code blocks" work ?

Posted: Tue Nov 30, 2010 8:26 am
by Steve
C code blocks are not simulated, but should work fine when the code is sent to the chip.

Re: How do "C Code blocks" work ?

Posted: Mon Dec 13, 2010 10:37 pm
by Sean
See this thread for a description of the naming convention used when accessing Flowcode variables from C (no simulation)

http://www.matrixmultimedia.com/mmforum ... cv_#p12745