I've developed DLL in labview which takes 2 input parameters as string and returns back an array of strings. How can I read back this returned array of strings in labview? I tried returning a string and I can able to read it. But how to read an array?
The function signature is - void GetLoginInfo(char DBPath, char UserName, LStrHandleArray *Array)
Solved! Go to Solution.
In LabVIEW, you need to create an array of strings and wire that into the LabVIEW dll interface. This sets the datatype for the parameter to be an array of strings.
You may need to initialize the array to not be empty so that the memory is reserved correctly. It has been a long time since I did this last and I am not sure about that part.
I hope that this helps,
I got the solution. While configuring the Call Library Function node, the argument (in which we are expecting an array of string) type should be selected as 'Adapt to Type' and data format should be 'Pointers to Handles'.