LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using int pointer as parameter in dll, but the value of parameter doesnot change

Solved!
Go to solution

Hello, I have a function in dll as void set(int * a){ (*a)=99;}

And I connect a int32 to the dll. But when I run the vi, the value of int32 does not change. 

As the pic shown below:

0 Kudos
Message 1 of 3
(2,245 Views)
Solution
Accepted by topic author percy222

You connected a control to the DLL parameter. That means the value from the control is passed to the DLL, ... and finito! You need to connect an indicator to the right side of the DLL parameter to see the value returned from the DLL.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(2,227 Views)

Thank you very much!

 

0 Kudos
Message 3 of 3
(2,204 Views)