
Code Generation
51
RMS CodeCrafter
DEFINE_VARIABLE Section
Device Arrays
Main Panels
- CodeCrafter creates a device array for all Main Panels. This array is used as a
parameter to the RMSUIMod and RMSHelpUIMod modules.
This array is created only if the user selects
Main and Welcome Panels
under Scheduling Options,
or selects the
Include Help Desk Code
option.
Welcome Panels
- CodeCrafter creates a device array for all Welcome Panels.
This array is used as a parameter to the RMSUIMod and/ or RMSWelcomeOnlyUIMod module.
This array is created only if the user selects either Main and Welcome Panels or Welcome Panels
Only under Scheduling Options.
i!-ConnectLinx variables
String and Level parameters
- CodeCrafter creates variables to hold string and level parameters
from i!-ConnectLinx if the i!-ConnectLinx module is included. These variables are arrays and have
a length of three (3) to support standard i!-ConnectLinx functions.
These arrays will only be included if Pre-Meeting Presets and/or Monitor Source are selected in the
i!-ConnectLinx Options page.
// i!-ConnectLinx parameter storage
VOLATILE SLONG asnNumberLevelArgValues[3]
VOLATILE CHAR acStringEnumArgValues[3][50]
Channel Arrays
- CodeCrafter creates two channel arrays for i!-ConnectLinx if i!-ConnectLinx/
touch panel button mapping has been defined.
// i!-ConnectLinx Standard Actions
VOLATILE INTEGER nchCLButtons[] =
{
1002 // Power Off
// i!-ConnectLinx Touch Panel Buttons
VOLATILE INTEGER nchCLPanelButtons[] =
{
1 // Power Off
}
Device Parameters
CodeCrafter creates a variable for each device parameter specified, of the following types:
Number – Signed Long (SLONG)
Index – Integer (INTEGER)s
String – String (CHAR Array), length is RMS_MAX_PARAM_LEN
Enum– String (CHAR Array), length is RMS_MAX_PARAM_LEN
Each variable name will contain one of the following Hungarian prefixes, based on type:
Signed Long (SLONG) – sl
Integer (INTEGER) – n
CHAR array – c
The name itself is constructed as follows:
<prefix> + “RMS” + <device logical name> + <parameter name>
Each variable definition is defined as VOLATILE.
Each variable definition is preceded on the line above it by a comment containing its corresponding device’s
name.
Each definition is immediately followed on the same line with a comment containing the parameter name, like
so:
// dvLProj
VOLATILE SLONG slRMSLeftProjectorLampHours // Lamp Hours
Содержание 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...