Rigol DS1104z oscilloscope
This example uses the Rigol DS1104z oscilloscope attached to the gateway to take a screenshot of the waveform during a test. It uses the VISAScopeDS1104Z
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 VISAScopeDS1104Z
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.png
that is returned at the end of the test because it's stored in the hil_results_get_path
location.