C Function Call error for output size != 1

Post Reply
A.Soria

C Function Call error for output size != 1

Post by A.Soria » Thu Apr 10, 2008 11:59 pm

Hi,
Wen i specify an output size greater than 1, the C Call function uses a pointer to an arrya of the output type. However, an extra , was left before. Model will not compile due to the syntax error.

For example , I created a function callde GetQEI that returns 3 int32. In the declaation of the function prototype in "model_NAME"_private.h as:

extern void GetQEI(,int32_T* y1);

I hope you can fix the error and send the p code and the TLC files.

A work around is to open de _private.h file and erase de ,. Then call de "model_NAME.bat" with the ! changing the current directory in the sources directory, so it can be compiled.

Saludos.
A. Soria
betosoria@gmail.com

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

Re: C Function Call error for output size != 1

Post by LubinKerhuel » Mon Apr 28, 2008 10:41 pm

Thanks for repporting that bug.

It is now corrected and will be available in the next release (next to V0.97)

Lubin

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest