Jump to content

Code Capture Tool: Difference between revisions

From LabVIEW Wiki
No edit summary
Line 1: Line 1:
{{TOCright}}  
{{TOCright}}  


A short how to is in the [http://www.screencast.com/t/2aWPdibJ9Sk here available]
A short how to is in the [http://www.screencast.com/t/2aWPdibJ9Sk here available]  


An extensive discussion and demo of the CCT&nbsp;is [http://www.screencast.com/t/Yhb9IAOc here].<br>
An extensive discussion and demo of the CCT&nbsp;is [http://www.screencast.com/t/Yhb9IAOc here].<br>  
 
Version 2.0 introduces a new option to create annotations with text and graphics and the possibility to create snippets. There is a demo-video available on [http://www.screencast.com/t/YTY4MjllZmIt Screencast].


== Download  ==
== Download  ==


Click [http://lavag.org/index.php?app=downloads&showfile=63 here] to download the file.
Click [http://lavag.org/index.php?app=downloads&showfile=63 here] to download the file.  


== Introduction ==
== Introduction ==


The Code Capture Tool (or CCT) is a [[LabVIEW]] development tool targeted at LabVIEW users to capture images of their code and make it easier to share those images in online forums. <br><br> The CCT is based on an idea and earlier versions originally released by [http://forums.ni.com/ni/profile?user.id=34024 Chilly Charly] on the [[NI Forums]] as [http://forums.ni.com/ni/board/message?board.id=BreakPoint&thread.id=1020 starware].<br> Later, it evolved to a multiple OS and LabVIEW versions tool for creating code-shots and documentation shots. <br> A collaboration between [http://forums.lavag.org/Yair-m1431.html Yair Neeman] and [[User:Tcplomp|Ton Plomp]] resulted in the 1.0 version of the CCT that is currently available through the [[LAVA CR]] at [http://forums.lavag.org/downloads-file121.html this site].
The Code Capture Tool (or CCT) is a [[LabVIEW]] development tool targeted at LabVIEW users to capture images of their code and make it easier to share those images in online forums. <br><br> The CCT is based on an idea and earlier versions originally released by [http://forums.ni.com/ni/profile?user.id=34024 Chilly Charly] on the [[NI Forums]] as [http://forums.ni.com/ni/board/message?board.id=BreakPoint&thread.id=1020 starware].<br> Later, it evolved to a multiple OS and LabVIEW versions tool for creating code-shots and documentation shots. <br> A collaboration between [http://forums.lavag.org/Yair-m1431.html Yair Neeman] and [[User:Tcplomp|Ton Plomp]] resulted in the 1.0 version of the CCT that is currently available through the [[LAVA CR]] at [http://forums.lavag.org/downloads-file121.html this site].  


= Interface =
= Interface =


The CCT offers two interfaces to make and distribute images of LabVIEW code - a [[Code Capture Tool#GUI|user interface]] and an [[Code Capture Tool#API|API]].  
The CCT offers two interfaces to make and distribute images of LabVIEW code - a [[Code Capture Tool#GUI|user interface]] and an [[Code Capture Tool#API|API]].  


== GUI ==
== GUI ==


The user interface of the CCT allows the user to select which parts of a [[Front Panel]] or [[Block Diagram]] should be captured. The resulting image will be stored on disc and optionally the image or the path can be copied to the OS clipboard.  
The user interface of the CCT allows the user to select which parts of a [[Front Panel]] or [[Block Diagram]] should be captured. The resulting image will be stored on disc and optionally the image or the path can be copied to the OS clipboard.  
Line 23: Line 25:
[[Image:CCT GUI.png|frame|center|Code Capture Tool user interface]]  
[[Image:CCT GUI.png|frame|center|Code Capture Tool user interface]]  


=== Front panel settings ===
=== Front panel settings ===


The Front Panel listbox supplies the following options:  
The Front Panel listbox supplies the following options:  
Line 47: Line 49:
|}
|}


=== Block diagram settings ===
=== Block diagram settings ===


The Block Diagram listbox supplies the following options:  
The Block Diagram listbox supplies the following options:  
Line 71: Line 73:
|}
|}


=== Clipboard settings ===
=== Clipboard settings ===


The clipboard listbox supplies the following options:  
The clipboard listbox supplies the following options:  
Line 95: Line 97:
|}
|}


=== Layout settings ===
=== Layout settings ===


The Layout picture ring supplies the following layout options:  
The Layout picture ring supplies the following layout options:  
Line 119: Line 121:
|}
|}


=== File settings ===
=== File settings ===


[[Image:CCT FileSettings.png]]  
[[Image:CCT FileSettings.png]]  
Line 125: Line 127:
The file settings consists of two controls, the string control to name the file (a .png extension is added to the name automatically) and a browse button to set the folder where the file should be stored. To detect which folder is currently used hover over one of the two controls and the tip-strip will show the folder.  
The file settings consists of two controls, the string control to name the file (a .png extension is added to the name automatically) and a browse button to set the folder where the file should be stored. To detect which folder is currently used hover over one of the two controls and the tip-strip will show the folder.  


==== Resetting the folder ====
==== Resetting the folder ====


By default the storage folder is the LabVIEW temp folder (which by default is the same as the OS temp folder), and can be changed with the browse for folder button. To revert to the temp folder use this button [[Image:CCT Reset.png]].  
By default the storage folder is the LabVIEW temp folder (which by default is the same as the OS temp folder), and can be changed with the browse for folder button. To revert to the temp folder use this button [[Image:CCT Reset.png]].  


=== Zoom function ===
=== Zoom function ===


[[Image:CCT Zoom.png]]  
[[Image:CCT Zoom.png]]  
Line 135: Line 137:
The zoom slider allows the user to zoom in and out on the captured image and inspect it in detail. This only affects the preview image and will not change the stored image.  
The zoom slider allows the user to zoom in and out on the captured image and inspect it in detail. This only affects the preview image and will not change the stored image.  


=== Help ===
=== Help ===


The help button [[Image:CCT Help.png]] calls the about window of the CCT including a short description of the main functions, a link to the webpage, a list of know issues and licensing info.  
The help button [[Image:CCT Help.png]] calls the about window of the CCT including a short description of the main functions, a link to the webpage, a list of know issues and licensing info.  


=== Capture ===
=== Capture ===


The capture button [[Image:CCT Capture.png]] will capture the image, save it, copy to the clipboard, save the currently selected options for the next time and close the window. This can also be done by pressing Enter.  
The capture button [[Image:CCT Capture.png]] will capture the image, save it, copy to the clipboard, save the currently selected options for the next time and close the window. This can also be done by pressing Enter.  


=== Key navigation ===
=== Key navigation ===


The CCT has several key shortcuts for easier access:  
The CCT has several key shortcuts for easier access:  
Line 165: Line 167:
|}
|}


== API ==
== API ==


The API provides an interface to the various functions of the CCT. Its palette is accessible under [[User.lib]]\Code Capture Tool. [[Image:CCT palette.PNG]]  
The API provides an interface to the various functions of the CCT. Its palette is accessible under [[User.lib]]\Code Capture Tool. [[Image:CCT palette.PNG]]  
Line 286: Line 288:
|}
|}


=== Methods ===
=== Methods ===


{| class="wikitable"
{| class="wikitable"
Line 319: Line 321:
These VIs are used to activate methods for the CCT.  
These VIs are used to activate methods for the CCT.  


==== Create CCT Instance ====
==== Create CCT Instance ====


[[Image:CCT Create CCT.png|Creat CCT Instance]]  
[[Image:CCT Create CCT.png|Creat CCT Instance]]  
Line 325: Line 327:
This VI must be called for every instance of the CCT, it creates a GOOP dataspace that will contain the data of the instance. Calling this VI must be done with a valid VI reference.  
This VI must be called for every instance of the CCT, it creates a GOOP dataspace that will contain the data of the instance. Calling this VI must be done with a valid VI reference.  


==== Capture Image ====
==== Capture Image ====


[[Image:CCT Capture VI Images CCT.png|Capture Images]]  
[[Image:CCT Capture VI Images CCT.png|Capture Images]]  
Line 331: Line 333:
This VI will apply the current settings and store the captured image in the CCT instance, additionally it returns the image itself.  
This VI will apply the current settings and store the captured image in the CCT instance, additionally it returns the image itself.  


==== Save Image ====
==== Save Image ====


[[Image:CCT Save Captured Image CCT.png|Save Image]]  
[[Image:CCT Save Captured Image CCT.png|Save Image]]  
Line 337: Line 339:
This VI will save the image to the path specified by a folder and filename stored in the CCT instance.  
This VI will save the image to the path specified by a folder and filename stored in the CCT instance.  


==== Copy to Clipboard ====
==== Copy to Clipboard ====


[[Image:CCT Copy Data to Clipboard CCT.png|Copy to Clipboard]]  
[[Image:CCT Copy Data to Clipboard CCT.png|Copy to Clipboard]]  
Line 343: Line 345:
This VI will store the data specified by the clipboard settings to the clipboard.  
This VI will store the data specified by the clipboard settings to the clipboard.  


==== Destroy CCT Instance ====
==== Destroy CCT Instance ====


[[Image:CCT Destroy CCT.png|Destroy CCT Instance]]  
[[Image:CCT Destroy CCT.png|Destroy CCT Instance]]  
Line 349: Line 351:
This VI must be called to close the CCT Instance and will free up used memory resources.  
This VI must be called to close the CCT Instance and will free up used memory resources.  


==== Generate File Name ====
==== Generate File Name ====


[[Image:CCT Generate File Name CCT.png|Generate filename]]  
[[Image:CCT Generate File Name CCT.png|Generate filename]]  
Line 355: Line 357:
This VI will generate a default filename based on the captured parts and VI name. This filename will not be stored inside the CCT session.  
This VI will generate a default filename based on the captured parts and VI name. This filename will not be stored inside the CCT session.  


=== Set properties ===
=== Set properties ===


{| class="wikitable"
{| class="wikitable"
Line 392: Line 394:
These VIs are used to change properties for the CCT instance.  
These VIs are used to change properties for the CCT instance.  


==== Set Front Panel Mode ====
==== Set Front Panel Mode ====


[[Image:CCT Set FP Mode CCT.png|Set FP mode]]  
[[Image:CCT Set FP Mode CCT.png|Set FP mode]]  
Line 398: Line 400:
This VI will change the current front panel capture mode.  
This VI will change the current front panel capture mode.  


==== Set Block Diagram Mode ====
==== Set Block Diagram Mode ====


[[Image:CCT Set BD Mode CCT.png|Set BD mode]]  
[[Image:CCT Set BD Mode CCT.png|Set BD mode]]  
Line 404: Line 406:
This VI will change the current block diagram capture mode.  
This VI will change the current block diagram capture mode.  


==== Set Layout Mode ====
==== Set Layout Mode ====


[[Image:CCT Set Layout Mode CCT.png|Set Layout mode]]  
[[Image:CCT Set Layout Mode CCT.png|Set Layout mode]]  
Line 410: Line 412:
This VI will change the current layout orientation.  
This VI will change the current layout orientation.  


==== Set Clipboard Mode ====
==== Set Clipboard Mode ====


[[Image:CCT Set Clipboard Mode CCT.png|Set Clipboard mode]]  
[[Image:CCT Set Clipboard Mode CCT.png|Set Clipboard mode]]  
Line 416: Line 418:
This VI will change the current clipboard mode.  
This VI will change the current clipboard mode.  


==== Set VI Ref ====
==== Set VI Ref ====


[[Image:CCT Set VI Ref CCT.png|Set Clipboard mode]]  
[[Image:CCT Set VI Ref CCT.png|Set Clipboard mode]]  
Line 422: Line 424:
This VI sets the reference of the VI that needs to be captured  
This VI sets the reference of the VI that needs to be captured  


==== Set Folder ====
==== Set Folder ====


[[Image:CCT Set Folder CCT.png|Set Folder]]  
[[Image:CCT Set Folder CCT.png|Set Folder]]  
Line 428: Line 430:
This VI will change the folder where the images will be saved.  
This VI will change the folder where the images will be saved.  


==== Set Filename ====
==== Set Filename ====


[[Image:CCT Set File CCT.png|Set Filename]]  
[[Image:CCT Set File CCT.png|Set Filename]]  
Line 434: Line 436:
This VI will change the filename of the stored image.  
This VI will change the filename of the stored image.  


=== Get properties ===
=== Get properties ===


{| class="wikitable"
{| class="wikitable"
Line 471: Line 473:
These VIs are used to retrieve properties from the CCT instance.  
These VIs are used to retrieve properties from the CCT instance.  


==== Get Front Panel Mode ====
==== Get Front Panel Mode ====


[[Image:CCT Get FP Setting CCT.png|Get FP mode]]  
[[Image:CCT Get FP Setting CCT.png|Get FP mode]]  
Line 477: Line 479:
This VI will read the current front panel capture mode.  
This VI will read the current front panel capture mode.  


==== Get Block Diagram Mode ====
==== Get Block Diagram Mode ====


[[Image:CCT Get BD Mode CCT.png|Get BD mode]]  
[[Image:CCT Get BD Mode CCT.png|Get BD mode]]  
Line 483: Line 485:
This VI will read the current block diagram capture mode.  
This VI will read the current block diagram capture mode.  


==== Get Layout Mode ====
==== Get Layout Mode ====


[[Image:CCT Get Layout Mode CCT.png|Get Layout mode]]  
[[Image:CCT Get Layout Mode CCT.png|Get Layout mode]]  
Line 489: Line 491:
This VI will read the current layout orientation.  
This VI will read the current layout orientation.  


==== Get Clipboard Mode ====
==== Get Clipboard Mode ====


[[Image:CCT Get Clipboard Mode CCT.png|Get Clipboard mode]]  
[[Image:CCT Get Clipboard Mode CCT.png|Get Clipboard mode]]  
Line 495: Line 497:
This VI will read the current clipboard mode.  
This VI will read the current clipboard mode.  


==== Get VI Ref ====
==== Get VI Ref ====


[[Image:CCT Get VI Ref CCT.png|Get VI Reference]]  
[[Image:CCT Get VI Ref CCT.png|Get VI Reference]]  
Line 501: Line 503:
This VI returns a reference to the that is currently captured in this isntance  
This VI returns a reference to the that is currently captured in this isntance  


==== Get Folder ====
==== Get Folder ====


[[Image:CCT Get Folder CCT.png|Get Folder]]  
[[Image:CCT Get Folder CCT.png|Get Folder]]  
Line 507: Line 509:
This VI will read the folder where the images will be saved.  
This VI will read the folder where the images will be saved.  


==== Get Filename ====
==== Get Filename ====


[[Image:CCT Get File CCT.png|Get Filename]]  
[[Image:CCT Get File CCT.png|Get Filename]]  
Line 513: Line 515:
This VI will read the filename of the stored image.  
This VI will read the filename of the stored image.  


=== Support ===
=== Support ===


{| class="wikitable"
{| class="wikitable"
Line 542: Line 544:
This submenu shows additional low level functions of the CCT.  
This submenu shows additional low level functions of the CCT.  


==== Capture Front panel ====
==== Capture Front panel ====


[[Image:CCT Capture Panel Picture CCT.png|Capture front panel]]  
[[Image:CCT Capture Panel Picture CCT.png|Capture front panel]]  
Line 548: Line 550:
Use this VI to have direct access to the capturing of a front panel.  
Use this VI to have direct access to the capturing of a front panel.  


==== Capture Block diagram ====
==== Capture Block diagram ====


[[Image:CCT Capture Diagram Picture CCT.png|Capture block diagram]]  
[[Image:CCT Capture Diagram Picture CCT.png|Capture block diagram]]  
Line 554: Line 556:
Use this VI to have direct access to the capturing of a block diagram.  
Use this VI to have direct access to the capturing of a block diagram.  


==== Show CCT GUI ====
==== Show CCT GUI ====


[[Image:Code Capture Tool GUI CCT.png|Show CCT GUI]]  
[[Image:Code Capture Tool GUI CCT.png|Show CCT GUI]]  
Line 560: Line 562:
Use this VI to show the user interface of the CCT.  
Use this VI to show the user interface of the CCT.  


==== 7.0 container VI ====
==== 7.0 container VI ====


[[Image:Container 70 CCT.png|7.0 container]]  
[[Image:Container 70 CCT.png|7.0 container]]  
Line 566: Line 568:
Use this VI if you want to build a source distribution or an executable and need to make sure all dynamic VIs are included. For LabVIEW 7.0 and up.  
Use this VI if you want to build a source distribution or an executable and need to make sure all dynamic VIs are included. For LabVIEW 7.0 and up.  


==== 8.0 container VI ====
==== 8.0 container VI ====


[[Image:Container 80 CCT.png|8.0 container]]  
[[Image:Container 80 CCT.png|8.0 container]]  
Line 572: Line 574:
Use this VI if you want to build a source distribution or an executable and need to make sure all dynamic VIs are included. For LabVIEW 8.0 and up, don't forget to include the 7.0 container.  
Use this VI if you want to build a source distribution or an executable and need to make sure all dynamic VIs are included. For LabVIEW 8.0 and up, don't forget to include the 7.0 container.  


= Known issues =
= Known issues =


{| class="wikitable"
{| class="wikitable"
Line 601: Line 603:
|}
|}


= Version History =
= Version History =


== Version 1.0.0 ==
== Version 1.0.0 ==


Release date 27 February 2008  
Release date 27 February 2008  
Line 610: Line 612:
*Support for panning of the preview
*Support for panning of the preview


== Version 0.9.1 ==
== Version 0.9.1 ==


Release date 7 November 2007<br> Support for LabVIEW 7.x and up<br> Support for all OS'es<br> Support for orientation<br> Support for selection<br> Support for customized naming<br> Support for customized folder<br>  
Release date 7 November 2007<br> Support for LabVIEW 7.x and up<br> Support for all OS'es<br> Support for orientation<br> Support for selection<br> Support for customized naming<br> Support for customized folder<br>  


= Licensing =
= Licensing =


The CCT is licensed under the BSD license  
The CCT is licensed under the BSD license  


[[Category:Third_party_LabVIEW_tools]]
[[Category:Third_party_LabVIEW_tools]]

Revision as of 18:00, 24 November 2009

A short how to is in the here available

An extensive discussion and demo of the CCT is here.

Version 2.0 introduces a new option to create annotations with text and graphics and the possibility to create snippets. There is a demo-video available on Screencast.

Download

Click here to download the file.

Introduction

The Code Capture Tool (or CCT) is a LabVIEW development tool targeted at LabVIEW users to capture images of their code and make it easier to share those images in online forums.

The CCT is based on an idea and earlier versions originally released by Chilly Charly on the NI Forums as starware.
Later, it evolved to a multiple OS and LabVIEW versions tool for creating code-shots and documentation shots.
A collaboration between Yair Neeman and Ton Plomp resulted in the 1.0 version of the CCT that is currently available through the LAVA CR at this site.

Interface

The CCT offers two interfaces to make and distribute images of LabVIEW code - a user interface and an API.

GUI

The user interface of the CCT allows the user to select which parts of a Front Panel or Block Diagram should be captured. The resulting image will be stored on disc and optionally the image or the path can be copied to the OS clipboard.

Code Capture Tool user interface

Front panel settings

The Front Panel listbox supplies the following options:

Listbox Item Captured parts
None Nothing
Selected All selected parts and items in between
Visible Everything visible in the current panel view
All Everything on the front panel

Block diagram settings

The Block Diagram listbox supplies the following options:

Listbox Item Captured parts
None Nothing
Selected All selected parts and items in between
Visible Everything visible in the current block diagram view
All Everything on the block diagram

Clipboard settings

The clipboard listbox supplies the following options:

Listbox Item Copied item Remarks
None Nothing
Path Path of the captured image
Image The captured image Only on Windows

Layout settings

The Layout picture ring supplies the following layout options:

Menu Ring Item Description
Front panel in top, block diagram below
Block diagram in top, front panel below
Front panel in left, block diagram on the right
Block diagram in left, front panel on the right

File settings

The file settings consists of two controls, the string control to name the file (a .png extension is added to the name automatically) and a browse button to set the folder where the file should be stored. To detect which folder is currently used hover over one of the two controls and the tip-strip will show the folder.

Resetting the folder

By default the storage folder is the LabVIEW temp folder (which by default is the same as the OS temp folder), and can be changed with the browse for folder button. To revert to the temp folder use this button .

Zoom function

The zoom slider allows the user to zoom in and out on the captured image and inspect it in detail. This only affects the preview image and will not change the stored image.

Help

The help button calls the about window of the CCT including a short description of the main functions, a link to the webpage, a list of know issues and licensing info.

Capture

The capture button will capture the image, save it, copy to the clipboard, save the currently selected options for the next time and close the window. This can also be done by pressing Enter.

Key navigation

The CCT has several key shortcuts for easier access:

Key Function
Enter Applies the current settings and does a capture
F1 Loads the about window centered on the help tab
F5 Refreshes the current image
Escape Closes the CCT without performing a capture

API

The API provides an interface to the various functions of the CCT. Its palette is accessible under User.lib\Code Capture Tool.

Methods <linkedimage>

img_src=Image:CCT_GetSessions.png wikipage=Code_Capture_Tool#Create_CCT_Instance </linkedimage>

<linkedimage>

img_src=Image:CCT_Capture_icon.png wikipage=Code_Capture_Tool#Capture_Image </linkedimage>

<linkedimage>

img_src=Image:CCT_SaveImage.png wikipage=Code_Capture_Tool#Save_Image </linkedimage>

<linkedimage>

img_src=Image:CCT_CopyToClipboard.png wikipage=Code_Capture_Tool#Copy_to_Clipboard </linkedimage>

<linkedimage>

img_src=Image:CCT_CloseSession.png wikipage=Code_Capture_Tool#Destroy_CCT_Instance </linkedimage>

<linkedimage>

img_src=Image:CCT_GenerateFileName.png wikipage=Code_Capture_Tool#Generate_File_Name </linkedimage>

Set properties <linkedimage>

img_src=Image:CCT_SetFP.png wikipage=Code_Capture_Tool#Set_Front_Panel_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_SetBD.png wikipage=Code_Capture_Tool#Set_Block_Diagram_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_SetLayout.png wikipage=Code_Capture_Tool#Set_Layout_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_SetClipboard.png wikipage=Code_Capture_Tool#Set_Clipboard_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_SetVI.png wikipage=Code_Capture_Tool#Set_VI_Ref </linkedimage>

<linkedimage>

img_src=Image:CCT_SetFolder.png wikipage=Code_Capture_Tool#Set_Folder </linkedimage>

<linkedimage>

img_src=Image:CCT_SetFileName.png wikipage=Code_Capture_Tool#Set_Filename </linkedimage>

Get properties <linkedimage>

img_src=Image:CCT_GetFP.png wikipage=Code_Capture_Tool#Get_Front_Panel_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_GetBD.png wikipage=Code_Capture_Tool#Get_Block_Diagram_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_GetLayout.png wikipage=Code_Capture_Tool#Get_Layout_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_GetClipboard.png wikipage=Code_Capture_Tool#Get_Clipboard_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_GetVI.png wikipage=Code_Capture_Tool#Get_VI_Ref </linkedimage>

<linkedimage>

img_src=Image:CCT_GetFolder.png wikipage=Code_Capture_Tool#Get_Folder </linkedimage>

<linkedimage>

img_src=Image:CCT_GetFileName.png wikipage=Code_Capture_Tool#Get_Filename </linkedimage>

Support <linkedimage>

img_src=Image:CCT_Support.png wikipage=Code_Capture_Tool#Support </linkedimage>

<linkedimage>

img_src=Image:CCT_CaptureFP.png wikipage=Code_Capture_Tool#Capture_Front_panel </linkedimage>

<linkedimage>

img_src=Image:CCT_CaptureBD.png wikipage=Code_Capture_Tool#Capture_Block_diagram </linkedimage>

<linkedimage>

img_src=Image:CCT_ShowGUI.png wikipage=Code_Capture_Tool#Show_CCT_GUI </linkedimage>

<linkedimage>

img_src=Image:CCT_70Container.png wikipage=Code_Capture_Tool#7.0_container_VI </linkedimage>

<linkedimage>

img_src=Image:CCT_80_Container.png wikipage=Code_Capture_Tool#8.0_container_VI </linkedimage>

Methods

Methods <linkedimage>

img_src=Image:CCT_GetSessions.png wikipage=Code_Capture_Tool#Create_CCT_Instance </linkedimage>

<linkedimage>

img_src=Image:CCT_Capture_icon.png wikipage=Code_Capture_Tool#Capture_Image </linkedimage>

<linkedimage>

img_src=Image:CCT_SaveImage.png wikipage=Code_Capture_Tool#Save_Image </linkedimage>

<linkedimage>

img_src=Image:CCT_CopyToClipboard.png wikipage=Code_Capture_Tool#Copy_to_Clipboard </linkedimage>

<linkedimage>

img_src=Image:CCT_CloseSession.png wikipage=Code_Capture_Tool#Destroy_CCT_Instance </linkedimage>

<linkedimage>

img_src=Image:CCT_GenerateFileName.png wikipage=Code_Capture_Tool#Generate_File_Name </linkedimage>

These VIs are used to activate methods for the CCT.

Create CCT Instance

Creat CCT Instance

This VI must be called for every instance of the CCT, it creates a GOOP dataspace that will contain the data of the instance. Calling this VI must be done with a valid VI reference.

Capture Image

Capture Images

This VI will apply the current settings and store the captured image in the CCT instance, additionally it returns the image itself.

Save Image

Save Image

This VI will save the image to the path specified by a folder and filename stored in the CCT instance.

Copy to Clipboard

Copy to Clipboard

This VI will store the data specified by the clipboard settings to the clipboard.

Destroy CCT Instance

Destroy CCT Instance

This VI must be called to close the CCT Instance and will free up used memory resources.

Generate File Name

Generate filename

This VI will generate a default filename based on the captured parts and VI name. This filename will not be stored inside the CCT session.

Set properties

Set properties <linkedimage>

img_src=Image:CCT_SetFP.png wikipage=Code_Capture_Tool#Set_Front_Panel_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_SetBD.png wikipage=Code_Capture_Tool#Set_Block_Diagram_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_SetLayout.png wikipage=Code_Capture_Tool#Set_Layout_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_SetClipboard.png wikipage=Code_Capture_Tool#Set_Clipboard_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_SetVI.png wikipage=Code_Capture_Tool#Set_VI_Ref </linkedimage>

<linkedimage>

img_src=Image:CCT_SetFolder.png wikipage=Code_Capture_Tool#Set_Folder </linkedimage>

<linkedimage>

img_src=Image:CCT_SetFileName.png wikipage=Code_Capture_Tool#Set_Filename </linkedimage>

These VIs are used to change properties for the CCT instance.

Set Front Panel Mode

Set FP mode

This VI will change the current front panel capture mode.

Set Block Diagram Mode

Set BD mode

This VI will change the current block diagram capture mode.

Set Layout Mode

Set Layout mode

This VI will change the current layout orientation.

Set Clipboard Mode

Set Clipboard mode

This VI will change the current clipboard mode.

Set VI Ref

Set Clipboard mode

This VI sets the reference of the VI that needs to be captured

Set Folder

Set Folder

This VI will change the folder where the images will be saved.

Set Filename

Set Filename

This VI will change the filename of the stored image.

Get properties

Get properties <linkedimage>

img_src=Image:CCT_GetFP.png wikipage=Code_Capture_Tool#Get_Front_Panel_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_GetBD.png wikipage=Code_Capture_Tool#Get_Block_Diagram_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_GetLayout.png wikipage=Code_Capture_Tool#Get_Layout_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_GetClipboard.png wikipage=Code_Capture_Tool#Get_Clipboard_Mode </linkedimage>

<linkedimage>

img_src=Image:CCT_GetVI.png wikipage=Code_Capture_Tool#Get_VI_Ref </linkedimage>

<linkedimage>

img_src=Image:CCT_GetFolder.png wikipage=Code_Capture_Tool#Get_Folder </linkedimage>

<linkedimage>

img_src=Image:CCT_GetFileName.png wikipage=Code_Capture_Tool#Get_Filename </linkedimage>

These VIs are used to retrieve properties from the CCT instance.

Get Front Panel Mode

Get FP mode

This VI will read the current front panel capture mode.

Get Block Diagram Mode

Get BD mode

This VI will read the current block diagram capture mode.

Get Layout Mode

Get Layout mode

This VI will read the current layout orientation.

Get Clipboard Mode

Get Clipboard mode

This VI will read the current clipboard mode.

Get VI Ref

Get VI Reference

This VI returns a reference to the that is currently captured in this isntance

Get Folder

Get Folder

This VI will read the folder where the images will be saved.

Get Filename

Get Filename

This VI will read the filename of the stored image.

Support

Support <linkedimage>

img_src=Image:CCT_CaptureFP.png wikipage=Code_Capture_Tool#Capture_Front_panel </linkedimage>

<linkedimage>

img_src=Image:CCT_CaptureBD.png wikipage=Code_Capture_Tool#Capture_Block_diagram </linkedimage>

<linkedimage>

img_src=Image:CCT_ShowGUI.png wikipage=Code_Capture_Tool#Show_CCT_GUI </linkedimage>

<linkedimage>

img_src=Image:CCT_70Container.png wikipage=Code_Capture_Tool#7.0_container_VI </linkedimage>

<linkedimage>

img_src=Image:CCT_80_Container.png wikipage=Code_Capture_Tool#8.0_container_VI </linkedimage>

This submenu shows additional low level functions of the CCT.

Capture Front panel

Capture front panel

Use this VI to have direct access to the capturing of a front panel.

Capture Block diagram

Capture block diagram

Use this VI to have direct access to the capturing of a block diagram.

Show CCT GUI

Show CCT GUI

Use this VI to show the user interface of the CCT.

7.0 container VI

7.0 container

Use this VI if you want to build a source distribution or an executable and need to make sure all dynamic VIs are included. For LabVIEW 7.0 and up.

8.0 container VI

8.0 container

Use this VI if you want to build a source distribution or an executable and need to make sure all dynamic VIs are included. For LabVIEW 8.0 and up, don't forget to include the 7.0 container.

Known issues

Description Status
After using a non-default path and resetting it to the default, the new setting (temp) is not used Solved in version 1.0
Installing on Linux fails due to case sensitivity Solved in version 1.0
Capturing a non-visible part on a multi-pane front panel fails A limitation due to the LabVIEW implementation of panes, most-likely not fixable
Saving an empty image returns an error Solved in version 1.0
Opening the CCT from the Getting Started Window locks up LabVIEW Solved in version 1.0
Possible High use of memory Investigating
Impossible to capture FP of locked VI Investigating

Version History

Version 1.0.0

Release date 27 February 2008

  • Bug-fixes
  • Support for panning of the preview

Version 0.9.1

Release date 7 November 2007
Support for LabVIEW 7.x and up
Support for all OS'es
Support for orientation
Support for selection
Support for customized naming
Support for customized folder

Licensing

The CCT is licensed under the BSD license