AMX RMS Technické informace Strana 88

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 220
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 87
Programming - Asset Management
70
RMS Enterprise - NetLinx Programmer’s Guide
Asset Parameter Set Value Functions (Cont.)
RmsAssetParameter
SetValue
Description: This function is used to set a new asset parameter value to the RMS server immediately.
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 RmsAssetParameterSetValue(CHAR assetClientKey[],
CHAR parameterKey[],
CHAR parameterValue[])
{
// submit the asset parameter update now
RETURN RmsAssetParameterUpdateValue(assetClientKey,
parameterKey,
RMS_ASSET_PARAM_UPDATE_OPERATION_SET,
parameterValue);
}
RmsAssetParameter
UpdateValue
Description: This function is used to update an asset parameter value to the RMS server immediately.
Arguments:
CHAR assetClientKey[] - asset client key
CHAR parameterKey[] - monitored parameter key
CHAR parameterOperation[] - update operation
CHAR parameterValue[] - update parameter value
Returns: 1 if call was successful; 0 if call was unsuccessful
Syntax:
DEFINE_FUNCTION CHAR RmsAssetParameterUpdateValue(CHAR assetClientKey[],
CHAR parameterKey[],
CHAR parameterOperation[],
CHAR parameterValue[])
{
STACK_VAR CHAR rmsCommand[RMS_MAX_CMD_LEN];
// ensure RMS is ONLINE, REGISTERED, and ready for ASSET registration
IF(![vdvRMS,RMS_CHANNEL_ASSETS_REGISTER])
{
RETURN FALSE;
}
// ensure an asset client key has been provided
IF(assetClientKey == '')
{
SEND_STRING 0, "'>>>> RMS API ERROR <RmsAssetParameterUpdateValue> :: missing asset client key for
parameter: ',parameterKey";
RETURN FALSE;
}
// ensure a parameter key has been provided
IF(parameterKey == '')
{
SEND_STRING 0, '>>>> RMS API ERROR <RmsAssetParameterUpdateValue> :: missing parameter key';
RETURN FALSE;
}
// if an operation was not provided, then apply the SET operation
IF(parameterOperation == '')
{
parameterOperation = RMS_ASSET_PARAM_UPDATE_OPERATION_SET;
}
// submit the asset parameter update now
rmsCommand = RmsPackCmdHeader('ASSET.PARAM.UPDATE');
rmsCommand = RmsPackCmdParam(rmsCommand,assetClientKey);
rmsCommand = RmsPackCmdParam(rmsCommand,parameterKey);
rmsCommand = RmsPackCmdParam(rmsCommand,parameterOperation);
rmsCommand = RmsPackCmdParam(rmsCommand,parameterValue);
rmsCommand = RmsPackCmdParam(rmsCommand,'true'); // SUBMIT-NOW = TRUE
SEND_COMMAND vdvRMS, rmsCommand;
RETURN TRUE;
}
Zobrazit stránku 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 219 220

Komentáře k této Příručce

Žádné komentáře

OmniMount Tria B manuali

Manuali dei proprietari e guide per l'utente per Staffa a muro con snodo OmniMount Tria B.
We fornisce 1 manuali pdf OmniMount Tria B per scaricare gratuitamente in base al tipo di documento: Manuale delle Istruzioni






Più prodotti e manuali per Staffa a muro con snodo OmniMount

Modelli Tipo di Documento
NC80T Manuale delle Istruzioni     OmniMount NC80T, 28 pagine
UCL-X B Manuale delle Istruzioni     OmniMount UCL-X Platinum, 32 pagine
VB60C Manuale delle Istruzioni    OmniMount VB60C, 20 pagine
WM2-L Manuale delle Istruzioni     OmniMount WM2-L, 28 pagine
OL50C Manuale delle Istruzioni     OmniMount OL50C, 28 pagine
WM1-M Manuale delle Istruzioni      OmniMount WM1-M, 28 pagine
1N1-L B Manuale delle Istruzioni      OmniMount 1N1-L P, 28 pagine
OL50FT Manuale delle Istruzioni     OmniMount OL50FT, 24 pagine
ULPF-M Manuale delle Istruzioni     OmniMount ULPF-M, 40 pagine
OMN0171 Manuale delle Istruzioni    OmniMount UAM Platinum, 28 pagine