Hi, all
I have a question about the usage of Bpod & PulsePal.
I recently bought PulsePal and am trying to use it from the Bpod.
1, connecting issue
When I typed following code,
P = PulsePalModule('COM5');
Following errors were backed.
Error: ArCOMObject_Bpod/read (line 367)
Error: The USB serial port did not return the requested number of bytes.
Error: PulsePalModule (line 92)
obj.nChannels = obj.Port.read(1, 'uint8');
I confirmed that the COM5 is actually the PulsePal port, and COM5 was recognized as " Arduino Duo", however this error remains occurred.
A simple type of "PulsePal" works, and the return is as follows.
Searching for Pulse Pal. Please wait.
Connecting with PsychToolbox serial interface (low latency).
Trying port COM3
Pulse Pal connected on port COM3
It seems to work well.
How can I connect Pulse Pal to the Bpod?
2, PulsePalModule usage
I have checked Forum and this page (https://sanworks.github.io/Bpod_Wiki/module-documentation/pulsepal-module/), but I couldn't find any Examples of code.
Do you have any code examples to use PulsePal in "Addstate" "OutputActions"?
Thank you for your kind help.
Hiro