Home AMX User Forum NetLinx Studio

HAI OmniProII with mutiple touchpanels

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
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

Comments

  • viningvining Posts: 4,368
    Try:
    DEV dvTP_HAIArray[] = {vdvTPHAI,dvTPHAI_1,dvTPHAI_2,dvTPHAI_3,dvTPHAI_4,dvTPHAI_5,dvTPHAI_6,dvTPHAI_7}
    define_module 'VAV_O_HAIOmni_UI' mdlHAIOmniProII_APP(vdvHAIOmniProII, dvTP_HAIArray, nHAI_BUTTON_ARRAY)
    
    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.
  • ondrovicondrovic Posts: 217
    will give that a try thanks
Sign In or Register to comment.