Jump to content

chcastro

Members
  • Posts

    4
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by chcastro

  1. Hello Claudio,

    Nice project you've got! I hope your graduation work can be shared on LAVA when you're done!

    The API returns the reference to the class and the reference to the private class control VI. You've got to think of that .ctl as just another VI with no block diagram.

    Hence, you can get a reference to anything on the front panel of that VI. Get a reference to the front panel of that control VI and extract the reference of the controls. There is always only one control, so the first element of the array is the reference to your private data cluster.

    post-10515-126926257197_thumb.png

    Hello François,

    Thanks, I hope it could be accepted here.

    I follow your sample code and manage to insert the controls in the private data.

    Thanks for you help and kind words.

    post-17249-126930675867_thumb.jpg

  2. Hi,

    I am using LVClass API in my graduation work to generate LV classes from a UML class diagram exported to XMI file.

    Using the API I can access the class's control cluster and, using scripts, I can drop the attributes over the cluster (a shadow appers) but not into it.

    If I move the control over the cluster with the mouse, it is absorved by the cluster.

    Can someone to help-me with this issue?

    Thank you very much,

    Cláudio H.

  3. index.php?app=downloads&module=display&section=screenshot&id=65

    Name: LVClass API

    Submitter: LAVA 1.0 Content

    Submitted: 03 Jul 2009

    Category: LabVIEW OOP

    LabVIEW Version: 8.5

    Version: 1.0.2

    License Type: Creative Commons Attribution 3.0

    Potentially make this available on the VI Package Network?: Undecided

    Copyright © 2008, François Normandin

    All rights reserved.

    Author:

    François Normandin

    --see readme file for contact information.

    Description:

    This code is provided to help manage labview classes.

    By opening a reference to a lvclass file, this API allows easy access to Private Data Cluster, Description, Class version, Icon, Tags, Class Items List,

    Ancestor Hierarchy, Addition and removal of files to the class, Copying and saving classes. It can be the basis for cloning a class, applying standardized

    icons to all VIs in the class, accessing tags and descriptions or to follow different versions.

    Dependancies:

    oglib_file-2.8

    Change Log:

    1.0.0: Initial release of the code.

    1.0.1: Correction of installer code (second copy operation reversed)

    1.0.2: Expose "Element (Build)" to Connector Pane in "IncrementClassVersion.vi"

    Click here to download this file

    Hi Mr François,

    Your API is helping me in a graduation work about LabView classes. In fact I am trying to generate LV classes from a UML class diagram exported to XMI file.

    Using your API I can access the class's control cluster and using scripts I can drop the attributes.

    Actually I just drop the controls because I can not get the reference of the cluster. If I move the control over the cluster with the mouse it is absorved by the cluster. Have you a tip how to get the reference of the cluster?

    Your VI returns references to the class and to what I guessing should be the cluster but property node reports as VI reference.

    Thanks,

    Cláudio H.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.