Hello Petri!
Here you have the reply + example program I got from an AE in the US:
"It took a couple steps to accomplish returning a 2D array with a function panel. First, I am not clear if he would like the function panel to allocate the memory of if it should be allocated by the calling program. As LabVIEW works best went the array is allocated on the LabVIEW side, I have built the attached fp/project so that the main() function allocates the memory.
To reproduce this project you will need to:
1) Select "Options>>Data Types" while editing the function panel
2) Add a datatype called Array2D and leave it as Intrisic Datatype: None. This will allow us to define our own type for the variable.
3) Add this line to the headerfile to define the Array2D variable:
typedef int Array2D[25][2];
This defines a 25x2 array like the customer needs. Note: This is an array of ints, as it appears from the customers second post that what he really have is a 2D array of 16-bit integers.
After this the fuction panel should function as expected, allowing you to define variables from the panel, etc."
Regards,
Jimmie A.
Applications Engineer, National Instruments
Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region