mesoSPIM / mesoSPIM-control

Image acquisition software for mesoSPIM light-sheet microscopes.
http://www.mesospim.org
GNU General Public License v3.0
37 stars 12 forks source link

AO data waveform out of +/- 5V range #80

Open raacampbell opened 3 months ago

raacampbell commented 3 months ago

Since updating to the July 2024 release we noticed an issue with the AO waveform generation. Out galvo amplitude was set to 5V and software generated an NI error complaining that out of range waveform values were being set to the DAQ. It was by some really small amount: 5.003 V or something. Was the max range of the AO waveforms recently changed from +/- 10 V to +/- 5V?

nvladimus commented 3 months ago

Hi, indeed, this was a safety feature I added, after accidentally burning a galvo driver which was accepting 0-5V only. As far as I know, in all mesoSPIM models the useful galvo input range is within 0-5V, even for older galvos that accepted 0-10V. To prevent the costly mistakes, I hard-coded 0-5V limit in the latest release. If you want to over-ride it, you can do so in your own code: search for add_ao_voltage_chan in the mesoSPIM_WaveFormGenerator.py and edit it manually (at your own risk).