VisualDCT JCA Debug Plugin User's Manual

User's Manual

Project:VisualDCT-JCADebugPlugin 
Identification:CSL-MAN-04-XX
Status:Draft
Availability::/VisualDCT-JCADebugPlugin//MAN-VisualDCT_JCA_Debug_Plugin.xml
Creation:2003-09-21 (Matej Sekoranja)
Last Modification:2004-11-16 (Matej Sekoranja)
Copyright © 2003-2004 by Cosylab d.o.o. All Rights Reserved.

Scope

This document is a users manual of how to install, configure and use VisualDCT JCA debug plugin.

Audience

The audience of this document are all users of VisualDCT JCA debug plugin.

Table of Contents

1. Introduction

2. Requirements and Installation

3. Configuration

4. Running

5. Acknowledgements


References

Document History

How to Read This Document

This document's meta-information (authors, revision history, table of contents, ...) can be found above. What follows below is the body of the document. The body is composed of several sections, which may be further composed of subsections.

Typographical styles are used to denote entities of different kinds. For a full list of entities and their respective typographic conventions, please refer to the Styles section of the XML Documentation document.

When viewing the document in a non-printed form, it is possible to submit comments regarding a given section to the document's owner. This is achieved by clicking the mail icon next to the section title. For this to work, your mail must be configured to properly handle the mailto URLs.

1. Introduction

JCA Debug Plugin is a Visual Database Configuration Tool (VisualDCT) plugin allowing to display actual values in the control system inside the control boxes for records displayed within VisualDCT. Macro substitution is also supported.
Value retrieval is achieved using Java Channel Access (JCA).

2. Requirements and Installation

Plugin requirements are:

After installing VisualDCT and JCA native libraries successfully you are ready to install VisualDCT JCA debug plugin. CAJ (pure java CA implementation) can be used also.
Note that for JCA installation the only requirement is that directory containing JCA native libraries is in system path (LD_LIBRARY_PATH environment variable for Unix systems and PATH environment variable for Win32 systems). VisualDCT JCA debug plugin comes with its own with JCA classes.

VisuaDCT has to be started with JCA debug plugin classes in the classpath. This can be easily achieved using the following command:

	On Unix : java -cp VisualDCT.jar:vdctJCADebugPlugin.jar:jca-2.1.5.jar com.cosylab.vdct.VisualDCT
	On Win32: java -cp VisualDCT.jar;vdctJCADebugPlugin.jar;jca-2.1.5.jar com.cosylab.vdct.VisualDCT
		
Listing 1: An example of running VisualDCT with JCA debug plugin in the classpath.

See VisualDCT User's Manual for detailed information about VisualDCT startup.

To install JCA debug plugin start VisualDCT and go to   Plugins   -   Plugin Manager...  , click   Install   and select vdctJCADebugPlugin.jar file. The file contains .vdctplugins.xml file which will autoconfigure plugin.
Click   Start   and plugin will start (by default Autostart option is selected to enable plugin autostart on VisualDCT startup).

Image: MAN-VisualDCT_JCA_Debug_Plugin/PluginManager.png

Figure 1: Screenshot of Plugin Manager after successful installation.

An alternative way is to manually add plugin configuration to plugins configuration file (see Configuration).

3. Configuration

All plugin configuration is stored in plugins configuration file, located at $HOME/.vdctplugins.xml.

		 	
		  ...
		  	
		  <plugin class="com.cosylab.vdct.plugins.jcadebug.JCADebugPlugin" autostart="true">
		    <!-- param name="context" value="com.cosylab.epics.caj.CAJContext" /-->
		    <!-- param name="debug" value="true" /-->
		  </plugin>
			
		  ...
		  
		  
		
Listing 2: JCA debug plugin part of plugins configuration file.

Plugin has context param XML entry which value points to the JCA2 context (implementation) to be used by plugin.
To enable debug info output uncomment debug param XML entry.

4. Running

Once you have opened a database you want to debug, go to   Debug   -   Start   -   JCA Debug Plugin  . This will switch to debug mode. The plug will scan all record names in opened database for macros. If any is found, a file chooser will popup allowing you to select a macro substitution file. If you do not want to use any, click   Cancel  , otherwise select appropriate macro substitution file (see Macro Substitution and Include Tool pages for more information about the macro substitution file syntax).
If you selected a macro substitution file, a window will macro table will appear allowing you to select wanted macro set. Click   Select   button to apply selected macro set or   Select none   to stop monitoring the values.   Stop debugging   button will return back to edit mode. Debugging can be also stopped by   Debug   -   Stop  , or by   CTRL - T   keyboard shortcut.

Image: MAN-VisualDCT_JCA_Debug_Plugin/MacroSetSelector.png

Figure 2: Macro set selector.

In debug mode all record are given an extra area where value of the VAL field is shown. Value is updated on every value change and the same color conventions are used as are used in MEDM. The timestamp is displayed as well to enable the developer to see when was the last time the record was processed.
By default only VAL fields are monitored, however user can monitor any other accessible fields. To enable (an eye icon) or disable (a crossed eye icon) this, use visibility flag of the fields. This can be done in navigator by clicking on the left-most column of the field row. Value of the field is also shown in the record area in yellow colour.

Image: MAN-VisualDCT_JCA_Debug_Plugin/DebugSession.png

Figure 3: Debug session.

If during the monitoring timeout occurs (IOC goes down or JCA beacon is not received), this visually indicated by a clock sign over the record:

Image: MAN-VisualDCT_JCA_Debug_Plugin/Timeout.png

Figure 4: Timeout notification.

5. Acknowledgements

I would like to thank Swiss Light Source (SLS), especially Steve Hunt, for the ideas and for founding development of this plugin. Thanks to Diamond Light Source (DLS) for founding port to JCA2.

Document History

RevisionDateAuthorSectionModification
1.02003-09-21Matej SekoranjaallCreated.
1.12004-11-16Matej SekoranjaallPorted to JCA2.

References

IDAuthorReferenceRevisionDatePublisher
1Matej SekoranjaVisualDCT Project 2004Cosylab, Ltd.
2Matej SekoranjaVisualDCT latest build2.4.12542004Cosylab, Ltd.
3Matej SekoranjaJava Installation and Build Process of VisualDCT 2004Cosylab, Ltd.
4Matej SekoranjaVisualDCT User's Manual 2004Cosylab, Ltd.
5Matej SekoranjaVisualDCT JCA Debug Plugin2.02004Cosylab, Ltd.
6Sunil SahVisualDCT Plugins 2002Cosylab, Ltd.
7Matej SekoranjaJCA Pages2.1.52004Cosylab, Ltd.
8Matej SekoranjaCAJ Pages1.0.12004Cosylab, Ltd.
9M. KraimerMacro Substitution and Include Tool (MSI) 1999APS/ANL
10SLSSwiss Light Source (SLS) Pages 2003SLS
Image: ../../Common/Documentation/images/Cosylab.png