Rigbox icon indicating copy to clipboard operation
Rigbox copied to clipboard

implement reward valve as clock channel output

Open nsteinme opened this issue 6 years ago • 2 comments

If desired output is a square pulse of duration d, then use a clock output channel, with duty cycle = 1, frequency = 1/d, run duration d. (If run duration is less precisely timed than the clock frequency then maybe use duty cycle=0.8 and frequency = 1/d*0.8 and run duration = d/0.8?)

The point is to free up an analog output channel, and make it so the reward does not interfere with analog outputs.

The change needs to happen in hw.daqController, by adding an option to use special output commands when the channel is a clock output type.

nsteinme avatar Mar 22 '18 18:03 nsteinme

I believe Jai implemented this. @jaib1 do you have a link to the code? What branches is this on and what were the changes again?

k1o0 avatar May 22 '19 11:05 k1o0

@jkbhagatio Do you know where this code is? @pipcoen would like to use it for his experiments

k1o0 avatar Nov 08 '22 10:11 k1o0