KCL-BMEIS / spectrumdevice

Python library for communicating with digitisers manufactured by Spectrum Instrumentation
MIT License
6 stars 2 forks source link

Pre-release testing on hardware #6

Closed crnbaker closed 2 years ago

crnbaker commented 2 years ago

Test plan for testing on lab machine with drivers installed and hardware connected (before release).

Mock mode

Tests on Spectrum Digitizer Netbox DN2.593-16

Unit tests

In tests/configuration.py

Then:

Integration tests (without a signal generator connected)

In tests/configuration.py

Then:

Integration tests (with a signal generator)

Signal generator setup:

Connect signal generator to Netbox:

In tests/configuration.py

Then:

Run example scripts with the Netbox

Manually run each of the example scripts in the example_scripts directory, with the signal generator set up as for the Integration tests (with a signal generator) above. You will need to temporarily modify the if __name__ == '__main__': of the scripts so that:

Then:

Tests on Spectrum PCIe Digitizer M2p.5961-x4

Unit tests

In tests/configuration.py

Then:

Integration tests

Using the same configuration as above, and ensuring software triggering is selected in configuration.py:

crnbaker commented 2 years ago

Changes made during the above tests can be seen in the linked pull request.