LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Documenting not all, but only some controls

Hi

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?

Thanks

Thomas
0 Kudos
Message 1 of 10
(3,273 Views)

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.

-D

0 Kudos
Message 2 of 10
(3,261 Views)
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
(3,251 Views)

Oh, I see...you'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.

-D

0 Kudos
Message 4 of 10
(3,243 Views)
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
(3,234 Views)

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.

-D

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

Any ideas for improvement?


0 Kudos
Message 8 of 10
(3,203 Views)

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 Report.vi", 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 Report.vi".  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.

-D

0 Kudos
Message 9 of 10
(3,190 Views)
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.

Thomas
0 Kudos
Message 10 of 10
(3,180 Views)