Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Setting Array Default Values

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

LabVIEW arrays have shortcut menu items called Make Current Value Default and Reinitialize to Default Value. These items are context sensitive. You can use them in two different circumstances—setting the default values of each element in the entire array or setting the default value of one array element.

Complete the following steps to set the default value for an array.

  1. Add an array shell to the front panel.

  2. Right-click the index display or the array shell border.
  3. Select Data Operations»Make Current Value Default from the shortcut menu to set the default value of the array to the values that are currently contained in each element.
  4. Select Data Operations»Reinitialize to Default Value from the shortcut menu to set the default value of the array back to the default value.

Complete the following steps to set the default value for an array element.

  1. Add an array shell to the front panel.

  2. Right-click an element in the array and select Data Operations»Make Current Value Default or Data Operations»Reinitialize to Default Value from the shortcut menu. This sets the value of the element to the scalar value that is used for padding when the array expands.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit