LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using arrays with call library function node

Hi,
I am new to use this call library function node.I am able to call a dll which contains a simple numeric data calculations.But i am facing problems while using arrays and pointers.I know simple basics in C and clacualtions i want to perform is addition of one and two dimensional arrays but i am getting problems. Can anybody explain about array handle and array handle pointer? and can anybody sat how to write c code for additionf of arrays such that it maches with the array data pointer and array handle ?
regards,
Vishnu.
0 Kudos
Message 1 of 4
(2,963 Views)
 

Hi Vishnu,

 

There is a lot of information on this topic at these links: 

Using Arrays and Strings in the Call Library Function Node

 

 

0 Kudos
Message 2 of 4
(2,949 Views)
Hi,
Thanks for the information. I have written a simple program to add two arrays.But while executing in labview by calling that DLL i am getting an error.I am attaching the visual c++ files and labview file, please tell me where i am doing wrong?

Regards,
Vishnu.
0 Kudos
Message 3 of 4
(2,934 Views)
Hi Vishnu,
 
The VI you have written is not very well formed in LabVIEW I am sorry to say. 
 
Please first 1)  clean up your LabVIEW code, and 2)  have the DLL formed correctly.  Although this is the cross product of two arrays, the manipulation to add the arrays is not too difficult to implement.
0 Kudos
Message 4 of 4
(2,920 Views)