acknowledgement byte after a call to syncAllParams.
The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.2.30 (Linux)
File Line Function
/showthread.php 864 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
acknowledgement byte after a call to syncAllParams.
#1
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:


Code:
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
Reply


Messages In This Thread
acknowledgement byte after a call to syncAllParams. - by cskoven - 12-10-2019, 01:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)