LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call dll

Hi all :

 

I have dll which is written in C#  ( Microsoft visual studio ) , I want to call this dll  and used it , ger data from him , the purpose of this all to identify USB device if connected to PC

 

How can I do that in labview

 

 

 

Thanks

0 Kudos
Message 1 of 5
(3,258 Views)


elyan wrote:

Hi all :

 

I have dll which is written in C#  ( Microsoft visual studio ) , I want to call this dll  and used it , ger data from him , the purpose of this all to identify USB device if connected to PC

 

How can I do that in labview

 

 

 

Thanks



Depends a bit on the interface this DLL exports. If it is .Net (considering it is C#) it is not so much a normal DLL as much more a .Net assembly and you obvioulsy want to use the .Net functionality LabVIEW offers you to connect to that assembly.
 
Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 5
(3,253 Views)
how can i do that ?
 
i really don't know
 
0 Kudos
Message 3 of 5
(3,250 Views)

Hey,

Because C# are .NET Assembleys you will need to use the .NET Functions located in the Functions Palette under Connectivity>.NET. Otherwise just use the Call Library Function Node under Connectivity>Libraries&Executables. You will find examples for both using the LabVIEW Example Finder (Help>Find Examples)

Hope this helps, Christian

0 Kudos
Message 4 of 5
(3,248 Views)
@ Rolf: Seems that we have replied at the same time 🙂
0 Kudos
Message 5 of 5
(3,246 Views)