Name: Code Capture Tool
Submitter: Ton PlompSubmitted: 03 Jul 2009
File Updated: 15 Feb 2010Category: LabVIEW IDEVersion: 2.1.0
LabVIEW Version: 7.0
License Type: BSD (Most common)
This tool provides an API for creating images of LabVIEW code as well a GUI for easy capturing and use of code.
Further info is provided in the help-screen (F1) of the program.
Installation
============
To install the Code Capture Tool, run the 'Install Code Capture Tool.vi' in the LabVIEW version of your choice.
A wizard will guide you through the installation procedure.
Usage
============
After installing and restarting LabVIEW, you can open the Code Capture Tool via the 'Tools' menu to capture an image of the current VI.
For more info open the About screen of the GUI.
Uninstalling
============
To remove the Code Capture Tool from your LabVIEW installation remove the following files in your LabVIEW folder:
Project\Code Capture Tool.vi
user.lib\CCT.mnu
And the following folder:
user.lib\_Code Capture Tool
In your LabVIEW data folder (in Windows, this is normally: My documents\LabVIEW Data) is a configuration file called Code Capture Tool.ini, which can be removed at any moment.
Location:North Carolina, United (by force) States, Earth
Version:LabVIEW 2009
Since:2007
Posted 27 November 2009 - 01:18 PM
I tried to install this from VIPM without success. VIPM couldn't install it for LV 8.2; 8.6 completed successfully but I got an "Error 7 occurred at Open Config Data.vi" in 8.6. I went back and ran Install Code Capture Tool.vi in 8.6 and got the same error.
Want a better way to work with Case Structures? Try my CaseSelect plugin for the JKI Right-Click Framework.
Don't just post pictures of your code. Post Snippets! Use the Code Capture Tool for all of your code-sharing needs.
~ In God we trust. Everybody else keep your hands where I can see them.
~ Tu ne cede malis sed contra audentior ito (do not give in to evil but proceed ever more boldly against it) ~ Virgil
Location:North Carolina, United (by force) States, Earth
Version:LabVIEW 2009
Since:2007
Posted 27 November 2009 - 07:24 PM
Ton Plomp, on 27 November 2009 - 09:00 AM, said:
what OS are you on?
Do you have read/write privileges on your LabVIEW data folder? Especially the Code Capture Tool.ini file?
Windows XP
Yes
Want a better way to work with Case Structures? Try my CaseSelect plugin for the JKI Right-Click Framework.
Don't just post pictures of your code. Post Snippets! Use the Code Capture Tool for all of your code-sharing needs.
~ In God we trust. Everybody else keep your hands where I can see them.
~ Tu ne cede malis sed contra audentior ito (do not give in to evil but proceed ever more boldly against it) ~ Virgil
I tried to install this from VIPM without success. VIPM couldn't install it for LV 8.2; 8.6 completed successfully but I got an "Error 7 occurred at Open Config Data.vi" in 8.6. I went back and ran Install Code Capture Tool.vi in 8.6 and got the same error.
Could you run the Install Code Capture Tool.vi on 8.2?
I have tested the OGP file on Vista for all versions I currently have (7.0-2009)
jcarmody, on 27 November 2009 - 08:24 PM, said:
Windows XP
Yes
Will try to check that later.
I will sent you an edited version privatly.
Location:North Carolina, United (by force) States, Earth
Version:LabVIEW 2009
Since:2007
Posted 27 November 2009 - 11:01 PM
I just tried Install Code Capture Tool.vi on 8.2 without success. I've attached a screen capture of the result. A small window flashes after a slight pause, before the error message comes up. Perhaps that's a clue to what's happening?
I tried the version you sent privately, but it didn't change anything. Perhaps I'll wait a few days to see if other folks with XP have the same trouble I'm having. I'd hate to have you spend time fixing something that isn't broken on your end.
Want a better way to work with Case Structures? Try my CaseSelect plugin for the JKI Right-Click Framework.
Don't just post pictures of your code. Post Snippets! Use the Code Capture Tool for all of your code-sharing needs.
~ In God we trust. Everybody else keep your hands where I can see them.
~ Tu ne cede malis sed contra audentior ito (do not give in to evil but proceed ever more boldly against it) ~ Virgil
I just tried Install Code Capture Tool.vi on 8.2 without success. I've attached a screen capture of the result. A small window flashes after a slight pause, before the error message comes up. Perhaps that's a clue to what's happening?
I tried the version you sent privately, but it didn't change anything. Perhaps I'll wait a few days to see if other folks with XP have the same trouble I'm having. I'd hate to have you spend time fixing something that isn't broken on your end.
Thanks.
I was able to replicate the problem you have (on XP)
Trying to debug...
Run the attached VI.Openrwconfig.vi(11.13K) Number of downloads: 84
This will open the BD of the VI with the bug.
Delete the input wire of the 'Open Config VI.'
Location:North Carolina, United (by force) States, Earth
Version:LabVIEW 2009
Since:2007
Posted 28 November 2009 - 04:34 PM
That did it for both LV versions. Thanks.
Want a better way to work with Case Structures? Try my CaseSelect plugin for the JKI Right-Click Framework.
Don't just post pictures of your code. Post Snippets! Use the Code Capture Tool for all of your code-sharing needs.
~ In God we trust. Everybody else keep your hands where I can see them.
~ Tu ne cede malis sed contra audentior ito (do not give in to evil but proceed ever more boldly against it) ~ Virgil
Location:North Carolina, United (by force) States, Earth
Version:LabVIEW 2009
Since:2007
Posted 30 November 2009 - 01:21 PM
The Code Capture Tool rocks. I love it. . The video was a great touch, too.
Just to be clear (because I can't test it) folks will be able to drag a snippet made with the CCT in LV 8.6 to a LV 2009 BD? I'm wondering when CCT 3.0 will come out, with the ability to extract the code from a snippet in pre-2009 versions...
Want a better way to work with Case Structures? Try my CaseSelect plugin for the JKI Right-Click Framework.
Don't just post pictures of your code. Post Snippets! Use the Code Capture Tool for all of your code-sharing needs.
~ In God we trust. Everybody else keep your hands where I can see them.
~ Tu ne cede malis sed contra audentior ito (do not give in to evil but proceed ever more boldly against it) ~ Virgil
Location:North Carolina, United (by force) States, Earth
Version:LabVIEW 2009
Since:2007
Posted 02 December 2009 - 01:14 AM
Ton Plomp, on 30 November 2009 - 12:18 PM, said:
Shouldn't be too hard (yours to try), but the code is embedded inside a PNG tag as a saved VI, just open up and dump like a merge VI.
Here's a LabVIEW 8.6 VI that takes a path to a snippet-embedded PNG file and creates a snippet.vi in the same folder. I'm not happy with the way I did it; it works, but I have a feeling that there's a more elegant method. The next thing I'd like to try is to make a JKI RCF plugin that converts a PNG on the BD into code. It would be nicer to be able to have LabVIEW respond to a PNG being dropped onto the BD; do you know how I might do that?
Hey folks! This picture is a Snippet made with the Code Capture Tool in LV 8.6!
Want a better way to work with Case Structures? Try my CaseSelect plugin for the JKI Right-Click Framework.
Don't just post pictures of your code. Post Snippets! Use the Code Capture Tool for all of your code-sharing needs.
~ In God we trust. Everybody else keep your hands where I can see them.
~ Tu ne cede malis sed contra audentior ito (do not give in to evil but proceed ever more boldly against it) ~ Virgil
I am wondering how your code actually works since the snippet is embedded in a 'niVI' chunk preceded by the chunk size.
The snippet is created in 'user.lib\_Code Capture Tool\CCT Class\Software\Methods\Private\Snippet\CCT_Snippet__CCT.vi'
Here is a screenshot of the VI that creates the chunk:
And I think this code should get the actual snippet (tested):
Want a better way to work with Case Structures? Try my CaseSelect plugin for the JKI Right-Click Framework.
Don't just post pictures of your code. Post Snippets! Use the Code Capture Tool for all of your code-sharing needs.
~ In God we trust. Everybody else keep your hands where I can see them.
~ Tu ne cede malis sed contra audentior ito (do not give in to evil but proceed ever more boldly against it) ~ Virgil
Location:North Carolina, United (by force) States, Earth
Version:LabVIEW 2009
Since:2007
Posted 02 December 2009 - 06:04 PM
Does it make sense to add this to the end of the VI? Is there a more appropriate way to open a VI for editing?
Want a better way to work with Case Structures? Try my CaseSelect plugin for the JKI Right-Click Framework.
Don't just post pictures of your code. Post Snippets! Use the Code Capture Tool for all of your code-sharing needs.
~ In God we trust. Everybody else keep your hands where I can see them.
~ Tu ne cede malis sed contra audentior ito (do not give in to evil but proceed ever more boldly against it) ~ Virgil
Location:North Carolina, United (by force) States, Earth
Version:LabVIEW 2009
Since:2007
Posted 24 December 2009 - 05:12 PM
Here's a LV7.1 llb that will extract a snippet made with the CCT, and a snippet to test it with. Put the llb into [LabVIEW]\project and restart LabVIEW to use it. Put the snippet in a BD, select it and click Tools -> GetCCTSnippet. Now all I need is for folks to make snippets instead of screen shots...
Want a better way to work with Case Structures? Try my CaseSelect plugin for the JKI Right-Click Framework.
Don't just post pictures of your code. Post Snippets! Use the Code Capture Tool for all of your code-sharing needs.
~ In God we trust. Everybody else keep your hands where I can see them.
~ Tu ne cede malis sed contra audentior ito (do not give in to evil but proceed ever more boldly against it) ~ Virgil