LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array limitation when calling VB Dll?

Today I encountered a problem when calling a Visual Basic DLL in Labview 8.2.1
I had to pass a 3D Array, with one dimension exceeding 30 000. around that array size I ended up with error -2146828282 when calling the Dll.
The dll was working fine for weeks. So, is there any limition to the array size, which could cause the error?
0 Kudos
Message 1 of 2
(2,679 Views)
 

Hi sthu,

Having 30,000 elements in one dimension of an array should not cause any problems by itself.  The maximum number of elements per dimension in an array is (2^31) – 1 as described in the LabVIEW Help for Grouping Data with Arrays and Clusters.  However, this is also dependent upon the memory available in your computer.  If there is not enough memory available in RAM, you might receive an error when passing the array to the DLL.

I have included a couple links to pages that discuss LabVIEW memory usage and managing large data sets in LabVIEW.  These might help get your application up and running with the larger array sizes.

VI Memory Usage

Managing Large Data Sets in LabVIEW

Donovan
0 Kudos
Message 2 of 2
(2,649 Views)