LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass array to "Labview 7" DLL in Visual Basic

Hi!
 
I would like to pass arrays in Visual Basic to a LV DLL made in Labview 7.
I've seen the examples of NI to create a dll in Labview for Visual Basic and for passing arrays, but all the examples were made with Labview 6.
The problem is that in the tutorial they say to define the Pass By of the argument as Array Data Pointer, but in Labview 7 when I add an array as an argument I don't have that option.. It's always defined as TD1Hdl* inArray, and in Labview 6 it was defined as float64 inArray[].
 
Can I use the TD1Hdl structure in Visual Basic? How do I use it?
 
Thanks!
0 Kudos
Message 1 of 4
(3,418 Views)

Hi,

What do you will make :

Call a Visual basic dll in LabView 7 or Call a LabVIEW dll in Visual basic ?

See the link below, they are some information about this,

https://forums.ni.com/t5/LabVIEW/Calling-a-DLL-written-for-VB-from-LabVIEW/m-p/140085?requireLogin=F...

http://zone.ni.com/devzone/conceptd.nsf/webmain/21CFFCBB3963750D86256907005578BD?opendocument 

regards,

 

 

Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France

0 Kudos
Message 2 of 4
(3,401 Views)
I want to call a LabVIEW dll in Visual basic but the problem is the link you gave me only works for 1D arrays.
I have in the dll string arrays and 2D arrays of numbers.
And those kind of arrays doesn't let me change the pass by argument, as it is said in your link.
With these arrays it only works as TD1Hdl structure..
How do I use them in VB?
 
Thanks!
0 Kudos
Message 3 of 4
(3,395 Views)
 

Unfortunately, i'm not expert in Visual Basic, i need to investigate in your problem.

See link below, that explain how you can use LabVIEW DLL in Visual Basic.

http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=B45EACE3D9E556A4E034080020E74861&p_node=DZ52048&p_rank=&p_source=Internal&p_submitted=N 

https://forums.ni.com/t5/LabVIEW/calling-LV-DLL-or-EXE-from-Visual-Basic-with-return-values/m-p/1699...

http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&4303F9807BFE234486256906007259EF 

 

Regards,

Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France

0 Kudos
Message 4 of 4
(3,387 Views)