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

Switching Between Strictly Typed and Weakly Typed Control Refnums

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Strictly typed control refnums accept only control refnums of exactly the same data type. Weakly typed control refnums are more flexible in the type of data they accept.

There are five ways to switch between a strictly typed control refnum and a weakly typed control refnum.

  • Right-click a strictly typed control refnum and remove the checkbox from the Include Data Type item in the shortcut menu to make it weakly typed.
  • Right-click a weakly typed control refnum and select Include Data Type from the shortcut menu to make it strictly typed. This method does not work when the class of data is too general, such as GObject or General.
  • Right-click a strictly typed control refnum and select Select Ctrl Type from the shortcut menu to change the class and disable the Include Data Type option, which makes the control refnum weakly typed.
  • Right-click a strictly typed control refnum and select Select VI Server Class from the shortcut menu to select a generic control class, such as Generic, GObject»GObject, or GObject»Control»Control. Generic control classes cannot be strictly typed.
  • Drag a control into the front panel control refnum control to remove the original control and create a strictly typed control refnum. A red star in the lower left corner of the control refnum control indicates the control reference is strictly typed. Press the <Ctrl> key as you drag a control into the control refnum control to keep the original control and create a strictly typed control refnum. (Mac OS X) Press the <Option> key. (Linux) Press the <Alt> key.

 

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