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

Search Forums

(Advanced Search)

Forum Statistics
» Members: 27
» Latest member: Betty
» Forum threads: 188
» Forum posts: 689

Full Statistics

Online Users
There are currently 6 online users.
» 0 Member(s) | 6 Guest(s)

Latest Threads
additional digital inputs...
Forum: Hardware
Last Post: Bowey
8 hours ago
» Replies: 2
» Views: 58
About Global timer
Forum: Software
Last Post: jerlich
Yesterday, 06:20 AM
» Replies: 1
» Views: 724
Inspection methods of hid...
Forum: SanCafé
Last Post: lay1014
08-09-2019, 09:04 AM
» Replies: 0
» Views: 34
Load Bpod data with Pytho...
Forum: Software
Last Post: xiaoxiong2n
08-09-2019, 01:14 AM
» Replies: 2
» Views: 78
State machine get global ...
Forum: Software
Last Post: jerlich
08-06-2019, 09:08 AM
» Replies: 9
» Views: 5,003
PsychToolbox Asio support...
Forum: Software
Last Post: trose_neuro
07-30-2019, 04:59 AM
» Replies: 7
» Views: 1,346
Error using trial manager...
Forum: Software
Last Post: Noa
07-16-2019, 10:03 AM
» Replies: 4
» Views: 602
RJ45 Ethernet jack Ports ...
Forum: Hardware
Last Post: rozmar
07-03-2019, 04:28 AM
» Replies: 5
» Views: 4,549
Pulse Pal only recognized...
Forum: Software
Last Post: MJJ
06-24-2019, 11:25 AM
» Replies: 2
» Views: 406
Unused ports stuck in ON ...
Forum: Hardware
Last Post: Josh
06-21-2019, 01:30 PM
» Replies: 1
» Views: 637

  additional digital inputs to bpod
Posted by: Bowey - 08-19-2019, 11:04 PM - Forum: Hardware - Replies (2)


Would there be a way to connect the below touch sensor board to Bpod?

Thank you!

(08-19-2019, 11:04 PM)Bowey Wrote: Hi,

Would there be a way to connect the below touch sensor board to Bpod?

Thank you!

  Inspection methods of hidden safety hazards of water ring vacuum pump
Posted by: lay1014 - 08-09-2019, 09:04 AM - Forum: SanCafé - No Replies


在日常使用中,它对产品质量很重要。必须有计划地关闭水环真空泵。在此之后,我们还应该按照管理规定注意以下情况,当需要关闭泵时,泵停机单位的负责人必须提前四小时注意相关的停机审批程序; 从角度来看,当电力部门处于较高层次时,公司或线路维护故障需要关闭。

  此外,当矿井中的线路发生故障时,由于维护将关闭; 当水环真空泵发生故障或由于定期切换需要关闭时; 当循环池需要更换水源时; 附近排水管道的焊接和其他辅助设备的更换和安装; 因此,由于其他原因需要关闭真空泵。当特殊情况或原因需要停电时。



水环真空泵机组在使用时克服了单个水环泵的极限压差特性,同时也存在一定压力下泵送率低的缺点。同时,它可以使水环真空泵机组保持快速工作,这意味着它具有泵速较大的优点; 配备防爆装置,具有泵送率高的优点。当电动机和电器符合相应的安全规则时,水环真空泵单元也可以提取易燃易爆气体。

  Load Bpod data with Python
Posted by: xiaoxiong2n - 08-05-2019, 08:28 PM - Forum: Software - Replies (2)

Hi Josh,
I am trying to load the Bpod SessionData with Python notebook. I could load the first level of the struct data. But I do not know how to extract the raw event and state data (second level of struct data) from the RawEvents (below is the notebook code that I tried). Is there any convenient way to do that?

import numpy as np
import matplotlib.pyplot as plt
import glob
from import loadmat

filename = 'C:/Users/xiaox/Desktop/Python_learning/Data'
filelist = glob.glob(filename + "/*.mat")

