Transitioning Arduino Code to AutoPilot #150
-
|
Hello fellow autopilots! Our lab is considering moving into the wonderful world of We've ordered a couple Pi's to test with that will arrive in the coming months, so while we wait I figured it'd be a good time to start porting what was on our Arduino's to Autopilot! Here's a link to the Arduino code that we'd like to port over. EDIT: It would actually be cool to have those things enabled in the training in case someone wants to do that in the boxes. Might as well do it anyways... The way the Arduino runs is that a I've been confused by trying to use PyDAQmx on my own so we could avoid using Arduinos and run experiments exclusively through Python, but got stuck having a camera record video independently of the routine for sending stimuli to the mouse. I was thinking I could basically use the same structure as the arrays that are sent through to the Arduino when sending things via PyDAQmx and have a while loop that updates new timings and checks against flags like the Arduino does for when to send different stimuli, but it didn't seem like that's how people do it in Python as much or, if it is how people do it, I haven't seen that many examples yet. How hard do you think it might be, fellow pilots, to port this Arduino functionality to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 19 replies
-
|
Hello Jeremy! Can you post some examples of the arrays that you're describing here? maybe give an example play-by-play of "X value used by Y hardware, then Z value used by.." It should be very possible to write a Task that, given some parameterization like a list of possible ITIs/etc. to generate them like in the |
Beta Was this translation helpful? Give feedback.


Hello Jeremy! Can you post some examples of the arrays that you're describing here? maybe give an example play-by-play of "X value used by Y hardware, then Z value used by.."
It should be very possible to write a Task that, given some parameterization like a list of possible ITIs/etc. to generate them like in the
bruker_controlfunction (or take whatever it outputs), and the trial timings can be saved in whatever output data you generate from the task, however you'd like it. Shouldn't be too hard!