LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Community Nugget, 02/27/2008

LabVIEW is a graphical language. As such, we often wish to post images of code to illustrate a point more easily and accurately than describing it with text.
 
Today's nugget is about a utility designed to make this easier - the Code Capture Tool.
 
I'm sure some of you are already aware of it and maybe are even using some version of it, but since we've just released the official 1.0 version, I figured it might be a good time to post about it.
 
For those who don't know it, the CCT is an option in your Tools menu. When you select it, a dialog comes up which lets you select how to capture an image of the current VI. The image is then saved to a file and the path of the file is copied into the clipboard, ready to be pasted in the attachment field. This makes adding images of code to your posts very easy.
Here's an image of the code capture tool capturing an image of itself:
 
 
 
The tool also exposes an API for capturing images of your code which you can use for all kinds of things. It comes with a very simple installer, so all you need to do is download it and run it. You're welcome to provide feedback if you wish.
 
My thanks go to Ton, who probably did most of the work on this new version and to CC, JP and Altenbach who created the original version.
 
I'll let Ton's video do the rest:
If you follow the link, you can watch a video demonstrating how to use this tool.
 
You can find the Code Capture Tool here.
 
By the way, an interesting contender for the best way of capturing a VI has surfaced recently - a utility which converts a VI into a usable Flash object. It's not currently at a tool level, but who knows, maybe it will be soon. It can be found here.
 
For a list of past nuggets, see here.


Message Edited by tst on 02-27-2008 10:44 PM

___________________
Try to take over the world!
Message 1 of 35
(8,906 Views)
OK, here's the video:


___________________
Try to take over the world!
Message 2 of 35
(8,889 Views)
Hi tst,

thanks for this nugget - the CCT is really a wonderful tools menu entry!

But you should note: before downloading from LAVA you have to register in this forum as well...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 35
(8,874 Views)


GerdW wrote:

But you should note: before downloading from LAVA you have to register in this forum as well...

This is only an issue with the Code Repository. You can download from the forums without registering. I'll tell Michael about it.
 
In the meantime, here's the current version.
Note: the CCT should work with any version later than 6.1.

___________________
Try to take over the world!
0 Kudos
Message 4 of 35
(8,865 Views)
This is really a great tool, it makes doing screen caps for user manuals and such a whole lot easier! Great work to all those involved.

Is there a changelog available somewhere?

ps: although the zip file says its build 137 it is actually 139. Not that it reallt matters I suppose Smiley Very Happy
0 Kudos
Message 5 of 35
(8,826 Views)

Thanks for the Nugget tst,

This will be handy for people like me who prefer pictures to words.. 😉 

0 Kudos
Message 6 of 35
(8,806 Views)
This has been a great tool, and this latest version has really been polished.  The installer VI works great.
 
However, if you already have the older version of the tool, it will show up twice in the tools menu, once for the old and once for the new.  It looks like deleting the Code Capture Tool.llb from the c:\Program Files\National Instruments\ LV X.X\Project directory will take care of that?
 
Does anything else need to be done to clear out traces of the old version of the tool?
 
 
0 Kudos
Message 7 of 35
(8,801 Views)

Yeah, the CCT is a great tool for manual & documentation purposes! Smiley Happy

I ve recently changed my job; and it has been a good last month of doing the VI documentation & the project manual using the CCT in my previous company, with the older version from Starware post in the Breakpoint forum.

Now, in my current company, the first thing I installed for LV is the CCT latest version from LAVA. Smiley Very Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 8 of 35
(8,790 Views)


@tst wrote:


@GerdW wrote:

But you should note: before downloading from LAVA you have to register in this forum as well...

This is only an issue with the Code Repository. You can download from the forums without registering. I'll tell Michael about it.
 
In the meantime, here's the current version.
Note: the CCT should work with any version later than 6.1.



Sorry to disappoint you, the first version that is  supported is 7.0. It is simply not possible to capture an image of the BD in LabVIEW 6.
In the meantime, Michael Availiotis has enabled the download of Code Repository items without logging in!

Ton

PS most of the great ideas are from Tst
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 9 of 35
(8,776 Views)


@TonP wrote:


@tst wrote:


@GerdW wrote:

But you should note: before downloading from LAVA you have to register in this forum as well...

This is only an issue with the Code Repository. You can download from the forums without registering. I'll tell Michael about it.
 
In the meantime, here's the current version.
Note: the CCT should work with any version later than 6.1.



Sorry to disappoint you, the first version that is  supported is 7.0. It is simply not possible to capture an image of the BD in LabVIEW 6.
In the meantime, Michael Availiotis has enabled the download of Code Repository items without logging in!

Ton

PS most of the great ideas are from Tst


Hi Ton,
 
I think thats what tst meant to say... Smiley Wink
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 10 of 35
(8,755 Views)