man8/3660tst

Table of Contents

Name

3660tst - Program a KSC3660 to output clock pulses

Synopsis

3660tst [crate] [slot] [type] [args]

Description

Program a Kinetic Systems 3660 clock generator to output clock pulses.

There are four operating modes. trig, once, once_lam, and loop. See the sections below for an explanation of each mode.

This program is normally used to test the AMS rare isotope hardware/software system. This program is part of the NEC AMS software package.

Arguments

crate - required

The crate number where the 3660 is installed.
slot - required

The slot number in the crate where the 3660 is installed.
mode - required

valid values are trig, once, once_lam, strig_once_lam, loop, and clear.

See the appropriate mode section for more information.

args - optional

a variable length argument list.

See the appropriate mode section for more information.

Environment Variables

CWRITE_DEVICE may be used to override opening /dev/camac. For example:

export CWRITE_DEVICE=/dev/camac2
3660tst 1 1 loop

trig mode

The arguments are: <crate> <slot> trig <cnt> <deltaT>

In this mode the 3660 outputs a burst of pulses each time it is triggered.

The number of clock pulses to output is set by the cnt argument.

The time between clock ticks may be optionally set by the deltaT argument, otherwise it defaults to 100uS.

The signal used to trigger the 3660 is connected to the trig 1 input on the front panel. Trigger occurs on the rising edge of the trigger signal.

The front panel clk out signal is connected to the device under test.

once mode

The arguments are: <crate> <slot> once <cnt> <deltaT>

In this mode the 3660 outputs one burst of pulses when the program is run.

The number of clock pulses to output is set by the cnt argument.

The time between clock ticks may be optionally set by the deltaT argument, otherwise it defaults to 100uS.

The signal used to trigger the 3660 is connected to the trig 1 input on the front panel. Trigger occurs on the rising edge of the trigger signal.

The front panel clk out signal is connected to the device under test.

once_lam mode

once_lam mode is identical to once mode except that 3660tst waits for the program loaded into the module to execute before exiting. This is done by by using a LAM, hence the name of the mode.

strig_once_lam mode

strig_once_lam mode is similiar to once mode except that the module is immediately software triggered and 3660tst waits for the program loaded into the module to execute before exiting. This is done by by using a LAM, hence the name of the mode.

loop mode

The arguments are: <crate> <slot> loop <deltaT>

loop mode provides a continuous pulse train until reprogrammed, reset, etc.

The time between clock ticks may be optionally set by the deltaT argument, otherwise it defaults to 100uS.

The front panel clk out signal is connected to the device under test.

clear mode

This issues a clear instruction to the module.

Examples

This example programs a 3660 located in crate 1 slot 4 to output 100 clock ticks at the default time between pulses each time it is triggered.

3660tst 1 4 trig 100

This example programs a 3660 located in crate 2 slot 5 to output 500 clock ticks with 200 uS between ticks each time it is triggered.

3660tst 2 5 trig 500 200

This example programs a 3660 located in crate 2 slot 5 to output a continuous pulse train with 200 uS between ticks.

3660tst 2 5 loop 200

Notes

At the moment (8-4-2003) usage of CWRITE_DEVICE is dubious because OpenLamChan() doesn’t allow specifying a pathname.

Manual page revision

$Id: 3660tst.8,v 1.7 2004/07/23 16:32:56 kitchen Exp $


Table of Contents