LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we load/import external DLL created by VB.net?

I have a DLL created from VB.net. I did register it successful in the same folder of my CVI project ... However, I could not find the way to import/load it ... in order to use it!
 
Does someone know how to do it?
 
Thanks for any help Smiley Sad
 
 
0 Kudos
Message 1 of 6
(4,436 Views)
Hi plit string,

Check out my post here.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 6
(4,432 Views)

Thanks for your post, it will help me a lot to use .net from now on Smiley Happy. However it still does not help me to load/import a VB.net dll ... in case I have to create one as requirement Smiley Indifferent ... might be you have another link for this?

Thanks

0 Kudos
Message 3 of 6
(4,427 Views)
Hi plit string,

Perhaps I am misunderstanding your terms of loading/importing a VB.NET DLL. When you use the .NET Controller Wizard, you are creating a wrapper around whatever .NET assembly you want. The first time you make calls to the assembly (usually some initialize function; See our dotnet examples in the <CVI>\samples\dotnet\ directory) the assembly is loaded into memory. 

If you are referring to using LabWIndows/CVI as a .NET container, this functionality doesn't exist yet. 

Maybe you could clarify a little?

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 4 of 6
(4,425 Views)
I meant that if I created a DLL from VB.net and want to use that DLL with CVI (without using .NET Controller Wizard) ... what should I do?
 
Thank for being patient with me
0 Kudos
Message 5 of 6
(4,420 Views)
Hi plit string,

In most cases, you primarily use the generated wrapper functions (created by the .NET Controller Wizard) to program with .NET assemblies in LabWindows/CVI. However, you can use the .NET Library functions (In the Library Tree, expand Libraries » .NET Library) to call .NET assemblies. With this library, you can register assembly paths, load assemblies, create and call .NET objects, etc.  Refer to the LabWindows/CVI Help for more information on the .NET Library.

For example, you could use the function CDotNetLoadAssembly() to load the assemb
ly. 

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 6 of 6
(4,417 Views)