Selecting, Cutting, Copying, and Pasting Array Cells

Complete the following steps to define the cells for selection using the array index.

  1. Add an array shell to the front panel.
  2. Add a numeric control into the array shell.
  3. Resize the array so that it contains four rows and four columns.
  4. Add a value in the 4, 4 cell to initialize the array.
  5. Right-click the array and select Advanced»Show Selection from the shortcut menu. Enabling this option shows selected cells, if any exist.
  6. Right-click the border of the array shell and select Add Element Gap from the shortcut menu to separate the cells by a thin open space. Although it is not necessary to add the element gap, this open border makes it easier to select cells. When you select cells, a thick border to denote the cells you selected fills this open space.
  7. Set the array index display to 1, 1. Right-click the index display and select Advanced»Start Selection from the shortcut menu.
  8. Set the array index display to 3, 3. Right-click the index display and select Advanced»End Selection from the shortcut menu. The selection includes the cells denoted by the lower index numbers but not the cells denoted by the higher index numbers. Steps 7 and 8 select the cells from 1, 1 to 2, 2. If you want to include the cells from 1, 1 to 3, 3, set the array index to 4, 4 right-click the index display and select Advanced»End Selection from the shortcut menu.
Note Cutting the selected cells removes the entire set of rows and columns spanned by the selection but places only the selected cells into the clipboard. You lose the information contained in the rows and columns surrounding the selection.
  1. Right-click and select Data Operations»Cut Data from the shortcut menu to cut data or Data Operations»Copy Data to copy data.
  2. Repeat steps 7 and 8, using the appropriate index display values, to define an area of equal size in the array where you want to paste the data.
  3. Right-click the array shell border and select Data Operations»Paste Data from the shortcut menu to paste data. After you have pasted the selection, notice that one border remains highlighted around the pasted data. This is an insertion point and remains in the array. To hide this line, right-click the array and select Advanced»Show Selection from the shortcut menu to remove the checkmark from this menu item.

Complete the following steps to unmark the cells for selection.

  1. Set the index display to 0 in all dimensions.
  2. Right-click the index display and select Advanced»Start Selection from the shortcut menu.
  3. Right-click the index display again and select Advanced»End Selection from the shortcut menu.

When in run mode, you can access these menu items when you right-click an array.

Note You cannot reinitialize, cut, or paste the data of an indicator in run mode. The Reinitialize to Default Value, Cut Data, and Paste Data shortcut options are available only for controls in run mode.