02-19-2010 03:10 PM
I apologize in advance if this question has been already addressed; I could not find any related material.
The problem I have is that when I create a DLL, no problems here, I seemed to be restricted from selecting any of the outputs of my VI to be the return value. For instance, one simple case will be, add a text control as the input and then add a text indicator to be the output. One might think that the text indicator will be the return value by default since this variable has been assigned as the output; this is not the case. Instead I get a void function.
void DLLSTringTest(char String[], char String2[], int32_t len)
The output string (String2) its placed as one the function's arguments??
Please let me know if there are any tricks that I'm missing here.
CAE
02-19-2010 05:17 PM
02-21-2010 05:40 PM
The "Call DLL" example shows how to call a DLL, right? I guess my question is how can I assigned a string or any output variable as the return value of the prototype when I create a DLL using LabView. When I drag the VI from the sources files and define the prototype, the return value is set to 'None' - no other options are given.
I apologize - I'm new with this part of labview and I think I hit a stopping point here. I appreciate any provided help.
02-21-2010 07:12 PM
02-22-2010 12:24 PM
01-06-2015 09:12 AM
I am sorry the I rehash an old topic. But it fits perfectly to my problem.
I have a predefined DLL interface which I cannot change. It needs a return values. So I have to pass a VI DLL output by return value instead of returning it by reference using parameters.
Is there a possibility to do this? I found at the DLL application builder a option which might fit but I cannot select a VI output to use (see attached image). Please let me know if I am missing any tricks here.
Steffen
01-06-2015 09:31 AM
01-06-2015 09:41 AM - edited 01-06-2015 09:42 AM
Hi Gerd,
thank you for your reply.
That is the thing. How do I change the function definition that it is return a long? I cannot change it directly at the "Function Prototype". Is there a setting I have missed?
01-06-2015 09:48 AM
01-06-2015 10:19 AM