Please explain more. I don't understand what you want to do just from "luminance/contrast control".by Jaewon - Questions and Answers
* Changes in NIMH MonkeyLogic 2 (Jan 23, 2020) + Now webcam videos can be compressed and added to the data file. You can attach previously exported video files back to the data file as well with the mlimportwebcam function. https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#mlimportwebcam + mlplay processes webcam data much faster now. + New WebcamMonitor adapter. Thby Jaewon - News
In NIMH ML, you can use as many analog input channels as you want. Eye and joystick are just special in that calibration tools and visual tracers are provided for them. NIMH ML supports two eyes and two joysticks and all of them can work independently with their own signal calibration. You won't need to script anything in most cases. Even if you use a weird, non-linear transformation to cby Jaewon - Questions and Answers
I don't think your script will work well, but it is not because of the reason you said. When run_scene() is called, the scene restarts from the beginning and so does the 5000-ms wait time. You should make the whole thing as one scene. The only condition necessary to proceed to the next scene is the acquisition of joystick movement at [4 4], so you should design your scene to be stoppedby Jaewon - Questions and Answers
Okay. Just to be sure if I understood correctly, does the subject need to move joystick with peripheral vision while holding fixation at the center? I am not sure whether you want the subject to do two responses simultaneously or sequentially and, if it has to be simultaneous, why the hold time for eye is shorter.by Jaewon - Questions and Answers
Please read the manual. https://monkeylogic.nimh.nih.gov/docs_MonkeyLogicGraphicsLibrary.htmlby Jaewon - Questions and Answers
You cannot do it, if you have only one NI board and you are using it for acquiring other signals. NI multifunction boards have only one ADC shared by all channels. Although one board may have 16 or 32 AI channels, all channels must run at the same sample frequency and the maximum possible frequency for each channel decreases as a function of the number of used channels. NIMH ML runs data acquiby Jaewon - Questions and Answers
It is a movie. You draw all the frames beforehand and play one by one. See the example 2 of MovieGraphic. https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#MovieGraphic I don't have time to explain how my code works. You are on your own, if you want to look into my code. It is already there.by Jaewon - Questions and Answers
Moved to https://monkeylogic.nimh.nih.gov/docs_MonitorSetup.htmlby Jaewon - Tips
Using movies was just one possible way to do it. I have a second thought. I think you can do it better with CurveTracer. https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#CurveTracer With it, you can do something like this. The example code used to make this video is in the "task\runtime v2\11 curve trace" directory, if you download the new version. https://monkeylogic.niby Jaewon - Questions and Answers
That is certainly not true. You can make the task generate different movies every time. You can save them as files but also create directly from MATLAB matrices. https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#MovieGraphic 1. https://monkeylogic.nimh.nih.gov/board/read.php?2,13,13#msg-13 2. https://www.ncbi.nlm.nih.gov/pubmed/11600651 See "Visual stimuli" in Methods.by Jaewon - Questions and Answers
https://monkeylogic.nimh.nih.gov/board/read.php?2,271,271#msg-271by Jaewon - Questions and Answers
1. That is normal, especially in the first trial. I made it do a test run so that the code may run faster next time. 2. You are asking your computer to do too much work. There is a cost when you switch scenes. If you want all 30 frames to be a seamless presentation, you should make the whole thing as one scene, for example, by making your stimuli as movies. 3. If you set the hold time to 2by Jaewon - Questions and Answers
I don't know how your adapter is written. You can send me your codes but I can't guarantee that I will have time to look at them.by Jaewon - Questions and Answers
If you added custom adapters, get rid of them and try again. Otherwise, send me the data file.by Jaewon - Questions and Answers
I don't know how much disk space you can save by doing so, but I don't think it is a good idea, so the answer is no.by Jaewon - Questions and Answers
Enable the touch input by checking on the "Touchscreen" in the "Other device settings" menu. https://monkeylogic.nimh.nih.gov/docs_MainMenu.html#OtherDeviceSettingsby Jaewon - Questions and Answers
I don't understand your first question. You can make your own stimulus adapter, if you need something else.by Jaewon - Questions and Answers
Have you checked your AI ground setting? https://monkeylogic.nimh.nih.gov/docs_NIMultifunctionIODevice.html#AIGroundConfigurationby Jaewon - Questions and Answers
I think the first error may occur if your touch screen driver somehow makes only one coordinate (either x or y) NaN, although there is no reason for it to report any NaN. Maybe there is something I can do to prevent the error. However, the second error doesn't make sense. The messages indicate you were running a trial, not loading the task, but in either case, this cannot happen. Did youby Jaewon - Questions and Answers
There are many ways to change some parameters trial by trial. You can use the Info field of the conditions file https://monkeylogic.nimh.nih.gov/docs_CreatingTask.html#ConditionsFile or set different values to variables depending on TrialRecord.CurrentTrialNumber https://monkeylogic.nimh.nih.gov/docs_TrialRecordStructure.html or determine the parameters in the userloop and send them toby Jaewon - Questions and Answers
* Changes in NIMH MonkeyLogic 2 (Dec 27, 2019) - Fixed a bug in the error logic that "repeat delayed" put a newly selected condition back to the queue, instead of the previous error condition. (Thanks to Ben Basile) - The problem that DAQ settings are not loaded properly when switching from a conditions-file-based task to a userloop-based task is fixed. + Webcamby Jaewon - News
Have you looked at AudioSound, if it suits for your purpose? https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#AudioSound You don't see mglplaysound or mglpresent used in any adapter. It is because you should let NIMH ML handle stimuli to keep precise timing. You can create sounds, but you shouldn't play them yourself (unless you do it on purpose). MGL objects are activby Jaewon - Questions and Answers
The hotkey function does not return anything. https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#hotkey And see this for how to stop eyejoytrack on purpose. https://monkeylogic.nimh.nih.gov/board/read.php?2,202,202#msg-202by Jaewon - Questions and Answers
The signals saved in the the data file during the simulation mode are only the kinds that you can fake with the mouse. So you probably didn't get the photodiode either. (eye is emulated with mouse and behavioral codes and strobes are outputs, which do not need emulation.) It is possible to record some real signals even during the simulation mode, but I don't do so because there is noby Jaewon - Questions and Answers
Yes. The grid will be the same as before but just translated relatively to the new origin.by Jaewon - Questions and Answers
The 'c' key is implemented as a hotkey like the following. hotkey('c', 'forced_eye_drift_correction([0 0],1);'); [0 0] is the coordinates of the new center (in degrees) and 1 indicates the first eye signal (2 is the second eye). So overwrite it (i.e., define it again in your timing script) with the coordinates you want.by Jaewon - Questions and Answers
Try the attached task. You need to enable Touchscreen in the Non-DAQ Device Settings. There is one thing you misunderstood. You can read touch_.XYData in the timing script, but you won't get any meaningful numbers. Adapters and adapter chains do something, only when they are executed by run_scene(). You need to write your own adapter and plug it in the chain, to access real-time data. Theby Jaewon - Questions and Answers
You set your filetype to .mat. Change it to .bhv2 and see if there is any difference. And see this manual page written about the file format. https://monkeylogic.nimh.nih.gov/docs_GettingStarted.html#FormatsSupportedby Jaewon - Questions and Answers
You can send it to me via Private Messages.by Jaewon - Questions and Answers