Showing results for 
Search instead for 
Did you mean: 

how to read array of string returned from DLL

Go to solution

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)



0 Kudos
Message 1 of 4

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,



0 Kudos
Message 2 of 4

Thanks Bob_Y for reply. I tried this but didn't worked.

0 Kudos
Message 3 of 4
Accepted by topic author kshrini

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'.

0 Kudos
Message 4 of 4