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

Creating Type Definitions and Strict Type Definitions

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

A type definition or a strict type definition is a custom control or indicator linked to the saved file for that custom control or indicator. When you save a custom control or indicator as a type definition, any data type changes you make to the type definition affect all instances of the type definition in all the VIs that use it. When you save a custom control or indicator as a strict type definition, any data type and cosmetic changes you make to the strict type definition affect all front panel instances of the strict type definition. However, if you change a strict type definition, instances placed on block diagrams as constants act as if the link is not strict, and LabVIEW updates the constant only with data type changes.

Complete the following steps to create a type definition or a strict type definition.

  1. Right-click a control, indicator, or constant you want to make a type definition and select Make Type Def. from the shortcut menu.
  2. Right-click the instance of the type definition and select Open Type Def. from the shortcut menu to display the Control Editor window.
  3. (Optional) To create a strict type definition, select Strict Type Def. from the Control Type pull-down menu on the toolbar.
  4. Make the changes you want to the control or indicator. You can change the size, color, and relative position of the elements of a control or indicator and import images into the control or indicator.
  5. Select File»Apply Changes to apply the changes to the control or indicator. The Apply Changes menu item is available only after you make changes to the control or indicator. If you make changes to a control or indicator and try to close the Control Editor window without selecting File»Apply Changes, LabVIEW displays a message asking if you want to save the changes.
  6. Select File»Save to save the custom control or indicator as a type definition or a strict type definition. You can save the type definition or strict type definition in a directory or in an LLB.

 

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