Rigbox icon indicating copy to clipboard operation
Rigbox copied to clipboard

Choosing custom water type for single session/experiment

Open lewool opened this issue 6 years ago • 5 comments

Enable water type to be selected for the session (for rigs with two reservoirs)—as opposed to a single type being hard-coded in hw/RewardValveControl

lewool avatar Jan 08 '19 10:01 lewool

Okay I'll add this as a rig option that can overwrite the one set in the hardware file...

k1o0 avatar Jan 08 '19 11:01 k1o0

Do you use two separate valves or just one?

k1o0 avatar Jan 10 '19 09:01 k1o0

Just one valve!

On Thu, Jan 10, 2019 at 9:38 AM k1o0 [email protected] wrote:

Do you use two separate valves or just one?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cortex-lab/Rigbox/issues/88#issuecomment-453031438, or mute the thread https://github.com/notifications/unsubscribe-auth/AZFX-AqZ727oonh0vVhqGjjHiIqDCetKks5vBwojgaJpZM4Z1Npc .

-- Lauren E. Wool [email protected] www.laurenwool.com +44 (0) 7761 303990 +1 (802) 999 7192

lewool avatar Jan 10 '19 10:01 lewool

I've made the relevant changes which can be found on this commit: 8701a6936e1e16536727f6268f8becfe9964ea8a

To try it out move both expServer and mc to the 'waterType' branch of Rigbox. Now the rig options dialog will have a drop down menu (grey'd out if you're not logged into Alyx) where you can override the default water type for that rig. This, like with other rig options, is not saved between experiments but is saved between rigs. In other words people using your rig will need to double-check the water type each experiment. Once a non-default water type is selected, it will be the water type for that rig for every experiment until it is changed or mc is restarted.

Note, the default water type (i.e. the one you set in the hardware file) should be the water type with which you did the calibration.

Let me know if it works or if there are problems.

k1o0 avatar Jan 10 '19 20:01 k1o0

Hello, we are also using the Rigbox in our experimental setup, and would like to have two valves (One valve for rewarded trials, one valve for non-rewarded trials to make the same sound but not to give water, or use one for Left one for right rewarded trials). How can we implement this?

huriyeatg avatar Mar 04 '24 19:03 huriyeatg