Hello all,
This is my first post ever, so "Hello, World!"
Basically, I'm trying to discover the method of using VI Scripting to create Front Panel and Block Diagram comments.
I know, I know, who ever wants to comment their code? I, for one, think that <CAN_OF_WORMS LID="OPEN">even though LabVIEW is a self-documenting language, there are still many times that comments are helpful and even necessary.</CAN_OF_WORMS> That being said, I've plowed through the many possibilities that the 'New VI Object' node allows and have found two Nodes that act as comments for a Front Panel, but as for the Block Diagram, nothing.
Code is attached demonstrating FP Comments, 'Scripted VI Comments.vi'.
My question is this, gurus: does anybody know how to create what the Diagram object calls 'Decos'? (I'm guessing this is short for 'Decorations', and I'm not referring to the type of Dialog Decorations placed on the front panel, either!) I've attached another quickie research VI I scabbed together - 'Export VI Contents.vi' that profiles the top-level contents of a VI. (It doesn't go through everything in the VI, such as Case Structures, Sequences, etc...) Run this VI on itself and you'll see what I'm talking about - on my machine the last object reported is a 'Deco'...
Thanks for your time,
Tony
Download File:post-2230-1117250735.vi
Download File:post-2230-1117250751.vi