2 Touchpanel shared by 2 rooms
Now I have one AMX NI sharing between 2 rooms. Both rooms have very similar configurations. And there are 2 TPs, both TP can operate both room.
I know duplicating the UIs can makes the life easiler but when it's talking about maintainance. It does matter. So I want to share the UI between 2 rooms. How can I do that? Thanks
I know duplicating the UIs can makes the life easiler but when it's talking about maintainance. It does matter. So I want to share the UI between 2 rooms. How can I do that? Thanks
0
Comments
DEFINE_DEVICES DEV dvPanel1 = 10001: 1:0 DEV dvPanel2 = 10002: 1:0 DEFINE_VARIABLES DEV dvPanels[] = {dvPanel1, dvPanel2} CHAR nRoomByPanel[] = {1, 2} /// default room 1 to panel 1, etc. DEFINE_EVENTS BUTTON_EVENT[dvPanels, nRoomChange] // where nRoomChange = array of button channels to change rooms { PUSH : nRoomByPanel[GET_LAST(dvPanels)] = GET_LAST(nRoomChange) } BUTTON_EVENT[dvPanels, nControlButtons] { PUSH : { SWITCH(nRoomByPanel[GET_LAST(dvPanels)]) { CASE 1 : { // operate on room 1} CASE 2 : { // operate on room 2} } } }