Page 1 of 1

Support more inputs for C-function Call Block

Posted: Thu Jan 12, 2012 3:37 am
by bmairs
It'd be nice if up to 6 inputs could be supported by the C-function Call Block. Not knowing how the backend works, I can't say whether this is indeed possible, but it'd be nice if it was.

Re: Support more inputs for C-function Call Block

Posted: Thu Jan 12, 2012 11:03 am
by LubinKerhuel
I understand that the 3 input limitation might not be practical, however I think that using array probides some possibilities.

Everything is always possible, question of time...
Is it a show stopper for your project ?

Lubin

Re: Support more inputs for C-function Call Block

Posted: Fri Jan 13, 2012 6:03 pm
by bmairs
It's not a show-stopper, just an inconvenience. I have a lot of functions that just need to pass 4 variables to the function and it's annoying to have to pack that small amount of data to transmit it to C. There's no way to have the C-function call block allow for an arbitrary number and size of variables?

Re: Support more inputs for C-function Call Block

Posted: Fri Feb 03, 2012 7:32 pm
by philippe.1
Hello bmairs,

Could you tell me how do you do to pass your 4 variables please,
Thanks.
Philippe

Re: Support more inputs for C-function Call Block

Posted: Wed Feb 08, 2012 8:07 pm
by bmairs
philippe.1 wrote:Could you tell me how do you do to pass your 4 variables please,
Just pack all of your variables into an array and pass that. If they're different data types pack them all into an array of uint8s, uint16s, or uint32s and unpack them on the C end.