smarquis Posted March 8, 2020 Share Posted March 8, 2020 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 Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted March 10, 2020 Share Posted March 10, 2020 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. Quote Link to comment Share on other sites More sharing options...
smarquis Posted March 12, 2020 Author Share Posted March 12, 2020 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 Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted March 12, 2020 Share Posted March 12, 2020 What release of DAQFactory are you using? Quote Link to comment Share on other sites More sharing options...
smarquis Posted March 13, 2020 Author Share Posted March 13, 2020 17.1 Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted March 16, 2020 Share Posted March 16, 2020 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.