LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I pass a 1D LabView array as a pointer to an array in a C DLL?

Hello,
 
I am trying to pass a 1D Labview array of DOUBLE to a C DLL which is expecting a pointer to an array of DOUBLE.  I have read that LabView stores arrays as a pointer to a pointer and that the first element of a LabView array is actually the size of the array.  So I think my question is then how do I dereference the first pointer and pass in a pointer which points to the second element in the array?    
 
Any thoughts out there?
 
Thanks!
 
 
0 Kudos
Message 1 of 2
(2,514 Views)
Hi justyou,

There are many, many resources on this topic, so I will guide you to the two most useful ones:
  1. The "Call DLL.vi" example that ships with LabVIEW explains how to use almost any data type when executing DLLs. The "Call DLL.vi" can be found by browsing the Example Finder.
  2. Integrating DLLs. This page is the portal for DLL interation related resources. Read the tutorials and try the examples...
This should give you some ideas.

Have fun!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 2 of 2
(2,494 Views)