Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choosing custom water type for single session/experiment #88

Open
lewool opened this issue Jan 8, 2019 · 5 comments
Open

Choosing custom water type for single session/experiment #88

lewool opened this issue Jan 8, 2019 · 5 comments

Comments

@lewool
Copy link

lewool commented Jan 8, 2019

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

@k1o0
Copy link
Contributor

k1o0 commented Jan 8, 2019

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

@k1o0
Copy link
Contributor

k1o0 commented Jan 10, 2019

Do you use two separate valves or just one?

@lewool
Copy link
Author

lewool commented Jan 10, 2019 via email

@k1o0
Copy link
Contributor

k1o0 commented Jan 10, 2019

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

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.

@huriyeatg
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants