LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

external function with array of strings parameter

Hi,
i have dll with function, that one of its parameters is array of strings (char**).
I don't know how can i call this function, because LV let me select only string, but not array of strings?
0 Kudos
Message 1 of 3
(2,377 Views)
You could try setting the variable type to 'adapt to type' This may work, but note, if your dll trys to modify the string array, you may run into problems with the labview memory manager... Basically (I think I'm correct on this...) labview stores strings in a format where consisting of the start address and number of bytes to follow... If something alters this string out of the control of labview, lv's memory manager gets all stroppy and usually kills labview...
May not be a problem in your case, but if labview suddenly starts crashing when you run a function from this dll, that may be the reason
Message 2 of 3
(2,377 Views)
Thanks.
I already avoided this problem.
I simply transformed string array to one string where symbol (13) separates between strings.
0 Kudos
Message 3 of 3
(2,377 Views)