portugueslab / stytra

A modular package to control stimulation and track behaviour
http://www.portugueslab.com/stytra/
GNU General Public License v3.0
41 stars 26 forks source link

Mikrotron MC1362 camera and IO INDUSTRIES CORE2 DVR #83

Open xululu917 opened 1 year ago

xululu917 commented 1 year ago

Hi! I am new to programming, just started with the basics,and I'm going to tesing Stytra for my behavior experiment with zebrafish larve,Now I have Mikrotron MC1362 camera (high speed at 506fps)and IO INDUSTRIES CORE2 DVR. According to stytra’s documentation,I have finished Installing stytra and testing the installation(the GUI opens correctly and pressing the play button starts the stimulus),but I have some questions for installing camera APIs,there are a variety of camera settings in the documention,My understanding is that stytra requires a high speed camera(cameras with frame rates greater than 300 are best) and a framegrabber,Perhaps the following setup is easiest to implement for me. 1

Question1:Should I replace my core2 DVR with national instruments framegrabber to match stytra? Question2:Can I use my existing settings to match stytra? Question3:whether additional code are required for connecting software and hardware? Question4:I don’t understand following national instruments boards,I understand that the driver installation is used to identify and connect Camera to NI FrameGrabber. The Python package is used to connect hardware(camera and framgrabber) and software(stytra),Do I understand that right?

2

Looking forward to hearing from you,Any help would be appreciated!

Lulu Xu

vilim commented 1 year ago

Hey Lulu Xu! We currently don't have glue code to support Core DVRs, an adapter for Stytra's camera interface could be written but it would require some effort and working with CoreDVR SDK (for which I don't know if there are Python bindings) So yes, if you want to use your camera with stytra and not writing any new glue code, you would have to get a NI framegrabber. I am not sure if it's a worthwile invstement though as opposed to buying a new camera. After installing the drivers, the extra python package in your stytra environment and putting the camera file in the correct place, nothing additional should be necessary.

xululu917 commented 1 year ago

Thank you for your reply!