VIs that allow you to test if a given control is a control of aparticular LabVIEW class type - labview

This is a discussion on VIs that allow you to test if a given control is a control of aparticular LabVIEW class type - labview ; The attached zip file contains VIs are saved in LabVIEW 8.5.   Included in the .zip are three VIs you may find useful when working with LabVIEW classes. - Qualified Name Array To Single String.vi takes a VI's qualified name, ...

+ Reply to Thread
Results 1 to 3 of 3

VIs that allow you to test if a given control is a control of aparticular LabVIEW class type

  1. Default VIs that allow you to test if a given control is a control of aparticular LabVIEW class type

    The attached zip file contains VIs are saved in LabVIEW 8.5.
     
    Included in the .zip are three VIs you may find useful when working with LabVIEW classes.

    - Qualified Name Array To Single String.vi takes a VI's qualified name, given as an array of strings, and converts it to a single colon-delimited string. This VI may be useful for working with VIs owned by any library type, and it is used as a subVI of the other two VIs in this .zip file.

    - Is This Control Of This LabVIEW Class.vi takes a control refnum and a LabVIEW class refnum and tells whether the control is an instance of the given LabVIEW class. It returns true for regular class controls/indicators and for XControls of the class.

    - Is This Control Of LabVIEW Object Class.vi is the same as the previous, except it does not take a class refnum for input. LabVIEW Object is the built-in class that is the ancestor of all other LabVIEW classes, and this VI specifically checks to see if the given control is an instance of this class.

    The second two VIs in this .zip file are both password protected. In a built application, both will return a "not supported" error.
     


    Detecting Controls of Specific LVClass Types.zip:
    http://forums.ni.com/attachments/ni/...37/1/Detecting Controls of Specific LVClass Types.zip

  2. Default Re: VIs that allow you to test if a given control is a control of aparticular LabVIEW class type

    I'm seeing an 1063 error when I try to use the "Get Control Data Type.vi" on a control extracted from a cluster or an array. The error does not show up if I use a control reference or extract the control from the front panel. Is this a bug or am I doing something wrong?
     
     


    FP errors.png:
    http://forums.ni.com/attachments/ni/170/292838/1/FP errors.png


    BD control refs in container.png:
    http://forums.ni.com/attachments/ni/170/292838/2/BD control refs in container.png

  3. Default Re: VIs that allow you to test if a given control is a control of aparticular LabVIEW class type

    I did the work around as you stated.
    Thanks again for posting these vis. I am using these my latest version of the Subvi fixer.
    <a href="http://forums.lavag.org/index.php?showtopic=9366&amp;view=findpost&amp;p=40326" target="_blank">http://forums.lavag.org/index.php?showtopic=9366&amp;view=findpost&amp;p=40326</a>
    They help me classify the controls on the Front Panel so I can pair them up and wire them to the connector pane.

+ Reply to Thread

Similar Threads

  1. control another window through labview 6.0.2
    By Application Development in forum labview
    Replies: 3
    Last Post: 12-07-2007, 02:40 PM
  2. LabVIEW 8.2 control refnum type descriptor missing
    By Application Development in forum labview
    Replies: 4
    Last Post: 10-25-2007, 02:10 PM
  3. LabVIEW to control a PLC
    By Application Development in forum labview
    Replies: 0
    Last Post: 10-11-2007, 10:58 AM
  4. need help reg labview control *.ctl
    By Application Development in forum labview
    Replies: 2
    Last Post: 10-03-2007, 07:40 AM
  5. Implementing Control Designer Class for Composite Server Control
    By Application Development in forum Inetserver
    Replies: 1
    Last Post: 11-10-2004, 08:23 AM