SpecTk

a displayer for SpecTcl

by D. Bazin

current release: version 1.3 (March 2010)

This program displays and manupulates spectra accumulated in SpecTcl. It is written mostly in Tcl/Tk using the BLT and Incr Tcl libraries. SpecTk uses SpecTcl as a server for the spectrum data, therefore SpecTcl has to be configured as a server. The C++ and Tcl code necessary are provided on this page. I have presented this program at the 2005 Tcl conference which took place in October 2005 in Portland, Oregon. The paper describes in detail most of the features, and the talk illustrates the usefulness of such a tool (for wide audience).

SpecTk offers the following features:

Here are the instructions to configure SpecTcl as a server:

  1. Download the tar file Server.tar
  2. Untar the file in the folder of your choice (could be your SpecTcl folder)
  3. This will create a folder called Server containing two files: server31.h and Server.tcl
  4. Add the following lines to your main SpecTcl.cpp file (called MySpecTclApp.cpp in the skeleton directory):
  5. Recompile SpecTcl
  6. Add the following line in your SpecTclRC.tcl startup file: source YourServerPath/Server.tcl
  7. Start SpecTcl. You should see a small frame on the bottom of your toplevel window indicating that the SpecTcl server is up and listening on a given port number. This port number should be used when connecting SpecTk to SpecTcl.

Here are the instructions to install SpecTk:

  1. Download the file MacOSX.tar (Intel processor only) for the Mac OS X version, Windows.zip for the Windows version, or Linux.tar for the Linux version. This Linux version works with a Debian installation but not with the new Ubuntu installation now being phased in at the NSCL. I have recompiled SpecTk for this new system and the two architectures available: the i686 architecture (32 bits element machines), and the x86_64 architecture (64 bits fishtank machines).
  2. Untar in the folder of your choice
  3. Define the environment variable SpecTkHome to point to the installation folder
  4. From the created folder, simply type: ./SpecTk , or from any other folder type the path to the SpecTk executable
  5. This should open the SpecTk window. Now connect to the SpecTcl of your choice and enjoy!

Prerequisites:

In addition to having Tcl/Tk installed on your system, you also need the BLT24 and Itcl (also called Incr Tcl) packages installed. Here are some guidelines to get this done on the various supported platforms:

The present release of SpecTk is version 1.3. Please report bugs, shortcomings and suggestions at bazin@nscl.msu.edu.

Bug fixes for version 1.3:

Bug fixes for version 1.2:

Bug fixes for version beta 1.1:

Bug fixes for version beta 1.0: