Welcome, Guest
You have to register before you can post on our site.

Search Forums

(Advanced Search)

Latest Threads
Detect Pulse Pal in Open ...
Forum: Software
Last Post: davidh
09-23-2020, 07:39 PM
» Replies: 0
» Views: 23
Valve Driver Module vs Po...
Forum: Hardware
Last Post: Remi_tds
09-23-2020, 08:17 AM
» Replies: 2
» Views: 109
Unable to connect to Anal...
Forum: Software
Last Post: paulbanks
09-14-2020, 12:31 PM
» Replies: 5
» Views: 268
Arduino Due not showing
Forum: Hardware
Last Post: Josh
09-14-2020, 01:15 AM
» Replies: 8
» Views: 487
Ports 4-8 not registering...
Forum: Hardware
Last Post: LucasKin
09-13-2020, 10:40 AM
» Replies: 2
» Views: 95
Issue with nActiveChannel...
Forum: Software
Last Post: PrsaLab
09-10-2020, 11:26 AM
» Replies: 2
» Views: 98
Forum: Software
Last Post: bimac
09-04-2020, 08:08 AM
» Replies: 0
» Views: 105
Reading real-time data fr...
Forum: Software
Last Post: tly627
09-01-2020, 02:45 AM
» Replies: 2
» Views: 154
Not input detected by the...
Forum: Hardware
Last Post: Josh
08-25-2020, 06:55 PM
» Replies: 1
» Views: 376
1 Matlab controls 2 Pulse...
Forum: Software
Last Post: Josh
08-25-2020, 06:37 PM
» Replies: 3
» Views: 2,396

  Detect Pulse Pal in Open Ephys
Posted by: davidh - 09-23-2020, 07:39 PM - Forum: Software - No Replies


I am writing to ask how to solve a problem of installing driver for Pulse Pal and having Open Ephys to recognize it. Briefly, I followed the instruction on the Pulse Pal wiki ( to download the to our Win7 computer and copy the contents of the folder (PulsePal-master) to Documents\PulsePal. Pulse Pal is also connected to the computer. 

However, we were unable to see any signals on an oscilloscope connected to the Pulse Pal after we hit "trigger" on the Open Ephys GUI. But we could see signals if we directly triggered it in Pulse Pal. We don't know if we have installed the driver successfully, as the Device Manager showed it was not installed. 

I am wondering what I could potentially do to solve this problem. 

Thank you!

Best regards,

  Valve Driver Module vs Port interface board
Posted by: Remi_tds - 09-22-2020, 08:53 AM - Forum: Hardware - Replies (2)

Hello everyone,

I am working with a BPod for the first time and I am setting up a 2AFC paradigm. I will thus need two lick ports for rewards and I am wondering if I can directly connect two port interface boards to two valves or if I need the valve driver module somewhere in between? I am almost certain the port interface boards will be sufficient but I wanted to make sure before ordering that the BPod r2 will be able to drive the valves with no issue.

Related question: As the phototransistor and IR emitter of the lickometer are labelled as 'Obsolete' are there any recommended substitutions? I found a pair by OSRAM: SFH 313 FA-3/4 and SFH 4554-DWEW with similar specs. Any feedback?

Thank you very much for any help.

-- Rémi

  Ports 4-8 not registering.
Posted by: LucasKin - 09-12-2020, 04:55 PM - Forum: Hardware - Replies (2)


I am new here and I hope I can explain this problem I am having well. 

Presently, I am trying to set up the Bpod so that 4 ports receive inputs from 4 separate lickports. The Bpod is only able to register ports 1 - 3, but does not register ports 4 - 8 as being connected. I have tried 2 separate Bpods and they each have the same problem. I have tried 2 separate lickport sensors and they each have the same problem. I have tried to see if moving the ethernet cables to ports 5, 6, 7, and 8 and changing the protocol so that those ports are where the lick inputs would be received to see if that would effect the registering of the lickports, and when I do that none of the lickports register. When I set the Bpod console to emulator mode, all of the lickports register when I press the POK button, however when I reconnect to the Bpod, it remains that only ports 1-3 register when I press the POK buttons. Finally, I tried running a completely different protocol that only utilizes one of the ports only ports 1-3 show to be active on the console. 

I do not know if this is a software or hardware issue, as I have both the firmware and the software updated to the newest version. I am using the Bpod State Machine r1.

I am very grateful for any help.

  Issue with nActiveChannels in AI module
Posted by: PrsaLab - 09-09-2020, 09:15 AM - Forum: Software - Replies (2)

Hi Josh,

We are having the following issue with the AI module. We want to log data on 3 AI channels.

When we set nActiveChannels=3, data on channels 1 and 2 is logged fine, but data on channel 3 does not correspond to our signal. It is instead a sawtooth waveforem that looks like some sort of counter signal.

When we set nActiveChannels=5, data on channels 1, 2 and 3 is logged fine. However, the counter-like signal then appears on channels 4 and 5.

When we set nActiveChannels=8, data on all channels is logged fine.

We can work with this by setting nActiveChannels=5 but it is not optimal in terms of speed and memory since we only need 3 channels.

I attached below a figure of the logged data waveforms illustrating this issue.

Any ideas?


[Image: view?usp=sharing]

  Arduino Due not showing
Posted by: benef - 09-08-2020, 11:12 AM - Forum: Hardware - Replies (8)

I recently got the bpod system and I am trying to work with Arduino Due using the Arduino shield.
I have the Bpod v2.
I uploaded the BlinkModule code to the Arduino Due, but I don't see it as a module in the Bpod GUI.
Also when I try to Run the protocol with the code from the GUI it tells me that the spelling for the module is wrong.
I am using the native USB port in the Due to upload the code because for some reason when I upload it through the programming port it tells me that there is no device connected to the COM.
Would appriciate the help,

Posted by: bimac - 09-04-2020, 08:08 AM - Forum: Software - No Replies

Hey Josh,

I'm having some issues using SetCondition() with BNC1 and BNC2. It seems like ConditionValue
is inverted? For instance:

sma = SetCondition(sma, 1, 'BNC1', 0);

If I understand correctly, condition1 should be true, if BNC1 is low. But when trying this, for some reason its true when BNC1 is high?! Things work as expected when using Port1, Port2, etc instead of the BNC inputs ... can you reproduce this? Or am I missing something? :)


Edit: Bpod r2.2, newest firmware and Matlab software ...

  Reading real-time data from analog input module
Posted by: tly627 - 08-29-2020, 05:31 AM - Forum: Software - Replies (2)

Hi Josh,

I am now trying to record analog signals from a joystick using the analog input modules and send these data to a PC (MATLAB) to control the movement of a virtual object on the screen in real-time. 

I have read the Bpod wiki and learned that the way to do this should probably be using the 'startUSBStream()' function within 'BpodAnalogIn'. However, I am a bit confused about the data that, 'uint16') returns. Does each columns represent the sample from each channels? If that's the case, I am not sure why the values of the bits aren't changing when I push the joystick. I have used the GUI of 'scope()' to verify that my joystick is functioning so it shouldn't be a hardware problem.

Alternatively, do you know if there is a better way to achieve my goal?

Thank you in advance!


  "Serial" Module BPOD
Posted by: AlvaroLuna - 08-24-2020, 04:23 PM - Forum: Hardware - No Replies

Hi Josh:

I am trying to implement a Virtual Reality Module for BPOD. 

I want to set up communication between the PC of the Virtual Reality Module and BPOD/BPOD Computer.

For now, I have managed to communicate all variables generated in the Virtual Engine each frame through serial communication. (As seen in the image attached).
I am using a BPOD Analog Output module and a Teensy Shield to make a "bridge" between PCs.
I am doing this because the "Input Stream" port of the Bpod Analog Output module can be connected directly to the Ethernet Port in the Teensy Shield. 
I wonder if it's the best way to do this. I guess there could be an "extended" teensy shield with two Ethernet Ports (State Machine and Input Stream) to make this same connection.

Is there another way to achieve this same connection with existing hardware for BPOD?
Thanks a lot for your help.

  Not input detected by the BPod 2
Posted by: bin - 08-23-2020, 04:23 AM - Forum: Hardware - Replies (1)

Hi, I am a new user. Hope the question is not too silly. I followed the instruction for the Bpod v2 firmware and software installation, and the software interface can let teensy 3.6 board output the valve and LED signal correctly, but the board somehow can't detect the digital input signal from the input port(39,38,18,15 on Teensy 3.6). The board only connected to the USB cable, and I tried to use a higher voltage input(5V for Vin), it still cannot detect the digital input. I am wondering whether I can get some hints on solving this. Thanks.

  Unable to connect to Analog Input Module?
Posted by: tly627 - 08-21-2020, 01:35 AM - Forum: Software - Replies (5)


I have been having a problem using the analog input module. When I call the 'BpodAnalogin' function in MATLAB, there is an error message:

>> A = BpodAnalogIn("/dev/cu.usbmodem71558201")
Error in function OpenSerialPort: Incorrect argument type supplied
Discrepancy between a specified and supplied argument:
Specified Argument Description:
direction: Input
position: 1
formats allowed:
minimum M: 0
maximum M: unbounded
minimum N: 0
maximum N: unbounded
minimum P: 0
maximum P: 1
Provided Argument Description:
direction: Input
position: 1
presence: present
number of dimensions: 2
M: 1
N: 1
P: 1
Error in function Close: Missing argument
Discrepancy between a specified and supplied argument:
Specified Argument Description:
direction: Input
position: 1
formats allowed:
minimum M: 1
maximum M: 1
minimum N: 1
maximum N: 1
minimum P: 1
maximum P: 1
Provided Argument Description:
direction: Input
position: 1
presence: absent
Error using BpodAnalogIn (line 74)
Error: unable to connect to Bpod Analog Input module.

However, I can see from BpodSystem.modules that the analog input module is connected and I have specified the correct port name in the function:

>> BpodSystem.Modules

ans =

 struct with fields:

             nModules: 5
          RelayActive: [0 0 0 0 0]
            Connected: [1 0 0 0 0]
                 Name: {'AnalogIn1'  'Serial2'  'Serial3'  'Serial4'  'Serial5'}
   Module2SM_BaudRate: [1312500 1312500 1312500 1312500 1312500]
      FirmwareVersion: [2 0 0 0 0]
        nSerialEvents: [15 15 15 15 15]
           EventNames: {[]  []  []  []  []}
              USBport: {'/dev/cu.usbmodem71558201'  []  []  []  []}

One thing I have noticed is that the baud rate of the port from BpodSystem.modules is 1312500. However, when I look into the MATLAB script of the 'BpodAnalogIn' function and the associated 'ArCOMObject_Ain' function, it seems like they assume the baud rate to be 115200. Therefore, I tried to change the baud rate on these 2 scripts to 1312500 and call the function again. Unfortunately, the error still occurs.

How can I get the analog input module working? FYI, I am using a Mac.

Many thanks,