Open marcnause opened 1 month ago
@bessman, do you know if this is a limitation of the PSLab hardware?
This is partly a limitation in the hardware, partly in the firmware.
Channels SI1/SQ4 are both controlled by MCU pin 56, same for pins SI2/SQ3 which are controlled by MCU pin 57. This means that the hardware cannot generate a square wave on SQ4/SQ3 and simultaneously generate an analog wave on SI1/SI2.
However, the hardware should be able to generate a square wave on SQ3 (or SQ1, SQ2, just not SQ4) and simultaneously generate an analog wave on SI1. This does not currently work due to a firmware limitation; the firmware function responsible for generating square waves on SQ3 and SQ4 use certain registers which are also used by the analog waveform generator.
The hardware limitation should be communicated to the user in some way. I should be able to remove the firmware limitation, but until then it should also be communicated to the user.
Thank you for the clarification, @bessman!
I don't know what would be the best way to communicate the limitation to the user in an elegant way. Maybe change the UI to somehow indicate an analogue mode and a digital mode!?
Actual Behaviour
If an analogue waveform and a digital waveform is generated with the PSLab device at the same time, the analogue waveform is not generated as selected.
Expected Behaviour
If an analogue waveform and a digital waveform is generated with the PSLab device at the same time, both waveforms are generated as selected.
Or if this is a limitation of the PSLab hardware, it should not be possible to generate analogue and digital waveforms at the same time.
Steps to reproduce it
Screenshots of the issue
Would you like to work on the issue?
Maybe.