Thanks for this, your suggestion of treating it as a fallback screen was able to resolve the issue. In case anyone runs into a similar problem, here's precisely how I solved it. My system consisted of a laptop screen, which will be Screen #1. Connected via USB+HDMI was an HMTECH 10" touchscreen for raspberry pi, which I picked for its low cost, its compatible with standard windows 10by PatrickM - Questions and Answers
The background color of my screen had always been set to a different color, gray, but it doesn't show up that way, its black. Just now, my "working system" has stopped working as well. I had checked, my system had an AMD Ryzen 5825, and it had integrated Radeon graphics. The working system had GPU drivers from 3/30/2023, and had been fine. Once used for a bit, I'm guessingby PatrickM - Questions and Answers
We had successfully been running a touchscreen experiment with no issues for a couple of months. We didn't change anything on the system ourselves. The system is a Dell Inspiron laptop with AMD CPU and integrated Radeon graphics, and a separate touchscreen is connected via usb and hdmi. I recalled a while ago installing the AMD Adrenaline software, and the touchscreen will then fail to sby PatrickM - Questions and Answers
I have filmed it on my system, and its exactly the code I zipped up. Also, it appears if I keep my mouse completely still, it waits almost a couple of seconds to get started, if I leave it in the center. (mouse simulation mode) Now, in real life, eyetracking is stochastic so I doubt it would have any impact on real experiments, but still strange.by PatrickM - Questions and Answers
Okay, I have found a way to replicate the bug in a different much simpler task, and I think its now relevant to share. I was writing the following task: 1. Fixation dot appears on a black background. 2. The moment fixation is acquired, flash screen white for 100 ms 3. Sometimes give a reward. In simulation mode, if you move the mouse quickly past the fixation window, it'll flash correctby PatrickM - Questions and Answers
This code does perform as expected. What is not entirely clear, is what is considered a premature exit point? I had not included any return statements in my timing script, (I used the scene v2 framework). I followed your recommended instructions, first, generate all scenes, then, based on how the error_type has been changed, determine which scenes to run. It is possible that one of my stimuliby PatrickM - Questions and Answers
Unfortunately, that method does not work. I tried both your exact code, as well as a few variants of it that involved TrialRecord.UserVar, calling idle(0) before escape_screen(), but I think once escape_screen() gets called, it somehow interferes with idle(), or perhaps assigning values to variables in the hotkey() function does not work as expected. I have tried this on the latest version of Mby PatrickM - Questions and Answers
I did find I made a mistake, the "mysterious" stimuli and fixation dots that remained on the screen, that's because I called the idle() function in the wrong parts of the many if else statements used to in my code. However, I still wish to clear a "correct" trial during the pause menu. Allow me to elaborate. We show a few stimuli to the subject, one group which corrby PatrickM - Questions and Answers
I searched the forum, and found this had been previously addressed, on the subject screen, unless a command is sent to clear the screen, if a stimuli was toggled on, it will remain on. A way to clear the screen is to call the idle() function during the trial code. It makes sense that the escape_screen() function pauses and follows a similar format, where anything currently on the screen, remainby PatrickM - Questions and Answers
I ran into a similar problem. It just so happened we needed to clear our screen no matter what, so I had thought just adding idle(0); to the end of the timing script would be fine. However, it was not always able to consistently guarantee a pause screen with nothing on it. I found, that you had to explicitly add the following at the end of the script in order to guarantee a clean screby PatrickM - Questions and Answers
If that is the case, I would assume software that lets you allocate a portion of your system RAM as a hard drive, would alleviate this problem. (Assuming the total amount of video you are playing per session is less than half your available system RAM) Or, more easily, if you have 100 dollars available, and a NVME compatible system, making sure you buy a 2280 form factor SSD from a reputable manby PatrickM - Questions and Answers
We have been having an extremely difficult to reproduce bug that's been happening for a few weeks now. There is a fixation task that we had run with no problems on a computer with near identical hardware dozens of times. When we switched the task to another computer, without making any changes to the code, it rarely crashes. The task consists of 4 mov taskobjects, that are looping. Thereby PatrickM - Questions and Answers
Ah thanks for responding so quickly. My apologies, I figured the functionality was there, I was just having trouble finding the exact section when searching.by PatrickM - Questions and Answers
We are using a NI BNC 2090A DAQ. Previously, 8 bit digital signals were working just fine. However, we wanted a few more bits, and the digital output ports are a bit strange. On our physical board, we have a set of 0-7 digital outputs (P0), and another 0-15 set (PF1), next to it. (Spring block, wires can be inserted inside) However, within monkeylogic, it detects 3 ports, port 0: with 0-31,by PatrickM - Questions and Answers
My bad, it appears I have a year old version of MonkeyLogic on my computer. It appears in the latest versions mp4 is supported. I'll just leave this here in case somebody else has the same problem as me on an older system.by PatrickM - Questions and Answers
I was attempting to make a task involving a video. In the docs for TaskObject one of the supported types was listed as "mp4". I put a video titled 'a.mp4' in the same folder as my task.m file, along with the conditions file. Frustratingly, it kept throwing the error "can't find 'a' ", despite it being in the folder. After a bit of investigation, Iby PatrickM - Questions and Answers