Stopping sequence execution
Are there any option for stopping the execution of a sequence?
Both Stop and Stop Storing action blocks don't stop the execution?
Technical support
Hi,
a sequence will stop when it reaches the final block. Even more accurate would be to say a block that's not connected to anything. If you want use a "Terminate block", then you can make your own custom block and use it in several places. You could for example add a 5 second delay telling the user that the sequence will end. Then you could re-use the same custom block without having to add the delay block over and over again.
The "Stop" action refers to stopping the acquisition (measurement). The "Stop storing" action on the other hand will, as the name suggests, stop storing data.
Thanks for the reply.
I understand all of that.
Let me put it another way, I would like to terminate the flow of the sequence and not allow it to reach the final block. Is this possible?
Technical support
Hi,
I believe that is not possible at the moment, other than manually terminating the sequence with the stop button. Could you please just explain how terminating a sequence without it reacing the end of the line is different, and what its use case would be? Thanks!
Hi. Thanks for the feedback.
I have a need for this when handling exceptions. I have used several custom blocks and call them from the main sequence. If an error (not a dewesoft error) has occurred in one of the custom blocks, I would like to put some pop ups for the user and stop the flow of execution.
The problem at the moment is, I cannot do this as the sequencer continues to execute the remaining blocks and eventually reach the main sequence and generate a dewesoft error as it couldn't initialize a variable for eg. I then press the Stop button which ends the sequence. This is not how I want it as its not a controlled Stop.
Now I know, I could put a condition statement in each of the custom blocks and check if an exception as occurred, but that would over complicate things. It would have been nice if I could just terminate the sequence after letting the user know about the exception.
It seems like pressing the Stop button is what I want, but which Action block would do this?
Technical support
Hi,
I'm sorry for the misunderstanding. I totally forgot that you can't leave an open line in a custom block. It will just continue with the execution. I've spoken with the sequencer's developer and he agreed to add an action that can stop the sequence. I'll let you know when it'll be available.
Technical support
Hi,
I've just tried out the new feature after it had successfully passed our automated tests. You can find it under the action block, sequencer and then finally the stop sequence option. It will be included in a new X3 SP3 version, which should get uploaded to our website today, or at least by the end of the week.
Attached files:
Hi,
Can somebody tell me when X3 SP3 will be ready for downloading?