Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69057

Passing a pointer location to a DLL called in labview

$
0
0

I have a dll that I am calling in LabVIEW using the Call Library Function Node.

As I have to pass in a pointer location to the function call, I tried using the move block based on inputs from other threads with no luck.

Any inputs to get this to work will be helpful.

 

Details below and attached as well.

 

Function

return value = function (&parameter1, &parameter2);

Where parameter1 is a pointer to a memory location and Pointer2 is a defined struct.

 

DLL expects to see a value being passed in for parameter1 and then it would return the updated value back. I have tried passing a NULL value (int I32) and I am getting a NULL PTR error. Since I don’t have the dll details, I am not sure if this is because of bad memory location that I am passing in to the DLL function call? To initialize memory for pointer1, I have tried using the Move block but it gives the 1097 error. VI attached (LabVIEW 2011). Tried changing the input to int I32, int U32 with no luck. Also changed the pass value to “Pointer to Value” and “Value” without any luck.

 

I have attached the move_block.vi and details about the function that I am calling.

Due to licensing issues I cannot provide the actual function call vi.


Viewing all articles
Browse latest Browse all 69057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>