04-15-2009 08:31 AM
Is there any kind of documentation system in Labview that lets you have lengthy comments on the block diagram? Ideally, you could drop an icon on the block diagram, and the icon links to a document with comments. You could then describe at length how the blob works. The document could contain all comments for a particular VI and the link would take you right to the proper section.
That would be a much desired feature.
Are there any add-ons that would add a documentation feature like this?
04-15-2009 08:45 AM
04-15-2009 09:20 AM
04-15-2009 09:32 AM - edited 04-15-2009 09:34 AM
I get by using string constants with the scroll bar visable to enter lenghty comments.
If I need images I just drop them on the diagram.
Need more room?
Put the images and documentation in a Stacked Sequence Structure
(after all, holding documentaion is the only legitemate reason to use a Stacked Sequence Structure ).
Ben
04-15-2009 09:39 AM
What I was looking for is more like a comment block in the block diagram that can be collapsed to a small icon so it does not take up any space. This comment block would be linked to an external document to build a larger description document for the VI. Then that VIs document can be linked to the other VI s in the project.
At the end of the day, I would have one document that describes the operation of all the modules in great detail, and it would be generated from the comments in the code. So as the code and comments change, so does the description document.
When working in C/C++, most IDEs allow you to collapse the comment blocks so they don't clutter things up. But when you want to look at them, you click on the little + icon and you can see what you need. You can also use doxygen, which is a program that takes properly formatted comments and exports them to an HTML document. If you write your comments correctly, you can create an accurate design description very quickly.
So I guess this is a two-part wish list.
1) Collapsable comments in the Block diagrams for less clutter.
2) A system to collect those comments into a descriptive document for less effort on paperwork after the code is developed.
04-15-2009 09:55 AM
Here is an example of Paul's suggestion of using a subVI. The context help can also be useful when using the VI method.
Lynn
04-15-2009 11:19 AM
Ben wrote:I get by using string constants with the scroll bar visable to enter lenghty comments.
If I need images I just drop them on the diagram.
Need more room?
Put the images and documentation in a Stacked Sequence Structure
What?!? Is that really you, Ben? Have aliens taken over your keyboard?!?
Ben continued:
(after all, holding documentaion is the only legitemate reason to use a Stacked Sequence Structure
).
Oh. Okay. All is right with the world again...
cAT
04-15-2009 01:10 PM - edited 04-15-2009 01:11 PM
Thanks Ben, I like that stacked sequence idea. I have another suggestion
Drop a string constant onto your block.
Type in something enclosed in "\\" so that you know that this string constant is comment. I suggest its a title or a header for your comment.
Right click and select Description and Tip.
Enter your comments into the Description field.
After that you can use context help (ctrl+h) to toggle your comment as shown.
David
04-15-2009 01:39 PM - edited 04-15-2009 01:40 PM
Thanks David!
Ben
04-15-2009 02:16 PM