Facility Control

 View Only
  • 1.  Dashboard controling NK Router

    Posted 01-19-2016 18:28

    I have a NK-3G34 Video RTR. I made a Macro button to set the RTR. It will work one time only. If the Router resets it will work again but only one time. It has in the past been fine. I have not had to use it for a while. It has been working and I have not made any changes to Dashboard. Below is script code for the button.

    nk.doSwitch(0, 19, 1);
    nk.doSwitch(1, 20, 1);
    nk.doSwitch(2, 21, 1);
    nk.doSwitch(3, 22, 1);
    nk.doSwitch(4, 23, 1);
    nk.doSwitch(5, 12, 1);
    nk.doSwitch(6, 12, 1);
    nk.doSwitch(7, 12, 1);
    nk.doSwitch(8, 12, 1);
    nk.doSwitch(9, 18, 1);
    nk.doSwitch(10, 10, 1);
    nk.doSwitch(11, 29, 1);
    nk.doSwitch(12, 30, 1);
    nk.doSwitch(13, 31, 1);
    nk.doSwitch(14, 26, 1);
    nk.doSwitch(15, 12, 1);
    nk.doSwitch(16, 28, 1);
    nk.doSwitch(17, 17, 1);
    nk.doSwitch(18, 24, 1);
    nk.doSwitch(19, 16, 1);
    nk.doSwitch(20, 0, 1);
    nk.doSwitch(21, 0, 1);
    nk.doSwitch(22, 0, 1);
    nk.doSwitch(23, 14, 1);
    nk.doSwitch(24, 11, 1);
    nk.doSwitch(25, 32, 1);
    nk.doSwitch(26, 27, 1);
    nk.doSwitch(27, 13, 1);
    nk.doSwitch(28, 18, 1);
    nk.doSwitch(29, 15, 1);
    nk.doSwitch(30, 29, 1);
    nk.doSwitch(31, 30, 1);
    nk.doSwitch(32, 31, 1);
    nk.doSwitch(33, 32, 1);


  • 2.  RE: Dashboard controling NK Router

    Posted 01-20-2016 14:24

    Sorry you're having issues with this.
    Many people have experienced issues when doing numerous switches like this without any pauses. This wouldn't explain why it seemed to be working for you in the past but you could try introducing pauses between each switch to prevent flooding the NK Router's communications with updates.

    The unfortunate thing is that the pauses will mean that your script will take much longer to run but if you aren't using it live then that may not be an issue.

    Your new script would look something like this:

    nk.doSwitch(0, 19, 1);
    500
    nk.doSwitch(1, 20, 1);
    500
    nk.doSwitch(2, 21, 1);
    500
    nk.doSwitch(3, 22, 1);
    500
    nk.doSwitch(4, 23, 1);
    500
    nk.doSwitch(5, 12, 1);
    500
    nk.doSwitch(6, 12, 1);
    500
    nk.doSwitch(7, 12, 1);
    500
    nk.doSwitch(8, 12, 1);
    500
    nk.doSwitch(9, 18, 1);
    500
    nk.doSwitch(10, 10, 1);
    500
    nk.doSwitch(11, 29, 1);
    500
    nk.doSwitch(12, 30, 1);
    500
    nk.doSwitch(13, 31, 1);
    500
    nk.doSwitch(14, 26, 1);
    500
    nk.doSwitch(15, 12, 1);
    500
    nk.doSwitch(16, 28, 1);
    500
    nk.doSwitch(17, 17, 1);
    500
    nk.doSwitch(18, 24, 1);
    500
    nk.doSwitch(19, 16, 1);
    500
    nk.doSwitch(20, 0, 1);
    500
    nk.doSwitch(21, 0, 1);
    500
    nk.doSwitch(22, 0, 1);
    500
    nk.doSwitch(23, 14, 1);
    500
    nk.doSwitch(24, 11, 1);
    500
    nk.doSwitch(25, 32, 1);
    500
    nk.doSwitch(26, 27, 1);
    500
    nk.doSwitch(27, 13, 1);
    500
    nk.doSwitch(28, 18, 1);
    500
    nk.doSwitch(29, 15, 1);
    500
    nk.doSwitch(30, 29, 1);
    500
    nk.doSwitch(31, 30, 1);
    500
    nk.doSwitch(32, 31, 1);
    500
    nk.doSwitch(33, 32, 1);

    #DashBoard