Strings [] Property

LabView Local Project Settings

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>.

Example

Remarks

The following table lists the characteristics of this property.

Available in Run-Time Engine and Real-Time Operating SystemYes
PermissionsRead/Write
Settable when the VI is runningYes
Loads the front panel into memoryYes
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access disallowedNo
Must wait until user interface is idleNo
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsNo
Available with polymorphic VIsNo

Example

Refer to the Using Rings for Options VI in the labview\examples\general\cntrlref.llb for an example of using the Strings [] property.

 Open example  Browse related examples