WorkBench

DESCRIPTION

This module is designed to supply a single number which can be fed into other modules, such as OrthoSlice as the slice number. It can usefully used to allow fine control over numeric parameters - for example, a number can be single stepped by an EXACT set step in either direction. This is useful for stepping through values in an orderly fashion, as the slider widget at present doesn't allow single precise-stepping. Simply wire the Current Value outout parameter into any other parameter that you want to control.

Fire starts chucking out numbers from the set bounds, according to the settings of the radio buttons.

In additon, the module can be used as a basic animation system by setting the Start and End sliders, choosing some other stuff, and hitting the Fire button. The button will simply pump out all the relevant numbers - note that it doesn't do anything fancy like using timers ! The numbers are simple thrown out on the Current Value port. This seems to work, but maybe when many many numbers are generated the sytem might get confused - ah well...Anyway, every time you hit the fire button, the module will generate the correct chain of numbers, as set up by the sliders and buttons. If you generate lots on a slow SGI, then disabling the yellow firing bar on modules is highly recommended.

Finally, this was written very quickly as a test of the Module Builder - it doesn't claim to be a brilliant bit of code, but has worked for our purposes.

It also does a bit of checking to keep Start always less than End, and keeps the bounds on the Current Value sensible.

INPUTS

WIDGETS

Port: StartType: Slider
The start value for any animation - this is also mapped onto the lower bound of the Current Value

Port: EndType: Slider
The end value for any animation - this is also mapped onto the upper bound of the Current Value

Port: StepType: Slider
This value is the step that will be applied to any operations on the VCR-type buttons.

Port: RepeatType: Slider
How many times to repeat the fire operation - only activated when the N-Times button is selected.

Port: DirectionType: Radio BoxMenu Item: ForwardMenu Item: BackwardMenu Item: FlipFlop
Which way to step when the firing commences. Backwards (from End to Start), Forwards (vice versa), or FlipFlop (forward then backwards)

Port: Current ValueType: Slider
The important slider ! This is the one you typically wire elsewhere.

Port: FireType: Button
Firing/Animation sequences are only activated when this is pressed.

Port: ModeType: Radio BoxMenu Item: OnceMenu Item: N-Times
Whether to do the animation/firing sequence once, or N-Times (in which case the N is taken from the Repeat slider)

Port: FFType: Button
Set the Current Value to End.

Port: RRType: Button
Set the Current Value to Start.

Port: FType: Button
Set the Current Value one step unit higher.

Port: RType: Button
Set the Current Value one step unit lower.

OUTPUTS

PROBLEMS

Not really any problems, except that its not the best module under the sun.

If you start a module firing on a long sequence of numbers, it may take an age to get through them, and you can't interrupt the flow !

For more communication

About Us

The Numerical Algorithms Group (NAG) delivers trusted, high quality numerical computing software and high performance computing (HPC) services. For four decades NAG experts have worked closely with world-leading researchers in academia and industry to create powerful, accurate and flexible software which today is relied upon by tens of thousands of users, companies, and learning institutions as well as numerous independent software vendors. ...more