LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatic generation of documentation for variables

I'm looking for a way to cluster some LabVIEW variables, pass them to a subroutine, and have it crank out an XML file that contains annotation for each of the variables:  What is its name, what kind of data is it (float, int, text, array, etc.), what are the units, what is the Tip Strip text, what is the Description text, and of course what is the value.  In other words, I don't want to have to maintain two copies of this information, I want to maintain the copy that drives the LabVIEW front panel, and have this documentation generated programatically.  I can see that for a single variable I can hard-code a properties node that will extract this information, I just don't see how to loop through a cluster and do it.  The goal is to create an ATML description of a list of variables.
0 Kudos
Message 1 of 4
(2,743 Views)

With a reference to the cluster you can use the Controls[] property to obtain an array of control references to the controls bundled into the cluster, from there you can auto-index the array to obtain the specific control properties from the control references.

 

-Bob

0 Kudos
Message 2 of 4
(2,733 Views)

Open a reference to the VI which controls and indicators you want to list. Take a property node and get the Panel reference. Take a property node for the Panel reference and you get arrays of references to all front panel objects. Then you can get the properties of all front panel objects in one loop.

 

Regards

0 Kudos
Message 3 of 4
(2,727 Views)

obtain control attributes from cluster.jpg

 

 

-Bob

Message Edited by B O B on 11-06-2009 03:53 PM
0 Kudos
Message 4 of 4
(2,721 Views)