Facility Control

 View Only
  • 1.  Custom Panel, Macro button?

    Posted 10-20-2016 14:41
    I would like to create a button that is similar to a router panel maro.

    The intent is to restore default route's with the push of one button.

    Thank you in advance.



    Hmmm....Guess this can't be done?


  • 2.  RE: Custom Panel, Macro button?

    Posted 10-21-2016 21:36
    Are you using an NK Router or an Ultrix Router?
    #DashBoard


  • 3.  RE: Custom Panel, Macro button?

    Posted 12-30-2016 08:35
    I have an NK router and I hope to do the same as OP.
    #DashBoard


  • 4.  RE: Custom Panel, Macro button?

    Posted 01-03-2017 15:38

    For an NK Router, there is a task type when you create a custom panel and point it at an NK IPS.

    Here is an example macro button that does a number of switches. Note that this is not instantaneous and there are 500ms pauses between each switch to avoid congestion on the router's internal bus.

    In my example panel, I have an IPS/router selector at the top of the panel. You can edit the top-level of the panel and point it at a specific IPS/router by clicking the "configure" button next to "NK Series Routers" in the source edit mode.

    <abs contexttype="nk-router">
       <simplegrid height="114" left="5" right="12" style="bg#dark;bdr:etched;" top="5">
          <ipslist/>
       </simplegrid>
       <abs bottom="8" left="5" right="9" style="bdr:etched;bg#dark;" top="122">
          <button buttontype="push" height="123" left="11" name="Run Macro" top="7" width="155">
             <task tasktype="nk">nk.doSwitch(147, 126, 1);</task>
             <task tasktype="pause">500</task>
             <task tasktype="nk">nk.doSwitch(148, 126, 1);</task>
             <task tasktype="pause">500</task>
             <task tasktype="nk">nk.doSwitch(149, 126, 1);</task>
             <task tasktype="pause">500</task>
             <task tasktype="nk">nk.doSwitch(150, 126, 1);</task>
             <task tasktype="pause">500</task>
             <task tasktype="nk">nk.doSwitch(151, 126, 1);</task>
             <task tasktype="pause">500</task>
             <task tasktype="nk">nk.doSwitch(152, 126, 1);</task>
             <task tasktype="pause">500</task>
             <task tasktype="nk">nk.doSwitch(153, 126, 1);</task>
             <task tasktype="pause">500</task>
             <task tasktype="nk">nk.doSwitch(154, 126, 1);</task>
             <task tasktype="pause">500</task>
             <task tasktype="nk">nk.doSwitch(155, 126, 1);</task>
          </button>
       </abs>
    </abs>

    #DashBoard