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

how to use Call library function node for a function in dll with VOID data type

$
0
0

Hi All,

I would like to ask for your kind help,

I am facing an issue with the call library node.

I have a C++ function(stdcall), which has void as data type

error code XXXX(hwnd, lID, getValue, *void data1, *void data2)

the data1 and data2 types are always changing depending upoin the value of "getValue".

Primarily i can use call library node multiple times and adapt each node according to the data types of data1 and data2, and extract the values and use in the code. Here is no issue. Real question is:

 

 

My question:

How can i just use one time call library node and make a case depending upon the "getvalue", which will control the data type of data1 and data2. Here i really looking for solutions.

 

My trials:

i used varaints as input to the call libray node for data1 and data2, and selected Parameters in call libraby node as " Adapt to type". here labview just crashed.

 

i really appreciate your feedbackand suggestions.

 

Thanks

Kutbuddin

 

 


Viewing all articles
Browse latest Browse all 69090

Trending Articles