Hi,
I'm using python to send some different parameters (Phase1Duration, InterPulseInterval and PulseTrainDuration) to the PulsePal - randomly, in a loop.
I give plenty of sleep time (~5s) after having run "myPulsePal.syncAllParams()" to "myPulsePal.triggerOutputChannels(1, 0, 0, 0)"
Just recently I got this error:
raise PulsePalError('Error: Pulse Pal did not return an acknowledgement byte after a call to syncAllParams.')
PulsePal.PulsePalError: Error: Pulse Pal did not return an acknowledgement byte after a call to syncAllParams.
From line 232, in syncAllParams - in PulsePal.py
It's not optimal that the loop / script will be broken / stopped - after having run for 2+ hours - to then redo it.
How do you cope with this error? Do you safeguard yourselves to avoid your scripts being stopped by an error raised?
Would it be something like putting a "try" before the myPulsePal.syncAllParams() - and asking to try again, if it fails?
Or what would you do?
Hope to hear from you!
Br,
Christian Skoven