Hello,
I am trying to use Pulse Pal 2 with a windows system. When I first connected the USB cable to my PC, the Pulse Pal's display lit up, it was recognized as Arduino Due and I was able to follow the online tutorial to display the firmware version via Python. So far, so good. I then decided to switch to a Matlab interface because I did not want to have to switch between Python 3 and Python 2.7 all the time. However, with Matlab I was not able to establish serial communication with the Pulse Pal at all. At some point while I worked on the basic connection (never getting to the point of actually loading anything onto it), the Pulse Pal's display went black. It has not lit up ever since and I have not been able to establish serial communication. Now, it is recognized as a Bossa port, not an Arduino due, and every time I run the Python code that used to work, I get the following error message:
File "C:/Users/PycharmProjects/PulsePal/PulsePalTests.py", line 6, in <module>
myPulsePal.connect('COM11') # Connect to PulsePal on port COM4 (open port, handshake and receive firmware version)
File "C:\Users\PycharmProjects\PulsePal\PulsePal.py", line 64, in connect
self.firmwareVersion = struct.unpack('<I',fvBytes)[0]
struct.error: unpack requires a string argument of length 4
For reference, this is the tutorial code I am running:
from PulsePal import PulsePalObject # Import PulsePalObject
import serial
myPulsePal = PulsePalObject()
myPulsePal.connect('COM11')
print(myPulsePal.firmwareVersion)
I have tried different PCs and also uninstalling and reinstalling the driver. No change.
I do not think the Pulse Pal is completely broken because the blue lights at trigger and output channels still go off, but the display is dead and I cannot connect to it anymore.
I would appreciate thoughts on this problem.