Strings [] Property
Short Name: Strings[]
Installed With: Base Package
Class: NamedNumeric Properties
Array of the items from which you can select in the named numeric control. For enumerated type controls, the index of each item in the array is the same as the value in the enumerated type control. For ring controls, the order of the items in the array is the same as the order in which they are displayed in the ring control.
If the string is an enumerated type control, you cannot write this property when the VI is running. If the string is a ring control, you can write this property when the VI is running.
For ring controls, use the Strings And Values [] property to assign specific numeric values to each item.
If you use this property with a ring control that does not have sequential numeric values, the number of values for the ring control determines the number of strings you can set using this property. For example, if the ring control has the values 1, 2, and 4, you can set only three strings using this property.
If the ring control has more numeric values than the number of strings you wire to this property, LabVIEW creates strings for any values that do not have corresponding strings. For example, if the ring control has the values 1, 2, and 4 and you wire the strings One Hour and Two Hours to this property, LabVIEW sets the last string to <4>.
Remarks
The following table lists the characteristics of this property.
Available in Run-Time Engine and Real-Time Operating System | Yes |
Permissions | Read/Write |
Settable when the VI is running | Yes |
Loads the front panel into memory | Yes |
Need to authenticate before use | No |
Loads the block diagram into memory | No |
Remote access disallowed | No |
Must wait until user interface is idle | No |
Available with control VIs | No |
Available with global VIs | No |
Available with strict type definitions | No |
Available with polymorphic VIs | No |
Example
Refer to the Using Rings for Options VI in the labview\examples\general\cntrlref.llb for an example of using the Strings [] property.