package require n568b
::n568b::Id controller node
::n568b::GetAllParameters controller node
::n568b::GetOffset controller node
::n568b::GetChannelParameters controller node channel
::n568b::GetMuxStatus controller node
::n568b::SetFineGain controller node channel value
::n568b::SetCoarseGain controller node channel value
::n568b::SetPole0 controller node channel value
::n568b::SetShapingTime controller node channel value
::n568b::SetPolarity controller node channel value
::n568b::SetOutputConfiguration controller node channel value
::n568b::SetOffset controller node value
::n568b::EnableMuxOut controller node
::n568b::DisableMuxOut controller node
The n568b package provides support for controlling and monitoring the CAEN N568b shaping amplifier over the CAEN V288 high speed VME CAENnet controller. CAENnet support is in terms of controller handles. A controller handle is obtained via the caennet::create procedure (see caennet(3)). This controller rep- resents a single CAEN V288 controller. On the CAENnet run by that controller, each device must be con- figured to have a uniqe node address or id. In the case of the N568b module, this node id is set via switches on the module front panel. Thus we see that all of the procs in this package operate on a mod- ule identifies by controller and node.
Subsequent paragraphs provide operational details for each procedure this package supports.
Returns the node id string of a module. See the N568b manual for information about the structure of this string. ::n568b::GetAllParameters Returns information about all parameters. The return value is in the form of a proper Tcl list containing seventeen (17) elements. The last element is the module common offset value. Each of the other 16 elements is a list describing the parameters of each of the 16 channels in the module. Each channel parameter list provides:
The channel fine gain.
The channel pole 0 correction.
The channel polarity (+ or -).
The channel output configuration (normal or inverted).
The shaping time in microseconds.
The channel coarse gain.
Returns the current value of the module's common offset. ::n568b::GetChannelParameters returns the settings associated with channel. This is in the same form as the settings list for each channel returned by ::n568b::GetAllParameters. Note that it is faster to do a call to ::n568b::GetAllParameters than to do a call for each channel to n568b::GetChannelParameters.
Returns the output multiplexor status of the module. The return value as a two element Tcl list. The first element of the list is either on or off indicating the state of the multiplexor. The second element of the list is the channel being monitored by the output multiplexor and is only meaningful if the first list element is on.
Sets the fine gain for
channel
to
value
.
Sets the coarse gain for channel to value. Note that the coarse gain value is a value between 0 and 7 and that the actual coarse gain is approximately 2**value.
Set the pole 0 correction magnitude for
channel
to
value
.
Set the shaping time for channel to value. Valid value can be:
0.2 microseconds
1.0 microseconds
3.0 microseconds
6.0 microseconds
Set the the polarity of
channel
to
value
.
A value of
0 means positive,
1 means negative.
Sets the output configuration of
channel
. If
value
is
0, the output is direct. If 1, inverted.
Sets the module common offset.
Enables the multiplexed output. Note that the channel that appears on the output multiplexor is the one last accessed, and that this will change dynamically if you access other channels after turning on the multiplexor.
Disables the multiplexor output