LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call function from DLL shared library

Hello,

I have ZStar senzor. I want to control it through the labview application. Senzor has DLL  library. I try to call some function from this DLL library, I use the Call Library Function Node. But I don´t know how to set the parameters of Call library Function Node.  Where I find in DLL library the function name? Please, could anyone do any example with this DLL library?

0 Kudos
Message 1 of 6
(3,758 Views)

Hi oliva,

it seems that there is no exported function in your dll.

 

Mike

0 Kudos
Message 2 of 6
(3,741 Views)

Please could you explain it more. Is there any way how to control the sensor. I mean for example start measuring, set data rate etc..

Thank you.

0 Kudos
Message 3 of 6
(3,734 Views)

Hai oliva,

 

When loading the particular dll in to the call library function node, it will automatically displays all the functions inside it.

 

What mike was telling is the dll you attached in the zip file, doesn't had any functions at all.

 

Have you attached the correct dll?

 

Mathan

0 Kudos
Message 4 of 6
(3,723 Views)

Hi Mathan,

I have only this dll and embedded code(attached in zip now)...

Message 5 of 6
(3,720 Views)
This DLL is not a standard Windows DLL but a .Net Assembly. You need to use the .Net operators in LabVIEW to access it. Put the DLL in your LabVIEW project directory, drop a .Net contstructor node onto your diagram and then in the dialog that opens select the Browse button and point it to your DLL.
Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 6
(3,269 Views)