Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bpod Port Array Module
#1
Question 
Hi Bpod Team,

I bought a Bpod Port Array module hoping to expand the number of ports and valves I can control. I haven't been able to find any documentation on how to control valves with this module. How do I do this? I'm using version 1.59, with Bpod version .7-1.0.

Thanks,
Sara
Reply
#2
Hi Sara,

Control is via the Port Array Module's serial interface.
To open the valve of port X, on port array 1, use:
Code:
{'PA1', ['V' X 1]}

 in the 'output actions' section of a state.
The valve must then be closed explicitly with:

Code:
{'PA1', ['V' X 0]}

If you are using TrialManager, you'll need to program messages (e.g. ['V' X 1]) into the state machine's serial message library with LoadSerialMessages(), and refer to them in the state machine description by index. This restriction will be removed in the upcoming state machine firmware v23.

I hope this helps!

-Josh
Reply


Forum Jump: