combine devices
Daniel79
Junior Member
Hi, if i combine two or more devices with a virtual device, in a "button_event[vdvdevice,1]" it's possible know the real devices that generate the event ?
thank's
Daniel.
thank's
Daniel.
Comments
-
Short answer: I don't think so as vdvdevice triggers the button event, not an actual panel. Combining devices is not the way to go and in my opinion should be removed from the language completely.
Long answer:
Why not just use a device array?DEFINE_DEVICE dvTP1 = 10001:01:00; dvTP2 = 10002:01:00; define_constant dev dv_tp[] = {dvTP1, dvTP2} define_event button_event[dv_tp,1] { push: { stack_var integer index; index = get_last(dv_tp); // This will give you an index pointer of which device in the array triggered the event // You can also use: // button.input.device - Returns full D:P:S // button.input.device.number - Returns just the number (10001, 10002, etc.) } } -
Once you've combined the devices, everything reports in as and responds to the virtual. I don't believe you can parse out anything to tell what real device is in play, and if you need to, you should be using a device array, as suggested.
I think it goes a tad too far to say remove the function altogether, but by all means, don't use it unless nothing else will do the trick. One type of scenario where it is valuable, though, is if you have a variable number of panels accessing the same master or device (let's say, for example, a TPTransfer iOS device that is sometimes on the system, and sometimes not). This allows you to interact with the virtual even if the real panel(s) are offline or off site.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums