How high is your latency? As I said above, you may be concerned about it unnecessarily. And what is your usual cycle rate?by Jaewon - Questions and Answers
Using a MAT file is exactly a way to save unique waveforms once and have a "pointer" to them. I don't think using a function handle is a good idea. There is no way to re-establish the link to the function unless you save it to a MAT file.by Jaewon - Questions and Answers
Download the new package and try it. I made the adapter accept a MAT file that contains waveform data. https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#Stimulatorby Jaewon - Questions and Answers
Your code will display object1 on top of object2. The first created are displayed in the foreground. See also https://monkeylogic.nimh.nih.gov/board/read.php?2,12,12#msg-12.by Jaewon - Questions and Answers
* Changes in NIMH MonkeyLogic 2 (Mar 16, 2020) + You can adjust the transparency of overlaid webcam videos in mlplayer. - mlsetpath introduced in Feb 3, 2020 did not process relative paths correctly and therefore caused an error when reading stimuli sometimes. It is fixed now. - If 'clear all' was executed while the NIMH ML main windows was open and then a task wby Jaewon - News
Yes. If you check on "Forced use of fallback screen", the subject screen is replaced with a window created as you specified in "Fallback screen rect."by Jaewon - Questions and Answers
If you can touch them on Windows, you can touch them in NIMH ML. Check on "Forced use of fallback screen" and type the Windows coordinates that cover two screens, like , in "Fallback screen rect.". Refer to the figure in the following link. https://monkeylogic.nimh.nih.gov/board/read.php?2,271,271#msg-271by Jaewon - Questions and Answers
Are you experiencing any problem due to an increased latency? I wonder why you want to do something with it, even though you do not know its meaning. The eyejoytrack function has a loop inside. At each iteration of the loop, a new analog sample is retrieved and checked. Max latency is the longest interval between two consecutive iterations and Cycle rate is the mean number of iterations per seby Jaewon - Questions and Answers
Now you can sample at a different rate, if you have more than one NI board. Check out "High-freq Sampling" in the Other device settings menu. https://monkeylogic.nimh.nih.gov/docs_MainMenu.html#OtherDeviceSettingsby Jaewon - Questions and Answers
When a task ends, NIMH ML pops up a summary window of behavioral data. If this summary is not useful, you can suppress it or create your own summary. To do so, create a "behaviorsummary.m" file in your task directory and write a function like the following. function behaviorsummary(filename) end If you want to suppress the summary window, just leave the function blank as above.by Jaewon - Tips
Please check your AI ground configuration. Signal fluctuation is not a problem of NIMH ML. It is because of improper wiring and hardware settings. https://monkeylogic.nimh.nih.gov/docs_NIMultifunctionIODevice.html#AIGroundConfigurationby Jaewon - Questions and Answers
Thanks for the figures. When you guys said the signal amplitude is low, I didn't realize how low it is. Please overwrite your mlphotodiodetuner.m with the attached file. You will be able to set the voltage range manually, if the detected range doesn't serve you well.by Jaewon - Questions and Answers
Update your NIMH ML if your build number is earlier than 201. https://monkeylogic.nimh.nih.gov/board/read.php?1,245,245#msg-245 TrialRecord has many fields that keep trial history information. You can do some calculations from them. https://monkeylogic.nimh.nih.gov/docs_TrialRecordStructure.html If those numbers are large, the whole conditions will be just repeated after 165 trials.by Jaewon - Questions and Answers
Would you download the new package and test? Now it should autodetect the polarity from the baseline voltage. If it works okay, would you upload a screenshot? (Click the tuner window, press ALT+PrtScn, open Paint and press CTRL+V.) One shortcoming of my photodiode is that it doesn't give me clear, square-shaped responses. If yours looks good, I may want to buy one.by Jaewon - Questions and Answers
I use the one built by the engineers that I am working with here, so there is no brand name or part number that I can give. I recently redesigned the tuner so that you can change the voltage threshold yourself, but haven't thought about polarity reversal. I guess I can add the feature easily. Please give me some time to make that change.by Jaewon - Questions and Answers
I don't think there is such a magic.by Jaewon - Questions and Answers
I don't see any description or indication there that the variables will be saved to the data file.by Jaewon - Questions and Answers
I don't know why you think that the variables assigned to TrialRecord.User will be saved in the data file. See the bhv_variable function.by Jaewon - Questions and Answers
* Changes in NIMH MonkeyLogic 2 (Feb 3, 2020) + Now NIMH ML searches for stimulus files through a pre-determined path list so that the files may be stored anywhere in the disk. The path list can be managed in the "Set path" menu. The order of paths searched is as below. 1) The given path of the file, if the filename is a full-path string 2) Task directory, whereby Jaewon - News
There are a few things that I must point out. First, you should use the AllContinue adapter, instead of OrAdapter. OrAdapter checks only the Success state of fth1 and fth2, so it works if joystick is eventually acquired by either of them. However, if the subject does not respond and choice_timeout is over, neither of them can succeed and your scene falls into an infinite loop. AllContinue termby Jaewon - Questions and Answers
You can change the brightness of targets by adjusting RGB values, but it is not what you are asking about, is it? If you are asking about how to make isoluminant stimuli or isoluminant colors (or that kind of question), it may not be solvable with software tools. Making isoluminant stimuli is relatively easy if you need just a few of them and use grayscale only. If you want to use isoluminantby Jaewon - Questions and Answers
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