Jump to content

Code Capture Tool

From LabVIEW Wiki
Revision as of 05:13, 15 November 2007 by Tcplomp (talk | contribs) (GUI)

Code Capture Tool

Introduction

The Code Capture Tool (or CCT) is a LabVIEW development tool targeted at LabVIEW users to share images of their code on internet forums. It is originally released by Chilly Charlie on the NI Forums as starware. It transformed in a multi-OS multi LabVIEW version tool for creating code-shots and documentation shots. A collaboration between Yen and Ton Plomp resulted in the 0.9.1 version of the CCT that is currently available through the LAVA CR at [[1]].

Interface

The CCT offers two interaces to make and distribute screenshots 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.

Front Panel Settings

The Front Panel listbox supplies the following options:

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:

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:

Item Copied item Remarks
None Nothing
Path Path of the captured image On Linux/Mac only in LabVIEW 8.x
Image The captured image Only on Windows

Layout Settings

The Layout picture ring supplies the following layout options:

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 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, the tip-strip will show the folder.

Resetting the folder

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

API

The API provides an interface to the various functions of the CCT. It's palette is accessible under the user.lib\Code Capture Tool.

Licensing

The CCT is licensed under the BSD license