]> sigrok.org Git - libsigrok.git/commitdiff
hantek-dso: add "forced" trigger source
authorMiroslav Sustek <redacted>
Tue, 19 Apr 2022 18:47:40 +0000 (20:47 +0200)
committerSoeren Apel <redacted>
Wed, 27 Sep 2023 21:33:22 +0000 (23:33 +0200)
This special trigger source mimics the trigger mode that is called
"Auto" in the original Hantek's "DSO2090 Software" and in
https://github.com/OpenHantek/OpenHantek6022 open-source project.
In the original https://github.com/OpenHantek/openhantek open-source
project the trigger mode is called "Wait/Force".

This feature can be used to immediately capture a single frame.
Example usage with sigrok-cli:
```
sigrok-cli --driver hantek-dso --frames 1 --config triggersource=forced
```

This enables us to use the oscilloscope for data logging in scripts.

Only after I implemented this I realized that if you have an extra probe,
you can set the triggersource to "EXT" and connect the EXT input
to the 1kHz calibration signal output on the back of the device
and that will trigger every millisecond. However, I still think that
the "forced" trigger source can be useful.


No differences found