Support more inputs for C-function Call Block
Support more inputs for C-function Call Block
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.
-
- 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
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
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
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?
-
- Posts: 3
- Joined: Sun Nov 20, 2011 9:00 am
Re: Support more inputs for C-function Call Block
Hello bmairs,
Could you tell me how do you do to pass your 4 variables please,
Thanks.
Philippe
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
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.philippe.1 wrote:Could you tell me how do you do to pass your 4 variables please,
Who is online
Users browsing this forum: Google [Bot] and 37 guests