Showing results 1 to 6 of 6

Thread: ProjectServiceExtention Stop() Status

  1. #1
    Join Date
    25.01.2021
    Posts
    11

    Pfeil ProjectServiceExtention Stop() Status

    Hi,

    I have created add-in, and try to execute him few times, after pressing button. For first one click, he executs, but for second on he is not starting. When I open window "Manage Service Engine services", against of add-in his status as "Started" (but in fact he executed completly Strart() method). I have tried to use Stop() method in last line of Start() method, but this does not help. I guess, that is becouse status of that add-in is as "Started". Cos when I stop him manualy from window "Manage ...", and start him again from button, add-in normaly executes.

    So, do I need/can to change that status in my last line of Start() method? Or are any other causes?

  2. #2
    Join Date
    03.11.2015
    Posts
    37

    Default Re: ProjectServiceExtention Stop() Status

    Hello,

    have you done the AddIn training? It is also available online. If no, please do it.

    For Addins there are two types: Wizards and Services. 
    Wizards do stuff and are ended afterwards. Therefore can be started again.
    Services can be started and stopped and keep on running in the meantime. Services are ideal for reacting on events and such.



     

  3. #3
    Join Date
    10.12.2007
    Posts
    273

    Default AW: ProjectServiceExtention Stop() Status

    If you want to create an AddIn that is executed every time you click a button or something like this, you should not use a project service extension but a project wizard extension.
    The methods start and stop shows you are using a service. A Wizard starts with Run Method and finishes after execution. It has no stop method.

    But, I am also interessted in a solution to stop a service from code, for other reasons.

    EDIT: Grrr c.f. was faster... AGAIN

  4. #4
    Join Date
    18.12.2017
    Posts
    44

    Default Re: ProjectServiceExtention Stop() Status

    Hi!

    In zenon 10 there is a function to start and stop project service extensions.
    It's called "Start/Stop Project Service Extension".

  5. #5
    Join Date
    25.01.2021
    Posts
    11

    Default Re: ProjectServiceExtention Stop() Status

    Hi, 

    thx all for fast reply on my thread. Yes, I have finished zenon online training. Perhaps, not all was clear for me.

    Yes events in our app was to be intended to use. In other thread in forum i will bit describe our purpose.

    I don't whant to use functions in zenon Supervisor to stop service. I whant to narrow using of zenon functions, scripts, etc. And if it will be possible, to stop service/wizard from C# code.

    No matter if it will be service or wizard, I do not need to execute that extention if it already running. That situations I prefer to prevent.

    So, are there ways to interrupt or correctly stop wizard/service from code? And are they have some lock to prevent secondary parallel execution of the same extension?


  6. #6
    Join Date
    25.01.2021
    Posts
    11

    Default Re: ProjectServiceExtention Stop() Status

    Quote Originally Posted by c.f. View Post
    Hello,

    have you done the AddIn training? It is also available online. If no, please do it.

    For Addins there are two types: Wizards and Services. 
    Wizards do stuff and are ended afterwards. Therefore can be started again.
    Services can be started and stopped and keep on running in the meantime. Services are ideal for reacting on events and such.



    Hi, how to reduce response time in forum request threads? If u can, I made second post and new thread

Similar Threads

  1. start and stop archive
    By mahmood in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 27th April 2020, 11:50
  2. Stop alarms during no production
    By sandeep2018 in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 5
    Last Post: 20th June 2019, 12:38
  3. no stop code 'Do while'
    By gyu in forum VBA
    Replies: 2
    Last Post: 22nd June 2017, 07:45
  4. CEL 'Stop' button
    By nurul in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 8
    Last Post: 11th August 2009, 09:16
  5. How to Stop Logging Alarms
    By matholton in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 29th September 2008, 11:24

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •