Technical information

Programming - Asset Management
92
RMS Enterprise - NetLinx Programmer’s Guide
The following code snippet provides an example of registering asset control methods and asset control method arguments:
// SETUP
RmsAssetControlMethodEnqueue(assetClientKey,
'touch.panel.setup',
'Enter Setup',
'Enter setup configuration pages on touch panel user interface');
// SLEEP
RmsAssetControlMethodEnqueue(assetClientKey,
'touch.panel.sleep',
'Sleep',
'Put the touch panel user interface into sleep mode');
// BRIGHTNESS LEVEL
RmsAssetControlMethodEnqueue(assetClientKey,
'touch.panel.brightness',
'Set Brightness Level',
'Set the display brightness level on the touch panel user interface');
// BRIGHTNESS LEVEL ARGUMENT
RmsAssetControlMethodArgumentLevel(assetClientKey,
'touch.panel.brightness',
0,
'Brightness Level',
'Available range 1-100', 70, 1, 100, 1);
// MUTE ON/OFF
RmsAssetControlMethodEnqueue(assetClientKey,
'touch.panel.volume.mute',
'Set Volume Mute',
'Set the audio mute status on the touch panel user interface');
// MUTE ON/OFF ARGUMENT
RmsAssetControlMethodArgumentBoolean(assetClientKey,
'touch.panel.volume.mute',
0,
'Mute On',
'Mute ON/OFF',
FALSE);
// when done queuing all asset control methods and
// arguments for this asset, we just need to submit
// them to finalize and register them with the RMS server
RmsAssetControlMethodsSubmit(assetClientKey);
Asset Control Method Arguments - Required Information (Cont.)
Default Value (String)
[OPTIONAL]
Provide a default argument value that is preselected for this asset control method argument.
Minimum Value
(Signed Long)
[OPTIONAL]
This attribute only applies to control method arguments of a numeric data type: Number, Decimal, Level.
It is optional for data types Number and Decimal and required for data type Level.
This attribute specifies the lowest possible value that this argument value can reach.
Maximum Value
(Signed Long)
[OPTIONAL]
This attribute only applies to control method arguments of a numeric data type: Number, Decimal, Level.
It is optional for data types Number and Decimal and required for data type Level.
This attribute specifies the lowest possible value that this argument value can reach.
Step Value (Integer)
[OPTIONAL]
This attribute only applies to control method arguments of a numeric data type: Number and Level.
This attribute specifies the incremental value steps that the RMS UI will enforce when a user clicks UP or
DOWN on the numeric value stepper control.
Enumeration (String)
[OPTIONAL]
This parameter attribute only applies to and is required for asset control method arguments of data type:
Enumeration.
This attribute should contain a pipe delimited list of string values.