Complete the following steps to configure a tab control page programmatically.
Right-click a tab of a tab control and select Create»Property Node»Pages from the shortcut menu. LabVIEW creates an implicitly linked Property Node on the block diagram for the property you selected.
Add the Index Array function to the block diagram.
Add Find
Wire the Pages output of the Property Node to the n-dimension array input of the Index Array function.
Right-click the Index input of the Index Array function and select Create»Constant from the shortcut menu to create a numeric constant.
Type the index of the page you want to configure and press the <Enter> key. The index corresponds to the order of the pages as they appear on the tab control, in the range 0 to n–1, where n is the number of pages on the tab control. For example, type 0 to configure the first page in the tab control.
Use the Positioning tool to resize the Index Array function if necessary.
Use the Wiring tool to right-click an element output of the Index Array function and select Create»Property for Page Class and a property from the shortcut menu. LabVIEW creates a Property Node for the property you selected.
Add the Property Node to the block diagram and wire the element output of the Index Array function to the reference input of the Property Node you created in step 8.
Configure the Property Node if necessary.
After you obtain a reference to a tab control page, you also can configure a control within a tab control page programmatically using the Controls on Page property.
Refer to the Programmatically Manipulate a Tab Control VI in the labview\examples\Controls and Indicators\Containers directory for an example of configuring tab control pages programmatically.