Forums
Calibrate valvemodules - Printable Version

+- Forums (https://sanworks.io/forum)
+-- Forum: Bpod (https://sanworks.io/forum/forumdisplay.php?fid=1)
+--- Forum: Software (https://sanworks.io/forum/forumdisplay.php?fid=6)
+--- Thread: Calibrate valvemodules (/showthread.php?tid=733)



Calibrate valvemodules - Bowey - 02-15-2020

Hi,

Is there a way to calibrate valve modules and make them deliver specific amount of liquid in Bpod protocol?

Best,
Bowey


RE: Calibrate valvemodules - Josh - 02-16-2020

Hi Bowey,

Valves driven by the state machine's onboard valve driver can be calibrated using the liquid calibration UI. Once calibration is set up, you can get the correct valve-open time using the GetValveTimes() function. You'd then set the state timer of a state where the valve is open to equal the output of GetValveTimes().

Unfortunately, the calibration software doesn't work with valve driver modules. For those, you'd need to write a similar calibration routine. The valve calibration software source file is here. It's a lot of code, but mostly due to the UI.

-Josh


RE: Calibrate valvemodules - Bowey - 02-27-2020

(02-16-2020, 02:30 AM)Josh Wrote: Hi Bowey,

Valves driven by the state machine's onboard valve driver can be calibrated using the liquid calibration UI. Once calibration is set up, you can get the correct valve-open time using the GetValveTimes() function. You'd then set the state timer of a state where the valve is open to equal the output of GetValveTimes().

Unfortunately, the calibration software doesn't work with valve driver modules. For those, you'd need to write a similar calibration routine. The valve calibration software source file is here. It's a lot of code, but mostly due to the UI.

-Josh
Hi Josh,

Thanks for the reply. I'm using the valve driver modules, that's very unfortunate...It's huge amounts of code. Is there a specific part of the code I need to tune for my purpose to calibrate the valve driver modules?

Best,
Bowey