
Code Generation
53
RMS CodeCrafter
RMS Device Parameters
A custom function is generated for each parameter to set the value of the parameter and report it to the RMS
server. This function will follow the following structure:
(*******************************************)
(* Call Name: RMSSetLeftProjectorLampHours *)
(* Function: Set Lamp Hours *)
(* Param: Value *)
(* Return: None *)
(*******************************************)
DEFINE_FUNCTION RMSSetLeftProjectorLampHours(SLONG slValue)
LOCAL_VAR
CHAR bInit
{
IF (slRMSLeftProjectorLampHours <> slValue || bInit = FALSE)
RMSChangeNumberParam(dvLProj,'Lamp Hours',RMS_PARAM_SET,slValue)
slRMSLeftProjectorLampHours = slValue
bInit = TRUE
}
Module Definitions
RMS CodeCrafter generates the following module definitions in the DEFINE_START section.
Monitored Device/Support Modules
RMS CodeCrafter generates a module definition for each Monitored device that uses a Support Module. Each
module declaration is created using the Module name, the monitored devices virtual and actual device names,
and the RMS Engine’s virtual device name (vdvRMSEngine).
Each module definition is preceded by a comment containing the device name of the monitored device.
Source Usage
This module definition is generated if the user selects
Monitor Source Usage
in the i!-ConnectLinx Options
page.
// RMSSrcUsageMod - Tracks equipment usage.
DEFINE_MODULE 'RMSSrcUsageMod' mdlSrcUsage(vdvRMSEngine,
vdvCLActions)
RMS Engine
This module definition is always generated boilerplate.
// RMSEngineMod - The RMS engine. Requires i!-ConnectLinxEngineMod.
DEFINE_MODULE 'RMSEngineMod' mdlRMSEng(vdvRMSEngine,
dvRMSSocket,
vdvCLActions)
RMSUIMod
This module definition is generated if the user selects
Main and Welcome Panels
in the Scheduling Options.
// RMSUIMod - The RMS User Interface.
// Channel And Variable Text Code Defined Inside The Module
DEFINE_MODULE 'RMSUIMod' mdlRMSUI(vdvRMSEngine,
dvRMSTP,
dvRMSTPWelcome)
RMSWelcomeOnlyUIMod
This module definition is generated if the user selects
Welcome Panels Only
in the Scheduling Options.
// RMSWelcomeOnlyUIMod - The RMS Welcome Panel User Interface.
// Channel And Variable Text Code Defined Inside The Module
DEFINE_MODULE 'RMSWelcomeOnlyUIMod' mdlRMSUI(vdvRMSEngine,
dvRMSTPWelcome)
Содержание RMS CODECRAFTER
Страница 6: ...iv RMS CodeCrafter Table of Contents i ConnectLinx 67 Using i ConnectLinx 67...
Страница 10: ...Welcome to RMS CodeCrafter 4 RMS CodeCrafter...
Страница 44: ...RMS CodeCrafter Project Pages 40 RMS CodeCrafter...
Страница 67: ...RMS Concepts 66 RMS CodeCrafter...
Страница 70: ...i ConnectLinx 69 RMS CodeCrafter...