Welcome! Log In Create A New Profile

Advanced

Triggering reward directly via DAQ (not bluetooth/Arduino)

Posted by apersello34 
Triggering reward directly via DAQ (not bluetooth/Arduino)
October 08, 2024 11:59PM
I'm hoping to make a reward system that relies on a direct signal (analog or digital) that doesn't rely on Bluetooth or Arduino. I'd like to use a USB DAQ, something like the NI USB-6009

Can this be done in MonkeyLogic? Would it just be a matter of designing/building the pump circuit and writing the code for it? Would it be a modification to the reward_function.m script, or would I need to write my own script?
Re: Triggering reward directly via DAQ (not bluetooth/Arduino)
October 09, 2024 10:54AM
It is just a matter of designing/building the pump circuit and writing the code for it. Do not touch reward_function.m or anything.

See this for the DAQ setup.
https://monkeylogic.nimh.nih.gov/docs_MainMenu.html#DAQSettings

Then, call goodmonkey() in your timing script. It will internally call reward_function.m and send out TTL pulses for your reward pumps.
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#goodmonkey

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.