LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating string array constant

Hey, this is probably a stupid question but I am still trying to figure out everything in LabVIEW. Is there a way to create an array constant that holds strings? I know you can define an numerical array constant but can you also do one for strings, or do I just have to pass multiple text fields into a "build array" function.

Thanks,
 
Paul
Message 1 of 4
(29,309 Views)
Plop down an array constant and then just drag the String Constant into the array constant. Done.

To learn more about LabVIEW it is recommended that you go through the tutorial and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials.
0 Kudos
Message 2 of 4
(29,308 Views)

Thanks, that was ridiculously easy. I just didn't realize you had to drag the type you wanted into the array.......

0 Kudos
Message 3 of 4
(29,299 Views)
Another tip:
 
Many times, you already have a function on the diagram that expects an array of strings (or whatever you specifically need), so the easiest is to right-click the connector and select "create constant". You will get an diagram constant of the default type for that input or output terminal.
Message 4 of 4
(29,279 Views)