Assign an array to an output in a C-script

Hello everyone!
I was wondering if it was possible to assign a whole variable array within the C-script to a single Output (i).

Like that:

//Code declaration

double array[3]

// Output function

double array[3]={1,2,3};
Output(0)=array;

But it does not work … is there a way? It’s possible to do it?

Thank you!

You should study the PLECS Documentation for the C-Script. Also you should look into getting familiar with C if you need to use the C-Script block (your code above is not valid C code). For reference, you can see the “Space Vector PWM” block, which uses a multiple input/output C-Script.