mat = loadmat(filelist[0])  # mat.keys()
SessionData = mat['SessionData']

TrialTypes = SessionData[0,0]['TrialTypes']
ImagingFlag = SessionData[0,0]['ImagingFlag']
RunSpeed = SessionData[0,0]['RunSpeed']

## How to extract raw event data (such as Wire1High) and state data (such as TrialStart) from RawEvents?
RawEvents = SessionData[0,0]['RawEvents']


  Unused ports stuck in ON position, or flickering back and forth
Posted by: els - 06-21-2019, 12:09 AM - Forum: Hardware - Replies (1)

The unused behavior ports on BPod State Machine r2 are either stuck in the ON position or are flickering back and forth between ON and OFF, erroneously recording hundreds of "events" per trial.  Is it best to address this via the hardware (potentially insufficient grounding of the ethernet port?), or via the software (change the state machine code to ignore Port3 and Port4)?  


  Error using trial manager object
Posted by: Noa - 06-18-2019, 11:53 AM - Forum: Software - Replies (4)

Hi josh and users,
I'm trying to run a protocol using TrialManager object, and I get one of the following two errors :

Error while evaluating TimerFcn for timer 'timer-2'

Index exceeds matrix dimensions.
Error using ArCOMObject_Bpod/read (line 348)
Error: The serial port returned 0 bytes.

Error in TrialManagerObject/startTrial (line 95)
           TrialStartTimestampBytes =, 'uint8');
Error using TrialManagerObject/startTrial (line 93)
Error: The last state machine sent was not acknowledged by the Bpod device.

It occurs when I try to run a protocol that worked OK in the past, as well as another one that is under development. 
Any idea what can be the reason? 
Anything to do with  TrialManager object's timer? 


  Pulse Pal only recognized as Bossa port, connection fails
Posted by: MJJ - 06-17-2019, 07:55 AM - Forum: Software - Replies (2)

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/", 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\", 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() 

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.

Question Send input action from software?
Posted by: nobias - 06-14-2019, 10:25 PM - Forum: Software - Replies (1)

Hi! Is it possible to generate an input action to the state machine from software (Matlab) on the host? I'm aware that there are softcode output actions, but is there also a way to generate an input event?

  Bpod does not turn on
Posted by: yurikadoi - 05-30-2019, 09:52 PM - Forum: Hardware - Replies (1)


I was using Bpod state machine r2.
It was working fine last month. I did not touch it for the past couple weeks and today I found it turned off (no blue or green light).

All I did today was to run windows update and install sound card on the computer. I do not remember if it was turned on or off before these procedures.

I tried plug the bpod in into multiple different computers but it does not turn on. I also changed USB and power cables but no luck.

What can I do in this case?

Thank you,

  Setup Question: Rotary Encoder and Lickometer
Posted by: Bernardo - 05-28-2019, 09:02 PM - Forum: Hardware - Replies (1)

Hi, I am currently working on setting up a lickometer and a rotary encoder at my lab. I was wondering what kind Bpod state machine is needed be able to measure the behavior recorded from the lickometer and the rotary encoder? Furthermore, we are interested in getting some sort of time measure for these behaviors as well, since they will be associate with neuron calcium imaging data. Is there anything that we will need besides the lickometer, rotary encoder, rotary encoder module, and the Bpod state machine to process the behavioral data?

  bpod not lighting on
Posted by: sandraromerop - 05-27-2019, 05:04 PM - Forum: Hardware - Replies (1)

Hi josh

any idea of why the bpod would  stop working after uploading firmware? 
this is what i did:
- bpod is connected, matlab installed, state machine (r2) firmware uploaded, and tried running a valve through one of the ports and it works
- not i tried uploading the rotary encoder module firmware, while the bpod was connected. I think i messed it up as i am not sure if the rotary encoder firmware should be uploaded to the state machine. 

Now the bpod is not even lighting on when powered. Is there a way to reset it?