Support more inputs for C-function Call Block

Post Reply
bmairs
Posts: 69
Joined: Mon Jul 27, 2009 7:51 pm

Support more inputs for C-function Call Block

Post by bmairs » Thu Jan 12, 2012 3:37 am

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.

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: Support more inputs for C-function Call Block

Post by LubinKerhuel » Thu Jan 12, 2012 11:03 am

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

bmairs
Posts: 69
Joined: Mon Jul 27, 2009 7:51 pm

Re: Support more inputs for C-function Call Block

Post by bmairs » Fri Jan 13, 2012 6:03 pm

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?

philippe.1
Posts: 3
Joined: Sun Nov 20, 2011 9:00 am

Re: Support more inputs for C-function Call Block

Post by philippe.1 » Fri Feb 03, 2012 7:32 pm

Hello bmairs,

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

bmairs
Posts: 69
Joined: Mon Jul 27, 2009 7:51 pm

Re: Support more inputs for C-function Call Block

Post by bmairs » Wed Feb 08, 2012 8:07 pm

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.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 12 guests