SDS804x HD Oscilliscope
This example uses the Siglent SDS804X HD oscilloscope attached to the gateway to take a screenshot of the waveform during a test. It uses the VISAScopeSDS804XHD
interface defined by the HIL SDK and creates a fixture, which the test_screenshot.py
then uses to take a screenshot and return it to either the developer calling the HIL, or to a pipeline if it's running in CI.
It consists of two files:
conftest.py
- This imports the VISAScopeSDS804XHD
interface and creates the fixture
test_screenshot.py
- Contains a test that sends uses the take_screenshot
function to grab a screenshot and store it in screenshot.bmp
that is returned at the end of the test because it's stored in the hil_results_get_path
location.