From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read array of string returned from DLL

Solved!
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)

 

Shrinivas

0 Kudos
Message 1 of 5
(3,449 Views)

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 5
(3,415 Views)

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

0 Kudos
Message 3 of 5
(3,392 Views)
Solution
Accepted by 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 5
(3,379 Views)
0 Kudos
Message 5 of 5
(1,828 Views)