Hello,
I have a Bpod setup and I am working on setting up a second one, independent of the first. Everything seems to work fine apart from the solenoid valve that is not opening, even though I don't get any error at the terminal.
I have first tested the protocol I use in my other setup, in which I give the reward with the following code:
sma.add_state(state_name='Reward', state_timer=exp.reward_dur,
state_change_conditions={Bpod.Events.Tup: 'EndReward'},
output_actions=[(oc.Valve1, 1),])
However, in the new setup I get an error because Valve1 is not recognized.
So I tried to change this and I have tested several alternative scripts to give the reward, such as:
output_actions=[(OutputChannel.Valve, 1)
output_actions=[(Bpod.OutputChannels.Valve, 1)
etc
However, none of the scripts I tried opens the valve. I have tested the valve and the port interface in my other setup and they work fine.
In the new setup, I can load the console info and I see all Valves there as output channels.
I have changed the cables that connect the state machine to the valve interface too, to make sure that this is not the problem, and I connected the port interface to all four ports of the state machine.
I tried re-installing pybpod, but this didn't solve the problem either.
Any ideas about what might be wrong?
Thank you!