Technical information
Programming - Asset Management
72
RMS Enterprise - NetLinx Programmer’s Guide
Asset Parameter Set Value Functions via Update Queue (Cont.)
RmsAssetParameter
EnqueueSetValueLevel
Description: This function is used to set a new asset parameter value to the RMS server. The update is not sent
immediately, but rather placed in an update queue waiting for a submission call.
This function will set an asset parameter of data type: LEVEL
Arguments:
• CHAR assetClientKey[] - asset client key
• CHAR parameterKey[] - monitored parameter key
• SLONG parameterValue - monitored parameter value
Returns: 1 if call was successful; 0 if call was unsuccessful
Syntax:
DEFINE_FUNCTION CHAR RmsAssetParameterEnqueueSetValueLevel(CHAR assetClientKey[],
CHAR parameterKey[],
SLONG parameterValue)
{
// enqueue the asset parameter update
RETURN RmsAssetParameterEnqueueSetValue(assetClientKey,
parameterKey,
ITOA(parameterValue));
}
RmsAssetParameter
EnqueueSetValue
Description: This function is used to set a new asset parameter value to the RMS server. The update is not sent
immediately, but rather placed in an update queue waiting for a submission call.
This function will set an asset parameter of data type: STRING
Arguments:
• CHAR assetClientKey[] - asset client key
• CHAR parameterKey[] - monitored parameter key
• CHAR parameterValue[] - monitored parameter value
Returns: 1 if call was successful; 0 if call was unsuccessful
Syntax:
DEFINE_FUNCTION CHAR RmsAssetParameterEnqueueSetValue(CHAR assetClientKey[],
CHAR parameterKey[],
CHAR parameterValue[])
{
// enqueue the asset parameter update
RETURN RmsAssetParameterEnqueueUpdateValue(assetClientKey,
parameterKey,
RMS_ASSET_PARAM_UPDATE_OPERATION_SET,
parameterValue);
}