LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can double pointer to represent matrix in DLL be interfaced with labview using call library function node?

Hi,
I have got C code for my algorithm in which matrcies are dealth with double pointers. Can i use double pointer and can be interfaced with labview using call library function node? example code is

void test_mat(double **a,int rows,int col)
{
int i,j;
for(i=0;i<rows;i++)
for(j=0;j<col;j++)
a[i][j]=3.0;
}

I am using above code in C and creating a DLL and calling in LABVIEW using call library function node, but i am not getting any result.
what should i do?

thanks & regards,
vishnu.
0 Kudos
Message 1 of 2
(3,126 Views)
You should always start with LabVIEW:
1. Put the 2D array and col, row on the front panel
2. Put a CLF node on the diagram, and wire the 2D array, row, and col the the CLF node
3. Right click the CLF node, let LabVIEW create the C code for you
4. Open the C code in you C compiler, and finish the coding.
 
 
George Zou
 
George Zou
0 Kudos
Message 2 of 2
(3,113 Views)