Halwish

'halwish' is an extension to the official 'wish' tcl/Tk interpreter to use the HAL library for the access of VME modules.

Source

halwish.tar.gz Version 0.1, dated 2002-12-06. Fully functional for VME modules. Converts any HardwareAccessException-s to TCL_ERROR-s.

Requirements

You need Tk 8.3, and an installed and working HAL version, with the appropriate bus adapter, implying a PCI-VME interface.

Documentation

The README file comes with the sources.

Compilation

Edit the variables in the Makefile, then make.

Usage

Use exactly as wish, with the addition of one command:

card [name] [base address] [address map]

This creates a new command [name] that communicates to the card at base address [base address] using the address map in [address map].

With one argument it returns the value read from the given address, with two arguments it writes the value of the second argument to the address given in the first argument and returns the empty string:

[name] [address item]
[name] [address item] [value]

Example

./halwish TTCvi.tk

Limitations

Legal

This program was developed by Akos Csilling as part of his work at CERN. The usual CERN rules apply.