Process Analyst Control

Hello all,

I want do add a new button in toolbar of the Process Analyst Control.

I have been looking at help to sse how it was done but i dont know how to do: "If necessary, enter a new ID for the command. This ID can be used in Cicode to determine which command has been triggered or to find a specific command in the Citect SCADA system."

Can anyone help?

Thanks a lot

Parents
  • Your setup looks OK. I tried the same thing.

    I set the event class Graficos_AN38:

    I created a Cicode event handler to write any command names to the Kernel window:

    FUNCTION Graficos_AN38_CommandExecuted(OBJECT processAnalyst, STRING commandId)
         TraceMsg("CommandExecuted " + CommandID);
    END

    In the runtime I created your button:

    I added the button to the main toolbar.

    When I executed various toolbar commands (including yours), they showed up in the kernel window:

    Do you see any difference between my setup and yours? Make sure you don't have any extra spaces, like in the Event Class. Maybe try my test event handler and try the built-in toolbar buttons to see if they trigger it.

Reply
  • Your setup looks OK. I tried the same thing.

    I set the event class Graficos_AN38:

    I created a Cicode event handler to write any command names to the Kernel window:

    FUNCTION Graficos_AN38_CommandExecuted(OBJECT processAnalyst, STRING commandId)
         TraceMsg("CommandExecuted " + CommandID);
    END

    In the runtime I created your button:

    I added the button to the main toolbar.

    When I executed various toolbar commands (including yours), they showed up in the kernel window:

    Do you see any difference between my setup and yours? Make sure you don't have any extra spaces, like in the Event Class. Maybe try my test event handler and try the built-in toolbar buttons to see if they trigger it.

Children
No Data