Generating a C s-function with legacy code with an array of buses as input

1 view (last 30 days)
Hello everybody,
i am using the legacy_code to generate a C S-Function and now I need this s-function to get an array of buses. The s-function actually only call a c function defined as: void Fct( sBusStruct const* const p_Input[],...)
I basically need to define the output function of the s-function the same way or something like that. For the previous case, where I needed the s-function to receive only one bus and not an array of them, here is how I define the output functions using the legacy tool:
lct_ip.OutputFcnSpec =...
['sDLLFCT_Outputs_wrapper(sBusStruct* u1[1])'];
legacy_code('compile', lct_ip, OPTIONS);
Now I am not sure how to change that legacy_code declaration so that that wrapper s-function method will receive an array of buses. can anyone tell me , if this is possible or has already been done!?
Best Regards and Thanks in Advance
Armand ps: using Matlab R2013b 32bits

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!