Mutually Exclusive in Device Array
Ok gurus, got another question.
I've got a project here at our coporate office. We are part of the TP Control Beta team, and as such wanted to quickly duplicate our panel for testing purposes (without duplicating code of course). Due to previous negative experiences with Define_combine (page flips in code didn't always hit both panels), and due to a suggestion by AMX tech support, I just created a Dev Array for my (2) panels. all worked well. I have now wanted to add a little bit of feedback to the source selection pages as opposed to doing the momentary feedback for button presses. When I express the mutually exclusive table citing the Array as the panel, it doesn't work. The buttons light up, but they don't exclude each other so every button can get lit up. If I do a mutually exclusive of the actual panel page, things work, but the source selection bogs down for some reason. The command takes about 1-2 seconds to go to the Extron switcher vs being pretty instant.
Any thoughts?
I've got a project here at our coporate office. We are part of the TP Control Beta team, and as such wanted to quickly duplicate our panel for testing purposes (without duplicating code of course). Due to previous negative experiences with Define_combine (page flips in code didn't always hit both panels), and due to a suggestion by AMX tech support, I just created a Dev Array for my (2) panels. all worked well. I have now wanted to add a little bit of feedback to the source selection pages as opposed to doing the momentary feedback for button presses. When I express the mutually exclusive table citing the Array as the panel, it doesn't work. The buttons light up, but they don't exclude each other so every button can get lit up. If I do a mutually exclusive of the actual panel page, things work, but the source selection bogs down for some reason. The command takes about 1-2 seconds to go to the Extron switcher vs being pretty instant.
Any thoughts?
Comments
Assuming you have something like this:
DEFINE_DEVICE dvTP1 = 10001:1:0 dvTP2 = 10002:1:0 DEFINE_VARIABLE DEV dvTPs[] = {dvTP1,dvTP2}You can’t do this:
You have to do this instead:
Or this:
Or get rid of mutually exclusive all together as Matt suggested.
And this is what bogged down the source switching.
define_variable nSourceBtns[] = {1,2,3,4,5,6,7,8} dvTPs[] = {dvTP1,dvTP2,dvTP3,dvTP4} define_event button_event [dvTPs,nSourceBtns] { push: { stack_var integer nSource nSource = get_last(nSourceBtns) off[dvTPs,nSourceBtns] // turn off all source buttons on all touch panels on[dvTPs,nSourceBtns[nSource]] // turn on selected source button on all touch panels // do source switching here } }