Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Converting the Contents of a Control to a LabVIEW Class

LabVIEW 2009 Help

Edition Date: June 2009

Part Number: 371361F-01

»View Product Info

You can create LabVIEW classes from existing controls and type definitions. Complete the following steps to convert the contents of a control or type definition to a LabVIEW class.

  1. Open a LabVIEW project containing an existing custom control or type definition.
  2. Right-click the control or type definition in the Project Explorer window and select Convert Contents of Control to Class from the shortcut menu. LabVIEW creates a class with a private data control. The new class retains the name of the control that you create it from.
Note  LabVIEW adds the new class to the front panel of the control and continues to use the control.

While LabVIEW leaves the control from which you create a class in the Project Explorer window, LabVIEW modifies the control on disk. Because LabVIEW updates the control to use the LabVIEW class, all references to the control might be broken. You need to provide accessors for the private data for those VIs to use or move those VIs into the newly created class.


 

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