Daklu Posted January 11, 2012 Report Share Posted January 11, 2012 I'm digging deep in the dusty corners of my memory for this so I'm probably misunderremembering things, but... Doesn't OpenG use block diagram comments with special tags to set the vi properties documentation? Are the tools for converting the comments to documentation available somewhere? Quote Link to comment
jgcode Posted January 11, 2012 Report Share Posted January 11, 2012 Hi Dave Someone might be able to reply with a better answer who worked on older releases as I was responsible for upgrading the sources to VIPM - I know there was scripts that updated labels with build information (I know as a wrote code to remove these artifacts) but AFAIK the license stuff and documentation was static. Having said that it would be super easy to script code to find a label (which had e.g. a tag on it) and update the VI Properties Documentation or vice versa. Quote Link to comment
Daklu Posted January 12, 2012 Author Report Share Posted January 12, 2012 I know there was scripts that updated labels with build information... Ahh... that's it. Thanks Jon. I guess I'll fumble around with scripting once again. As for it being super easy, I suppose once you know how to do it it is, but until then it's mostly just a frustrating expedition of trial and error. (NI hasn't published any sort of object model for the scripting engine have they?) Quote Link to comment
jgcode Posted January 12, 2012 Report Share Posted January 12, 2012 No probs. (NI hasn't published any sort of object model for the scripting engine have they?) Not that I know of - maybe you could script one? Right clicking a node and trawling through the menus is one of the things I do. I am no scripting ninja, but if u get stuck on something just post or PM me - like anyone else on this forum - I am happy to help. Quote Link to comment
Ton Plomp Posted January 12, 2012 Report Share Posted January 12, 2012 I think that th OpenG sourcebase at sourceforge has the utilities you look for. Most likely this folder. Ton Quote Link to comment
jcarmody Posted January 12, 2012 Report Share Posted January 12, 2012 Here's how I found all Free Labels on all Block Diagrams below one top-level VI: Then, I looped through them looking for the tag I was interested in: Be careful while scripting, not because of the "rusty nails" but more because it could be more fun than what you're supposed to be working on... A hairy yak is a happy yak ~ unknown, circa 2000 BC 1 Quote Link to comment
jgcode Posted January 12, 2012 Report Share Posted January 12, 2012 Be careful while scripting, not because of the "rusty nails" but more because it could be more fun than what you're supposed to be working on... Damn straight! Quote Link to comment
Daklu Posted January 12, 2012 Author Report Share Posted January 12, 2012 Thanks for the link Ton. I'm definitely going to spend a bit of time looking over those. I think 2009 was the latest version I've tried scripting with. The traverse vi shown in Jim's post wasn't available as far as I know, but boy it sure makes scripting easier. I still have to create a scratch vi to figure out the name of the object I'm looking for, but the whole process is much easier than it used to be. Now I just need to spend some time figuring out the available documentation tools and seeing if I can simplify my process. Quote Link to comment
ShaunR Posted January 12, 2012 Report Share Posted January 12, 2012 Thanks for the link Ton. I'm definitely going to spend a bit of time looking over those. I think 2009 was the latest version I've tried scripting with. The traverse vi shown in Jim's post wasn't available as far as I know, but boy it sure makes scripting easier. I still have to create a scratch vi to figure out the name of the object I'm looking for, but the whole process is much easier than it used to be. Now I just need to spend some time figuring out the available documentation tools and seeing if I can simplify my process. It is available in 2009. It just isn't in any of the palettes (it's in vi.lib/utility/traverseref.llb). 2 Quote Link to comment
jgcode Posted January 12, 2012 Report Share Posted January 12, 2012 For anyone else interested -> I downloaded the tarball in Ton's link and created a wrapper VI for the action of interested. If you run Main in the same folder as OpenG.vit and the extracted tarball folder than it will update the OpenG Tags on the FP. Main.vi OpenG.vit opengtoolkit-build support.tar.gz All files in LabVIEW 2009. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.