From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating .DLL files for use in VB.NET from LabView Addon Package

I am looking for a method on how to create .DLL files for referencing in VB.NET. I am working with LabView 7.0 app builder. I need to reference the Sound and Vibration functions in a Measurement Studios environment with VB.NET. Please let me know if there is a clear cut or round about way of achieving this. Thanks.
0 Kudos
Message 1 of 3
(2,517 Views)
Hi Tom4111,

To create a DLL of a VI or set of VIs from LabVIEW (to be used by other environments), you will need to use the Application Builder by going to Tools->Build Application or Shared Library. If you do not have this option (only comes with LV Professional & DevSuite), the Application Builder is available for purchase separately.

Also, read this post if you're interested in making a llb into a DLL:
http://forums.ni.com/ni/board/message?board.id=170&message.id=106555&requireLogin=False

Note: LabVIEW can use already created .NET assemblies. However, currently LabVIEW cannot generate .NET assemblies to be used in .NET. The Application Builder will only generate standard DLLs (VB6 style DLLs).

Hope this helps!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 3
(2,499 Views)
Tom4111,

As Travis said, LV can currently only generate standard Win32-like DLLs. However, you can access those through VB.NET by using the .NET P/Invoke feature. For examples on accessing such functions, check out www.pinvoke.net.

Also, if you aren't sure how to do this, and mistakes can cause your application to have serious problems, feel free to post the DLL functions that you have exported for your VI's and I'll see if I can't craft up the P/Invoke signatures for you.

Brian
National Instruments
0 Kudos
Message 3 of 3
(2,491 Views)