Using a for loop did the trick. Thanks again!by bts - Questions and Answers
Followup question: is there a way to use MGL to create multiple shapes at once? For example, if I want to create a 9x5 grid of circles, do I need to call mgladdcircle 45 times and specify all 45 positions using mglsetorigin? Or can I shorten the code for that somehow?by bts - Questions and Answers
Great, that's all I needed, thanks Jaewon.by bts - Questions and Answers
After looking through the ML calibration files, I think I found the answer: mgladdcircle, mgladdbox, mgladdbitmap, etc. Specifying the device as '2' seems to only display them on the control screen, as desired. Please let me know if this is the most efficient way to do this, or if there is a better way to do it, when you have the time. Thanks a lot!by bts - Questions and Answers
Hi Jaewon, Is there a way to display taskobjects or shapes on the control screen only? I only know of the ability to display text, not taskobjects/shapes.by bts - Questions and Answers
Thanks Jaewon, that is what we are currently doing, I was just hoping for the option to specify height and width. I figured there was a reason it's not an option.by bts - Questions and Answers
Hi Jaewon, Would it be possible to add inputs for width and height of video files, like already exists with image files?by bts - Questions and Answers
I understand, but I don't mind removing it whenever we update. Plus I'm always interested in understanding the underlying ML code better!by bts - Questions and Answers
Hi Jaewon, Is there a way to remove the reward_dur editable that seems to exist by default? We only change the number of juice drops and time between drops (I have editables for those), never the drop duration. I tried searching through the NIMH ML files for where that default editable might be, but I couldn't find it. Could you please let me know if it's possible to remove it and ifby bts - Questions and Answers
When you created scene 5, you called black_box.Position instead of a(n) taskobject(s). When black_box.Position was [0 0], you were asking ML to create scene 5 with task objects 0 and 0, which do not exist. If you changed it to positive integers, e.g. [1 2], you were creating scene 5 with task objects 1 and 2, which would work.by bts - Questions and Answers
Hi Jaewon, Sorry for so many questions in a row these past couple days! Currently, when you use the '-file' editable type, by default it looks for MATLAB files only. I am using it to look for stimulus files, so after the dialog box opens, I have to use the dropdown menu to look for all file types, then select the image/movie/gif file. This is only a minor inconvenience, but I was wonby bts - Questions and Answers
Thanks Jaewon, I figured out the issue. I was setting the default RGB as [255 255 255] instead of [1 1 1]. The error was because of the 0-255 range instead of 0-1.by bts - Questions and Answers
Hi Jaewon, I am having an issue with the '-color' editable type. When I use it, run the task, and open the "edit timing file variables" dialog box, the dialog box opens and immediately closes. No error message comes up. If I remove the '-color' type and only have the values as the editable, the dialog box opens fine and I can type in the RGB values. I am using alby bts - Questions and Answers
Ok. I assumed animated GIFs were supported based on this table that says GIF is an acceptable format for static images: I understand now that it is referring to static GIFs only. I will make it a movie instead. Thank you.by bts - Questions and Answers
Sorry, I should have been more specific. The error happens when I create a scene that includes ImageGraphic and call the taskobject from the userloop. It works fine with static images but not gif images. Here is the section of code causing the issue: img1 = ImageGraphic(eye_); fix1 = SingleTarget(img1); fix1.Target = fix_cue_img; fix1.Threshold = fix_cue_threshold; fth1 = FreeThenHold(fix1by bts - Questions and Answers
Hi Jaewon, When I try to call a .gif file using ImageGraphic, I get the error "PIC: Number of elements must not change. Use [] as one of the size inputs to automatically calculate the appropriate size for that dimension." Any ideas what might be the issue? When I put [] as one or both of the size inputs, I get the error "Can't parse out". I also get the first errby bts - Questions and Answers
Thank you Jaewon, it works perfectly.by bts - Questions and Answers
Hi Jaewon, I currently have an eye-tracking task written that will display a fixation cue at the mouse cursor position (left click will display a box, right click will display an image). We have a three-monitor setup, where Monitor 1 has the control panel/control screen, and Monitors 2 and 3 both display the subject screen. Monitor 2 is next to Monitor 1, outside the booth, so we can see whatby bts - Questions and Answers