# Stop acquisition from python script

**URL:** https://discuss.saleae.com/t/stop-acquisition-from-python-script/1018
**Category:** Extensions
**Created:** [May 3, 2021, 11:44am UTC](https://discuss.saleae.com/t/stop-acquisition-from-python-script/1018 "2021-05-03T11:44:26Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![davide.ferrari](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@davide.ferrari](https://discuss.saleae.com/u/davide.ferrari)
#### Post date: [May 4, 2021, 6:05am UTC](https://discuss.saleae.com/t/stop-acquisition-from-python-script/1018/4 "2021-05-04T06:05:36Z")

</div>

@timreyes I’ve seen that there is the so called “Trigger view” which is now limited to trigger on the decoding of a value (hex).  
Would it be possible to extend it and to trigger when a pattern (like a string) is reported by the custom analyzer?  
In this way for instance I could report “error” form the script and then the capture would be stopped upon errors.

---

_[View the full topic](https://discuss.saleae.com/t/stop-acquisition-from-python-script/1018)._
