LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview 8.6 DLL to Vb.net 2008. Passing a 1D Array and returning an Array

I need to achieve the exact same thing.  Please reply if you have found a successful solution and help out progress in neuroscience =).  I am new to creating dll's with labview and do not have simple integers working yet, I am getting a pinvoke restriction error.  Will need to also send in arrays though like the original poster.

 

Brian.

0 Kudos
Message 11 of 17
(1,063 Views)

Hi Brian,

 

Did the exmaple seen on the previous not solve your question?

 

Flash

National Instruments
Applications Engineer
0 Kudos
Message 12 of 17
(1,047 Views)

I have a very simple dll working now, but I am having trouble specifically with passing by refs because I get a protected memory error.  Trying to troubleshoot that now.

 

Haven't tried starting to use arrays yet, but the example seems somewhat complicated to follow.  The documentation is pretty sparse =(.

0 Kudos
Message 13 of 17
(1,042 Views)

Hi Brian,

 

I think the following articles would help you while building your DLL:

How Can I pass a Multidimensional Array from VB to a LabVIEW built DLL? 

How Do I pass Arrays to an Instrument Driver DLL in Visual Basic? 

What are the Differences Between Array Data Pointer, Array Handle, and Array Handle Pointer?

Why Do I Get Error 988 when I try to Call a DLL in LabVIEW?

 

If you have more questions please feel free to repost. 

 

Cheers, 

 

 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 14 of 17
(1,031 Views)

Thank you very much for the reply.  Reading these articles now!

 

Brian.

0 Kudos
Message 15 of 17
(1,022 Views)

I also want to make a dll that accept 1d Array by using labview 8.6 and vb.net. I seached it on google and reading upper guides in the thread as well, still no ideas on it. Can anyone share a exactly vb.net sample for it?

0 Kudos
Message 16 of 17
(600 Views)

Why I can't see my post?

0 Kudos
Message 17 of 17
(630 Views)