Closed raacampbell closed 1 year ago
Test it! 833fb6635ea9e6891b4ad45fe0ddae8bd2091554 Confirm whether there is a relationship between the length of the delay that is needed and the duration of the offset ramp. There could be ...
I don't think we need the stop
at all. It could well work just fine without. Then problem is solved with no timer. But then need to check what happens when we switch from this AO mode to something else.
Finally, update the minimal code sample with whatever we find here.
The timer works! 099d79a220b1df4c7f2eebbcf1ada0414c064275
The minimal stim presenter does not use the timer now (046e6616de547dcf60d1bf22b9854242e2e865e1, fd18eab76a8431b4278e7a4ea6877b61b1f66e50) it just has no Stop
commands. This also works but for the main Zapit classes we leave with the stop commands in place.
At the end of stopOptoStim we have:
So let's resolve this by creating a one shot timer that waits 250 ms or so then issues a stop command to the DAQ. We can use this earlier in this file too, where we stop hard with no ramp down.