Home AMX User Forum NetLinx Studio

combine_devices dilemma

Hi,

I have a system where I recently converted the code from using a 2 element device array for my event notifications to combine_devices/virtual device -- for two reasons:
1. To not get level_events with value==0 when the wireless panel drops offline due to poor wifi in the room.
2. To take advantage of having the virtual device take care of sychronizing the bargraph level feedback between the two panels w/o having to do a send_level manually back to individual panels.

But now I have no way of telling which panel is sending string messages or dock/undock messages since the virtual device captures those as its own event.

Does anybody have an elegant solution to this? I tried different virtual device for each panel, and then using a device array of virtual devices for the event handler, but that only provides advantage 1 and the ability to see which panel sends the string messages, but not advantage 2.

Is there any way to get all three items at the same time?

thanks
David

Comments

  • yuriyuri Posts: 861
    Use a DEV array for all the touchpanel stuff, and use COMBINE_LEVELS (not COMBINE_DEVICE) for the levels.

    (* volume *)
    COMBINE_LEVELS(vdvTPCombine,8, dvTP_1,8, dvTP_2,8)
    

    this way, you combine level 8 on 2 touchpanels to be level 8 on vdvTPCombine, which is off course a virtual device.

    you can also use UNCOMBINE_LEVELS to undo the combine on certain events.

    Good luck!
Sign In or Register to comment.