next up previous
Next: PAR_MIX0x - Obtains from a parameter a character value from either a menu of options or within a numeric range
Up: Reference Manual
Previous: PAR_MAXx - Sets a maximum value for a parameter

PAR_MINx - Sets a minimum value for a parameter    

Description:
This routine sets a minimum value for the specified parameter. The value will be used as a lower limit for any value subsequently obtained for the parameter.

If the routine fails, any existing minimum value will be unset.

Invocation:
CALL PAR_MINx( PARAM, VALUE, STATUS )

Arguments:
PARAM = CHARACTER * ( * ) (Given)
The parameter name.
VALUE = ? (Given)
The value to be set as the minimum. It must not be outside any RANGE specified for the parameter in the interface file.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:
  • There is a routine for each of the data types character, integer, real, and double precision: replace "x" in the routine name by C, I, R, or D respectively as appropriate. The VALUE argument must have the corresponding data type. If the parameter has a different type, the minimum value will be converted to the type of the parameter which must be character, double precision, integer, or real.
  • If a maximum value has been set (using PAR_MAXx) that is less than the minimum at the time the parameter value is obtained, only values between the limits will not be permitted.
  • The minimum value set by this routine overrides any lower RANGE value which may have been specified in the interface file. The specified value must not be outside any RANGE values. The minimum value may also be selected as the parameter value - again in preference to any lower RANGE value - by specifying MIN as the parameter value on the command line or in response to a prompt.



next up previous
Next: PAR_MIX0x - Obtains from a parameter a character value from either a menu of options or within a numeric range
Up: Reference Manual
Previous: PAR_MAXx - Sets a maximum value for a parameter

PAR Interface to the ADAM Parameter System
Starlink User Note 114
Malcolm J. Currie
Alan J. Chipperfield
1999 September 24
E-mail:ussc@star.rl.ac.uk