No one can tell me why this assett doesn't show up in RMS
deepforestgreen
Posts: 51
I'm trying to do something pretty simple: use a module to track lamp hours in RMS.
I've passed my code around to a few others and no one's figured out what I'm missing. It's a little embarrassing since I'm sure it's something simple, but it's eluding me. We work with RMS at my office regularly, but it's been a long time since we set up a new room and I've obviously lost my touch.
Everything compiles. The room interacts properly with RMS, but the projector does not. I can't figure out what is missing to make the projector report properly, or even show up.
Here's the relevant code:
DEFINE_DEVICE
dvmaster = 0:1:0
//Projector
dvEiki_EIPX5500 = 5001:3:0
vdvEiki_EIPX5500 = 41003:1:0
vdvRMS = 41001:1:0 // RMS Client Engine VDV (Duet Module)
vdvRMSGui = 41002:1:0 // RMS User Interface VDV (Duet Module)
vdvRMSSourceUsage = 33002:1:0 // RMS Source Usage Monitor
DEFINE_VARIABLE
(***********************************************************)
(* MODULE CODE GOES BELOW *)
(***********************************************************)
DEFINE_MODULE 'RmsNetLinxAdapter_dr4_0_0' mdlRMSNetLinx(vdvRMS)
(***********************************************************)
(* INCLUDE DEFINITIONS GO BELOW *)
(***********************************************************)
// include the RMS API constants & helper functions
#INCLUDE 'RmsApi'
(***********************************************************)
(* MODULE CODE GOES BELOW *)
(***********************************************************)
#INCLUDE 'RmsSourceUsage'
#INCLUDE 'RmsSystemEventHandler'
(*********************************)
(* RMS NetLinx Device Monitors *)
(*********************************)
DEFINE_MODULE 'RmsControlSystemMonitor' mdlRmsControlSystemMonitorMod(vdvRMS,dvMaster)
DEFINE_MODULE 'RmsSystemPowerMonitor' mdlRmsSystemPowerMonitorMod(vdvRMS,dvMaster)
DEFINE_MODULE 'RmsTouchPanelMonitor' mdlRmsTouchPanelMonitorMod_1(vdvRMS,dvTPCV7)
DEFINE_MODULE 'RmsDuetVideoProjectorMonitor' mdlRmsVideoProjectorMonitorMod(vdvRMS, vdvEiki_EIPX5500, dvEiki_EIPX5500)
// DEVICE MODULE GROUPS SHOULD ALL HAVE THE SAME DEVICE NUMBER
DEFINE_MODULE 'Eiki_EIPX5500_DisplayComponent' display(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nDisplayPages)
DEFINE_MODULE 'Eiki_EIPX5500_LampComponent' lamp(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nLampPages)
DEFINE_MODULE 'Eiki_EIPX5500_MenuComponent' module(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nMenuPages)
DEFINE_MODULE 'Eiki_EIPX5500_SourceSelectComponent' sourceselect(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nSourceSelectPages)
DEFINE_MODULE 'Eiki_EIPX5500_ModuleComponent' module(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nModulePages)
DEFINE_MODULE 'Eiki_EIPX5500_VolumeComponent' volume(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nVolumePages)
//Define your communications module here like so:
DEFINE_MODULE 'Eiki_EIPX5500_Comm_dr1_0_0' comm(vdvEiki_EIPX5500, dvEiki_EIPX5500)
//////////////////////////////////////
Thanks in advance. Let me know if you need more information.
I've passed my code around to a few others and no one's figured out what I'm missing. It's a little embarrassing since I'm sure it's something simple, but it's eluding me. We work with RMS at my office regularly, but it's been a long time since we set up a new room and I've obviously lost my touch.
Everything compiles. The room interacts properly with RMS, but the projector does not. I can't figure out what is missing to make the projector report properly, or even show up.
Here's the relevant code:
DEFINE_DEVICE
dvmaster = 0:1:0
//Projector
dvEiki_EIPX5500 = 5001:3:0
vdvEiki_EIPX5500 = 41003:1:0
vdvRMS = 41001:1:0 // RMS Client Engine VDV (Duet Module)
vdvRMSGui = 41002:1:0 // RMS User Interface VDV (Duet Module)
vdvRMSSourceUsage = 33002:1:0 // RMS Source Usage Monitor
DEFINE_VARIABLE
(***********************************************************)
(* MODULE CODE GOES BELOW *)
(***********************************************************)
DEFINE_MODULE 'RmsNetLinxAdapter_dr4_0_0' mdlRMSNetLinx(vdvRMS)
(***********************************************************)
(* INCLUDE DEFINITIONS GO BELOW *)
(***********************************************************)
// include the RMS API constants & helper functions
#INCLUDE 'RmsApi'
(***********************************************************)
(* MODULE CODE GOES BELOW *)
(***********************************************************)
#INCLUDE 'RmsSourceUsage'
#INCLUDE 'RmsSystemEventHandler'
(*********************************)
(* RMS NetLinx Device Monitors *)
(*********************************)
DEFINE_MODULE 'RmsControlSystemMonitor' mdlRmsControlSystemMonitorMod(vdvRMS,dvMaster)
DEFINE_MODULE 'RmsSystemPowerMonitor' mdlRmsSystemPowerMonitorMod(vdvRMS,dvMaster)
DEFINE_MODULE 'RmsTouchPanelMonitor' mdlRmsTouchPanelMonitorMod_1(vdvRMS,dvTPCV7)
DEFINE_MODULE 'RmsDuetVideoProjectorMonitor' mdlRmsVideoProjectorMonitorMod(vdvRMS, vdvEiki_EIPX5500, dvEiki_EIPX5500)
// DEVICE MODULE GROUPS SHOULD ALL HAVE THE SAME DEVICE NUMBER
DEFINE_MODULE 'Eiki_EIPX5500_DisplayComponent' display(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nDisplayPages)
DEFINE_MODULE 'Eiki_EIPX5500_LampComponent' lamp(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nLampPages)
DEFINE_MODULE 'Eiki_EIPX5500_MenuComponent' module(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nMenuPages)
DEFINE_MODULE 'Eiki_EIPX5500_SourceSelectComponent' sourceselect(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nSourceSelectPages)
DEFINE_MODULE 'Eiki_EIPX5500_ModuleComponent' module(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nModulePages)
DEFINE_MODULE 'Eiki_EIPX5500_VolumeComponent' volume(vdvDev, dvEiki_EIPX5500_Tp, nEiki_EIPX5500, nVolumePages)
//Define your communications module here like so:
DEFINE_MODULE 'Eiki_EIPX5500_Comm_dr1_0_0' comm(vdvEiki_EIPX5500, dvEiki_EIPX5500)
//////////////////////////////////////
Thanks in advance. Let me know if you need more information.
0
Comments
I tried turning on 251 and 252 manually. I did this in control a device and later I added to the ONLINE: commands for that device. Didn't see a difference. But next I'll try to define the module sooner. I'm always confused about the order of those things, and I haven't located the part of the documentation tells us the order in which we should define our modules.