SiLab-Bonn / basil

A data acquisition framework in Python and Verilog.
BSD 3-Clause "New" or "Revised" License
40 stars 29 forks source link

ADD: Automatic finding of USB binds based on instrument IDN #210

Closed mjmucha closed 5 months ago

mjmucha commented 9 months ago

Implemented findUSBBinds() to find the Linux USB binds based on given IDN in the configuration file. With modify_basil_config() one can then automatically update the ports/resource_names of the transfer layers (serial/visa).

For this to work the transfer layer needs an additional init parameter (identification). Like in this example, where resource_name is automatically updated to the current USB bind after executing modify_basil_config().

transfer_layer:
  - name     : HMP4040
    type     : Visa
    init     :
        resource_name : ASRL/dev/ttyUSB0::INSTR
        read_termination : "\r\n"
        identification: HAMEG,HMP4040,105820,HW50020001/SW2.51
        baud_rate : 38400
        backend : "@py"
codecov[bot] commented 9 months ago

Codecov Report

Attention: Patch coverage is 0% with 73 lines in your changes are missing coverage. Please review.

Project coverage is 32.23%. Comparing base (d3cd239) to head (5b3fad9). Report is 13 commits behind head on master.

:exclamation: Current head 5b3fad9 differs from pull request most recent head 06c4761. Consider uploading reports for the commit 06c4761 to get more accurate results

Files Patch % Lines
basil/utils/USBBinds.py 0.00% 73 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #210 +/- ## ========================================== - Coverage 32.67% 32.23% -0.45% ========================================== Files 85 86 +1 Lines 5800 5873 +73 ========================================== - Hits 1895 1893 -2 - Misses 3905 3980 +75 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

YannickDieter commented 5 months ago

Please rebase to check if pipeline is now working.