Welcome! Log In Create A New Profile

Advanced

Adding LED lights as output device

Posted by sihanliang 
Adding LED lights as output device
July 17, 2023 06:58PM
Hi Jaewon,

I am trying to install two LED lights next to the two buttons we are currently using. My goal is : when trial starts, the LED light(s) should be automatically turned on, signaling the monkey which button(s) should be pushed. Could you provide some tips on how to install and configure the LED lights as a output device? I am currently using NI DAQ board BNC-2090A and Timing Script V1. I've noticed that there is a section called "Blackrock LED driver" on the NIMH ML website, is this the right section I should use as a point of reference?

Best,

Sihan
Re: Adding LED lights as output device
July 17, 2023 08:51PM
No, it is not the right section. The Blackrock LED driver is for optogenetic stimulation.

I am not an electronics engineer, but you can send out a TTL to turn on/off an LED. If the LED does not need a large amount of current, maybe it can be driven directly by the TTL. Otherwise, add a relay switch to the LED circuit and control the relay with the TTL.
Re: Adding LED lights as output device
July 18, 2023 12:40PM
Thanks Jaewon. So if I were to use the TTL to control the LED, how would I write the command in the timing script? I am using timing script v1, is there a built-in function to achieve my goal?
Re: Adding LED lights as output device
July 20, 2023 04:05PM
It is the same way as presenting any other stimulus. Define a TTL TaskObject in the conditions file and turn it on/off with toggleobject().
https://monkeylogic.nimh.nih.gov/docs_TaskObjects.html
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#toggleobject

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.