LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET DLL function call

Hi, as RolfK wrote, you can use Reflection.

 

I was dealing with the same problem recently. Look here , there is a solution.

Message 11 of 20
(1,079 Views)

Hi Bublina,

 

I looked at your solution, and I tried it, and I couldn't get it to work.  Can you attach your vi and dll, so that I can look a bit closer?

 

 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 12 of 20
(1,074 Views)

You can download those DLLs here

 

The PNG in the thread is code snippet, it is runnable.

 

Post here the DLL and specify which method you are trying to use

Message 13 of 20
(1,068 Views)

Hi Bublina,

 

What did you create the  constant reference above the To more specified class node?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 14 of 20
(1,042 Views)

@yang72211 wrote:

Hi Bublina,

 

What did you create the  constant reference above the To more specified class node?


Right click the method input and select create a constant.

Message 15 of 20
(1,038 Views)

I can't get your code to work.  See attached.  By the way, how did you get the typeName?  I think the dll that I download has a different version and possbiilty PublicKeyToken, but I only know how to find the version.  What class did you choose for the reference aboe the to more specified node?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 16 of 20
(1,023 Views)

Oh, sorry, it looks like I used there older libraries... Smiley Sad

 

Download 1.6 build, that should work

 

You specify the class, as the method or property input. Right click the input and create constant.

 

I really think you should post the dll and the method you want to use, so I can take a look at it.

Message 17 of 20
(1,018 Views)

Right now, I am just trying to get your example to work.  I have attached the DLL and vi.  Can you see what's wrong with them?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 18 of 20
(1,010 Views)

No, the VI runs with no errors.

Message 19 of 20
(1,008 Views)

hmm, I will keep looking at it.  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 20 of 20
(1,000 Views)