Showing results for 
Search instead for 
Did you mean: 

Documenting not all, but only some controls


My first small project is done and I'd like to test some of LVs documentation features. Works like a charm with only one problem. It "prints" the documentation for all controls, even controls I have hidden on my Front Panel, which is not exactely what I want. Is there some way to tell LV to only print documentation for specific controls?


0 Kudos
Message 1 of 10

Which VIs are you using to generate the report?  If you attach a sample VI or let me know which VIs you're using, I can help.  It may be that you need to modify the VIs that generate the documentation to accomplish the specific functionality you're looking for.


0 Kudos
Message 2 of 10
Hi Darren 🙂

Actually I'm not using any at all. I'd like to use the Print function built into LV (8.0.1). There is an option to print the documentation. I hope you now know what I mean 🙂
0 Kudos
Message 3 of 10

Oh, I're just using the File > Print utility.  Well, there's not much you can customize there other than the values of the options you see.  🙂  I recommend you submit a request at the Product Suggestion Center if you want to have an option in the Print dialog to exclude hidden controls from the printed documentation.


0 Kudos
Message 4 of 10
Just done that - I hope they won't kick me from the forums 😉

Is there some other way how this could be achieved? Maybe manually ?
0 Kudos
Message 5 of 10

Yes, you could write your own VI that calls the Report Generation VIs and generate your own report to send to a printer.  Search the LabVIEW Help for "Report Generation" and you should find the help you need.  You can also check out the examples in [LabVIEW]\examples\reports.


0 Kudos
Message 6 of 10
Thank you, I'll look into that tomorrow 🙂
0 Kudos
Message 7 of 10
Well, I've been trying and made the VI I attached.

Any ideas for improvement?

0 Kudos
Message 8 of 10

Your current approach will only grab the top-level controls on the front panel...the Controls[] property does not return references to controls nested inside tab controls, clusters, radio buttons, and arrays.  If you are interested in getting those control descriptions, you'll need to recurse into those "parent"-type controls to get the sub controls as well. 

Another option would be for you to just use a modified version of "Append VI List of Controls to", which is in the Report Generation > VI Documentation subpalette in LabVIEW 7.0 or later.  This VI does all the recursing for you.  If you dig down into the VI, you'll get to the subVI called "Append Control Info to".  In this subVI, you could change it to check the Visible property of the control, and not append its info unless it's a visible control.  You would also need to change the VI to avoid appending a control image, and also to append the control description.  I also recommend you save any edits to these VIs as your own copies, since it's generally not a good idea to modify the actual shipping VIs in vi.lib.

I hope this helps...good luck.


0 Kudos
Message 9 of 10
Hmm .. actually I didn't know where to look for exactly ... about recursion, I'll have to think about that, sounds quite resonable, didn't think about it yet.

Thanks for your post.

0 Kudos
Message 10 of 10