Custom Device Monitoring Programming
52
RMS NetLinx Programmer’s Guide
enumeration list. For Number parameters, slMin and slMax define the range the
value is expected to have. For Index and Enum, cEnumList contains the allowed
values of the parameter.
Setting Parameter Values
You can set a parameter value any time after the RMS engine module has
connected to the RMS server. Before setting the value of a parameter, the
parameter must be registered.
When registering parameters, you can supply the initial value. Therefore, you
will not need to set the parameter explicitly when it is registered, only subsequent
changes.
The include file provides four functions for setting parameter values. They are:
RMSChangeNumberParam(dvDPS, cName, nOp, slValue)
RMSChangeIndexParam(dvDPS, cName, nValue)
RMSChangeStringParam(dvDPS, cName, nOp, cValue)
RMSChangeEnumParam(dvDPS, cName, cValue)
The dvDPS is the device number of the device with which this parameter is
associated. cName is the name of the parameter to set.
nOp can be one of the following values:
RMS_PARAM_SET (0),
RMS_PARAM_INC (1),
RMS_PARAM_DEC (2),
RMS_PARAM_MULTIPLY (3),
RMS_PARAM_DIVIDE (4),
RMS_PARAM_RESET (5).
These constants allow you to control whether the supplied value is set, added to,
subtracted from, multiply with, divided by the number in the database or if you
simply want the value in the database reset to the values supplied during
parameter registration.
slValue, nValue and cValue are the current value with which the operation will be
performed. Notice that Index and Enum parameters so do not support the nOp
argument. The results of mathematical operation on an Index or Enum parameter
are undefined. Note that nValue for Index parameters are 0 based. The first
Содержание RMS 3.0
Страница 1: ...Software NetLinx Programmer s Guide RMS Resource Management Suite 3 0 ...
Страница 4: ......
Страница 10: ...Overview 2 RMS NetLinx Programmer s Guide ...
Страница 12: ...System Requirements 4 RMS NetLinx Programmer s Guide ...
Страница 22: ...Concepts 14 RMS NetLinx Programmer s Guide ...
Страница 62: ...Custom Device Monitoring Programming 54 RMS NetLinx Programmer s Guide ...