I don't understand who you are referring as "they" any more, but it does not make any sense that the number of coherence dots can change from frame to frame. How can the coherence level be 100%, if not all dots move in the same direction? I don't know why a mask is necessary, but I guess you are not aware that an object created earlier is shown above the others in MGL. Theby Jaewon - Questions and Answers
Your camera does not seem to fall into the "webcam" category. It has a way high spec and price for a webcam and, more importantly, the manufacturer's SDK should be used to control it, instead of Microsoft's common API. Some manufacturers provide a driver so that their cameras can be controlled via webcam APIs, but I guess it is not the case for your camera. As a solo prograby Jaewon - Questions and Answers
I don't know what you are expecting, but you just said everything you need to do. Evaluate your animal's performance, determine the reward duration and put it in the goodmonkey function.by Jaewon - Questions and Answers
I don't know what mask pic you are talking about. This is a problem of the code you wrote, so you should show your code at least.by Jaewon - Questions and Answers
You should read more of their papers. The density of dots is simply a parameter calculated from the number of dots. The CRT display that they initially used flashed 6670 dots/second, so they just divided it by their aperture size (400 degrees²). That is how they got the famous 16.7 dots/degree²/sec (= 6670 / 400). In their modern version of the stimuli implemented on a PC, the total number of dotby Jaewon - Questions and Answers
* Changes in NIMH MonkeyLogic 2 (Jul 21, 2020) + The DragAndDrop adapter now supports multiple drop locations. - Bug fix in XAudio sound playback * Changes in NIMH MonkeyLogic 2 (Jul 7, 2020) + MGL can change the z-order of graphic objects with the "zorder" property. An object with a zero z-order is shown in the back and the one with a higher z-order is presenteby Jaewon - News
RandomDotMotion is the Shadlen version of random dots. Please try it and see if it suits. https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#RandomDotMotionby Jaewon - Questions and Answers
As some new important features, such as low latency audio in WASAPI shared mode, are available only in Windows 10, support for Window 7 will be dropped in future releases soon. This accompanies the adoption of the latest compiler, so some old MATLAB versions that do not support the new compiling tool will be excluded as well. Please consider these changes in your plan for new setups and let me knby Jaewon - News
Please read the manual. toggleobject() is a timing script function. It is not a function that you can run on the MATLAB command window. https://monkeylogic.nimh.nih.gov/docs_CreatingTask.html#RuntimeVersion1 https://monkeylogic.nimh.nih.gov/docs_GettingStarted.html#StartingNIMHMonkeyLogicby Jaewon - Questions and Answers
Yes, there is. Use eyejoytrack(). Use the "function" signal type. https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#eyejoytrack Since the "broken" state should be maintained, use 'holdfunc' and make the function return 1 if the IR barrier is broken and 0 otherwise. Your function needs to access get_analog_data(), so place the function at the end of yourby Jaewon - Questions and Answers
Put the following line at the beginning of your timing script. If you don't have mglreverserendering in your mgl directory, please update your NIMH ML. mglreverserendering(true); % draw most recently created objects on top of othersby Jaewon - Questions and Answers
You should explain what the stimulus you want to present looks like, not how you coded it. Your approach may not be appropriate for the stimulus, but, without knowing what you try to achieve by doing so, it is difficult to suggest an alternative or a workaround.by Jaewon - Questions and Answers
Please take a look at the get_analog_data function. You can read and analyze the IR barrier signal in the script and decide whether to proceed or not. https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#get_analog_databy Jaewon - Questions and Answers
It seems that you did the procedure all right. Yes, your calibration should be done when you finish adjusting gains, but you may find the origin moved a little, if the initial gain was small and therefore did not provide enough resolution for you to set the origin precisely. Then you can just repeat the procedure a couple of times. As the gain increases, you will see better results each time.by Jaewon - Questions and Answers
The Brown website is not my old website. The original ML and NIMH ML are different tools and I was not involved in the original ML.by Jaewon - Questions and Answers
Sorry. I am not a hardware expert. You should talk to your computer dealer.by Jaewon - Questions and Answers
You can try controlling the NI board directly in your custom adapter. Talk to Daniel. Your question lacks lots of details and I don't know what to tell, but I am sure he can help you better.by Jaewon - Questions and Answers
Supporting more devices sounds fine, but I don't have any Tobii eye tracker to test with. I will think about it if somebody can lend me one for a couple of weeks.by Jaewon - Questions and Answers
It looks like a question for Logitech or Google.by Jaewon - Questions and Answers
Posting a PDF article is not allowed, so I replaced your attachment with a pubmed link to the article. NIMH ML (more precisely MGL) is not supporting G-Sync or FreeSync currently. I am not sure if I will ever have time to support the tech, so it is up to you. This method is useful mostly for visual psychophysics experiments and you probably have to give up behavior tracking during stimulus preby Jaewon - Questions and Answers
* Changes in NIMH MonkeyLogic 2 (Jun 15, 2020) + Bug fixes and stability patches for audio engine control * Changes in NIMH MonkeyLogic 2 (May 25, 2020) + Support for minimum latency sound playback via WASAPI (Windows Audio Session API) Shared & Exclusive modes. - Minor fixesby Jaewon - News
Those two fields show the worst case (i.e., the maximum) during a trial, which mostly occurs at the very first frame of the first scene.If significant delays occur for the rest of a scene, a skipped frame warning will be displayed in the user text panel.by Jaewon - Questions and Answers
The function seems to work fine, so I don't understand why you say nothing is printed. You printed mostly static texts. Unless you change something in the string, you will see the same text every trial. dashboard() itself does not display anything until the screen is updated. run_scene() or idle() should be executed afterward. Also dashboard() does not clear the text of itself evenby Jaewon - Questions and Answers
Aren't you working with Daniel? If I remember correctly, you guys already have a solution for this. What Daniel wanted was continuous sound feedback of which frequency changed according to the wheel position. That kind of control is not possible with NIMH ML alone, because resetting NI analog output takes too long.by Jaewon - Questions and Answers
That doesn't make sense. Please show your code.by Jaewon - Questions and Answers
Why don't you use the dashboard function (to display texts on the control screen) or the text command (to display on the user plot)? https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#dashboard https://www.mathworks.com/help/matlab/ref/text.html user_text() and user_warning() are there for compatibility with the original ML, but they are slow and you don't have much contby Jaewon - Questions and Answers
The time interval between frames equals 1 / (refresh rate). If the refresh rate is 60 Hz, the interval is 1 / 60 = 16.67 msec. I made ComplementaryWindow work with a moving window created with CurveTracer + SingleTarget. Please overwrite the files in the ext directory of your NIMH ML with the attached ones. TouchTracker needs to be updated as well. Or just download the new packages. You useby Jaewon - Questions and Answers
The graphic card and the power supply are not critical components to boost performance in this case. From what you said, I think the speed of streaming movies from the disk may be a problem. I saw many times that conventional hard disks were not fast enough to deliver movie contents in time. I suggest trying a solid state drive. By the way, why do you use 'mgladdmovie' and 'mglsby Jaewon - Questions and Answers
* Changes in NIMH MonkeyLogic 2 (May 25, 2020) + Support for minimum latency sound playback via WASAPI (Windows Audio Session API) Shared & Exclusive modes. - Minor fixesby Jaewon - News
On what condition is this happening? Are you using MouseTracker but do not want to show a cursor? Have you tried the latest package?by Jaewon - Questions and Answers