issues
search
KCL-BMEIS
/
spectrumdevice
Python library for communicating with digitisers manufactured by Spectrum Instrumentation
MIT License
6
stars
2
forks
source link
Reading card type and using to coerce user settings to valid values.
#11
Closed
crnbaker
closed
2 years ago
crnbaker
commented
2 years ago
Fixes #9.
SpectrumCard reads the card type from the connected card on
init
.
The memsize and post trigger length step size coercion are then looked up using a new function in the
settings
package.
The
settings
package also includes a new Enum
CardType
storing the supported card types.
When instantiating a MockCard, you now need to provide a
CardType
(so that the step sizes can be set).
Fixes #9.
settings
package.settings
package also includes a new EnumCardType
storing the supported card types.CardType
(so that the step sizes can be set).