LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set parameter when call dll

I have a dll function which contain a function as:

 

 

1.      TEST1_API int Init(int plen);// [in] plenDescription: to set maxmum buffer length (int byte); called before using any function of dll;Return value: -1 buffer initial failed; 1 buffer initial success

 

When I test it in LV, it popup message said I need to set parameters as the screenshot.

 

May I know how to do it.

 

Thanks.

0 Kudos
Message 1 of 5
(2,889 Views)

Welcome!

 

plen.png

 

Take a note, that the similar message appear, if you have defined parameters, but then function name was changed.

 

Andrey.

 

0 Kudos
Message 2 of 5
(2,883 Views)
You also appear to have some function name decoration going on. I assume you have an export table?
0 Kudos
Message 3 of 5
(2,872 Views)

Thanks, I tried to add the parameter, but it report a error and the function names looks strange, not like you shown.

 

Any where need to setup or the any name decoration I need to do. May I know how can I do it.

Download All
0 Kudos
Message 4 of 5
(2,859 Views)

You should look over these articles:

 

Writing Win32 Dynamic Link Libraries (DLLs) and Calling Them from LabVIEW 

 

Debugging Shared Libraries and Calls to Shared Libraries

 

Function Not Found in Library Error When Using the Call Library Function Node(specifically the section titled "Function Name is Decorated")

 

 

0 Kudos
Message 5 of 5
(2,853 Views)