- Popular Post
chcastro
-
Posts
4 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by chcastro
-
-
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.
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.
-
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.
-
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"
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.
Using scripts to create LV classes
in VI Scripting
Posted
Hi MikaelH,
I managed to use labXML to access the XMI file and, with François tip, class API to include the controls in class private data. It was necessary to do as you said (see my post in Code repository).
Thanks for you offer and help but I need to "write" the the code to my graduation work.