LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to declare and initialize a STRING ARRAY (assign strings to array elements)

How to declare and initialize a STRING ARRAY (assign desired strings to elements of an array, for example "abc", "def", "ghi", "jkl", etc.) in LabVIEW? I saw a "string array" block in help, but could not find it in the function palette. Does a spreadsheet string have to be in a file (or can it be in a string constant block)? Thank you.
0 Kudos
Message 1 of 2
(2,808 Views)
From the front panel, you can use a string control to get your string constant. If you need an array of strings, you can drop an empty array on the front panel and then move the string into that array. From here you can enter values into any index for that array. You can also take one string and build an array using a For Loop, etc. The spreadsheet string can be in a constant block.
0 Kudos
Message 2 of 2
(2,808 Views)