Sign in to follow this  
smarquis

stop all sequences

Recommended Posts

Hi!

On my application I have sequence called simply "allstop-seq". This sequence stop all peripheric devices (pump, valves etc), set to "0" all channels and stop all running sequences. 

It's possible in one command line (the last one of course)  to stop all sequences or do I have to write one "endseq" line for each sequence?

Thank you

Stef

Share this post


Link to post
Share on other sites

Yup, it is just:

sequence.StopAllSequences()

And as you pointed out, make sure it is the last command of the sequence, since the sequence that calls this function will stop as well unless it is being called from a Component Action or an Event.

Share this post


Link to post
Share on other sites

Hi

I just tested it now. Not only the sequences don't stop, but daqfactory gets in error and doesn't answer anymore. I'm forced to leave with the task manager.

I saw this command in the documentation and I had already tried it, with the same result.

What's wrong?

 

Stef

 

 

 

Share this post


Link to post
Share on other sites

You might have to stick with ending each sequence.  You could also switch the entire system into safe mode.  To stop the sequence that is currently running, simply "return" from it instead of calling endseq() from within.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this