Can DEVs be Included in DEVCHANs?
DEV dDSET[]={dvDEV1,dvDEV2}
DEVCHAN dcDCSET[]={{dDSET,1},{dDSET,2}}
....Or something to that effect?This is for the sake of generating feedback for groups of buttons on multiple UIs without combining so that I can still know from which device a PUSH came from.
Thank you.
0
Comments
I don?t use DEVCHANs myself (not that there is anything wrong with them) but instead I opt to keep the DEVs separate from the channels/buttons and do something like this.
DEFINE_DEVICE dvTP1 = 10001:1:0 dvTP2 = 10002:1:0 DEFINE_CONSTANT INTEGER nButtons[] = {2,4,6} DEFINE_VARIABLE DEV dvTPs[] ={dvTP1,dvTP2} DEFINE_EVENT BUTTON_EVENT[dvTPs,nButtons] { PUSH: { //to find out which device generated the push you can use //BUTTON.INPUT.DEVICE //or to find out the index into the array of devices you can use //GET_LAST(dvTPs) //to find out which button was pushed you can use //BUTTON.INPUT.CHANNEL //or to find out the index into the array of buttons you can use //GET_LAST(nButtons) } }HTH
Thanks for the info! It's well worth the cost of admission to these forums!