LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract (and process) comments/free labels from a VI (or VIs)

What I would like to be able to do is extract the labels (specifically the free labels) from all the VIs in my project. I then plan to process the labels to extract information (specifically any lines tagged with, say, and @ symbol) and dump this out to documents.

 

Does anyone know how to, using LabVIEW, extract the free labels from a VI?

 

More generally, the reason why is I would like to be able to automatically generate documentation for my VI (much like you can do with, say, Javadocs).  I've had a look at Bookmarks and this doesn't quite seem to do what I'm after (e.g. can't extract it, can't processes it, can't format the output, etc.) but I may have missed something.

 

Many thanks,

0 Kudos
Message 1 of 3
(2,178 Views)

You can do that using scripting.

There are plenty of examples on the forum, here are a couple.

https://forums.ni.com/t5/LabVIEW/VI-scripting-to-read-block-diagram-comments/m-p/3176989#M918505

https://forums.ni.com/t5/Example-Program-Drafts/Quickly-creating-VI-documentation/ta-p/3536600


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 3
(2,154 Views)

Hi hornseyma,

 

specifically any lines tagged with, say, and @ symbol

See the bookmarks feature of recent LabVIEW version for inspiration - it uses the # char.

The bookmark manager is open to look under the hood…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 3
(2,149 Views)