next up previous
Next: PAR_MINx - Sets a minimum value for a parameter
Up: Reference Manual
Previous: PAR_GTD0L - Obtains a logical value from a parameter with a dynamic default

PAR_MAXx - Sets a maximum value for a parameter    

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

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

Invocation:
CALL PAR_MAXx( PARAM, VALUE, STATUS )

Arguments:
PARAM = CHARACTER*(*) (Given)
The parameter name.
VALUE = ? (Given)
The value to be set as the maximum. 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 maximum value will be converted to the type of the parameter which must be character, double precision, integer, or real.
  • If a minimum value has been set (using PAR_MINx) that is greater than the maximum at the time the parameter value is obtained, only values between the limits will not be permitted.
  • The maximum value set by this routine overrides any upper RANGE value which may have been specified in the interface file. The specified value must not be outside any RANGE values. The maximum value may also be selected as the parameter value - again in preference to any upper RANGE value - by specifying MAX as the parameter value on the command line or in response to a prompt.



next up previous
Next: PAR_MINx - Sets a minimum value for a parameter
Up: Reference Manual
Previous: PAR_GTD0L - Obtains a logical value from a parameter with a dynamic default

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