Home AMX User Forum NetLinx Studio
Options

FeedBack Statements

Hi, I am New to the forum, I want to know about Feedback statements. How do they work, How to prgram a MET-7 Metreau 7-Button Keypad for feedback statements.
Thanks in Advance Guys. Cheers..

Comments

  • Options
    ericmedleyericmedley Posts: 4,177
    Feedback from what?
  • Options
    u57jcsu57jcs Posts: 19
    ericmedley wrote: »
    Feedback from what?

    Thanks for replying mate. This below is the part of the code in which the first button of the Keypad is programmed to switch on the lights and switch them off if they are on.

    I want to know how to program to receive feedback from the keypad.

    At the same time i want to turn on the LED light of the first button of the keypad when the lights are on and turn of the lights of the first button of the keypad when the lights are off.

    here is the code:


    PROGRAM_NAME='incLighting'

    DEFINE_EVENT

    BUTTON_EVENT [dvBFKPDW,1]
    {
    PUSH:
    {
    IF(BFKPDW1 =0)
    {
    SEND_COMMAND dvBFDIM1, 'P1-2&5-6L100'
    SEND_COMMAND dvBFDIM2, 'P3L100'
    SEND_COMMAND dvBFSW1, 'P1-3&5-6L100T0'
    SEND_COMMAND dvBFSW2, 'P4L100T0'
    BFKPDW1 =1
    }

    ELSE


    {
    SEND_COMMAND dvBFDIM1, 'P1-2&5-6L0'
    SEND_COMMAND dvBFDIM2, 'P3L0'
    SEND_COMMAND dvBFSW1, 'P1-3&5- 6L0T0'
    SEND_COMMAND dvBFSW2, 'P4L0T0'
    BFKPDW1 =0
    }

    }
    }
  • Options
    d_gavind_gavin Posts: 21
    Put this is mainline and it will give you LED feedback on your keypad for when your variable is equal to 1, and it will turn off whenever the variable is not equal to 1.


    DEFINE_PROGRAM
    [dvBFKPDW,1] = (BFKPDW1 == 1)
  • Options
    u57jcsu57jcs Posts: 19
    Thanks for the reply mate. Am not getting it though. Can any 1 guide me with a sample program. I will really appreciate it.
    Thanks ion Advance.
  • Options
    a_riot42a_riot42 Posts: 1,624
    You can turn an LED on by simply turning on the channel on said keypad.

    IE:

    on[dvBFKPDW, 1]

    Turn it off:

    off[dvBFKPDW, 1]

    Easy, peasy.
    Paul
Sign In or Register to comment.