HAI OmniProII with mutiple touchpanels
ondrovic
Posts: 217
I am working on intergrating the HAI OmniProII security system into our demo house and ran into something I cant get around.
The module is written for 1 touchpanel and our demo house has 7 total panels ( various sizes )
here is the code
Has anyone delt with this before or maybe have a workaround to make the system work with mutiple panels?
I tried making a virtual touchpanel for each actual panel, then make each virutal panel combine to the regualar panel
any help would be greatly appreciated.
TIA
The module is written for 1 touchpanel and our demo house has 7 total panels ( various sizes )
here is the code
DEFINE_DEVICE dvHAIOmniProII = 5002:3:2 dvHAIOmniProIITP = 10001:1:2 vdvHAIOmniProII = 33001:1:2 vdvHAIOmniProIITP = 33002:1:2 DEFINE_COMBINE (vdvHAIOmniProIITP, dvHAIOmniProIITP) DEFINE_TYPE DEFINE_VARIABLE DEV TPArray[] = { vdvHAIOmniProIITP, dvHAIOmniProIITP } DEFINE_MODULE 'HAI_OmniProII_Comm' mdlHAIOmniProII_APP(vdvHAIOmniProII, dvHAIOmniProII) DEFINE_MODULE 'HAI_OmniProII_UI' mdlHAIOmniProII_APP(vdvHAIOmniProII, TPArray, nBUTTON_ARRAY)
Has anyone delt with this before or maybe have a workaround to make the system work with mutiple panels?
I tried making a virtual touchpanel for each actual panel, then make each virutal panel combine to the regualar panel
Define_Combine (virt_pnl1, act_pnl1)ect. for each panel then setup the tparrys the same way with no luck
any help would be greatly appreciated.
TIA
0
Comments
or you could make a dev array of the virtual tp & a tp for each tp then create a seperate instance of the UI module for each tp for each TP dev array.
If you use the first simpler method you just have to make sure the UI module doesn't send page flips to the entire Array but to the individual TP that initiated the button push.