Home AMX User Forum NetLinx Studio

Devchan Arrays & Feedback (Newbie)

Ok so here is my question. If i have a DEVCHAN set of lets say 4 channels.

DEVCHAN FB1[ ] = {{10001:1:1, 360}, {10001:1:1, 361},{10001:1:1, 362}, {10001:1:1, 363}}

When i do the following:

BUTTON_EVENT [FB1]
{
PUSH:
{
ON [FB1]
}

When any one of those buttons are pressed in the DEVCHAN, does it turn on all four channels in that devchan set or does it only send ON to the CHANNEL that was pushed?

and whats the best solution for writing feedback for buttons shared in a DEVCHAN set, if i dont want all to change there state to on at the same time ?.

Comments

  • Spire_JeffSpire_Jeff Posts: 1,917
    That will turn on feedback to all buttons. If you want to just turn on the button that was pushed, you could do the following:
    on[button.input]
    

    If you are looking for mutually exclusive, you could do the following:
    if(![button.input]){
      off[FB1];
      on[button.input];
    }
    

    I think this should all function properly.

    Hope it helps,
    Jeff
  • Thanks Jeff,

    Yes that is exactly what i was looking for, much appreciated ! :D
  • thanks,

    this helped me with feedback on a matrix grid too.
Sign In or Register to comment.