package require VhsWidgets
set name [VhsWidgets::environment create ?options?]
set name [VhsWidgets::channel create ?options?]
set name [VhsWidgets::channelStatus ?options?]
name method parameters...
This package contains a set of widgets that allow Tcl/Tk programmers to construct control panels for the iSeg VHS 404 and similar modules. See as well, vhqPanel(1tcl) for one such panel.
Three widgets are included.
provides a display of the environment of the board as sensed by the
onboard sensors. This widget includes a display of the power on board
power supply sensors as well as the temperature sensor.
VhsWidgets::channel provides a voltage and
current meter as well as the ability set the voltage set points, the
currentl limits to initiate ramps and to kill the channel.
access to the stauts and events in the modules as well as the ability
to attempt a reset of interlocking events and status bits.
In general a complete control panel will require the use of all of these widgets. The separation of these widgets provides the programmer with increased flexibility in control panel layout.
Each widget has its owns set of options although they all support and
-device option whose parameter is an
object that was botten by creating a
All widgets will also accept any option that is recognized by the
Tk frame widget and pass that option on to the top level frame that
enapsulates the megawidget.
This widget only supports the
This option is mandatory.
In addition to the mandatory
this widget supports the following options:
Indicates the wiget should monitor channel
n this parameter can
be dynamically modified after widget creation.
The default, if this option is not
specified is to monitor channel 0.
The user interface features a status button that monitors the state ofthe channel. This button is colored green if there are no faults and red if there are faults. The script specified here will be executed when this button is clicked.
On use of this button in a control panel application
might be to display a
widget that shows the status of the channel.
In addition to the
-device option which is mandatory
on creation, this widget supports the
option whose parameter specifies the specific channel to monitor/control.
If not supplied this defaults to 0. The channel can be dynamically
modified using the
All of the widgets in this package support a single method;
update that refreshes the display from the
device. In normal control applications this is hooked to a recurring
timer via code like: