Hello,
I am using APP Designer in Matlab to run experiments that are implement in Psychtoolbox. The problem is that once the Psychtoolbox is initiated and the screen is rendered, the call back functions in APP Designer wont fire anymore.
The idea is that I want the APP Designer as a controller in my first screen and the Psychtoolbox as the stimulus presentation in the second screen.
Here is a very basic sketch of the control panel with APP Designer:
In the startup function in the APP Designer I have:
[app.ptr, app.rect] =Screen('OpenWindow', 2, 0);
Screen('Preference', 'TextAlphaBlending', 1);
app.opacity = 128;
Screen('FillRect', app.ptr, [128 128 128+app.opacity]);
Screen('Flip', app.ptr);
In the call back function for the Next Button I have:
app.opacity = app.opacity + 5;
Screen('FillRect', app.ptr, [128 128 128-app.opacity] );
Screen('Flip', app.ptr);
And for Previous call back I have:
app.opacity = app.opacity - 5;
Screen('FillRect', app.ptr, [128 128 128 1app.opacity );
Screen('Flip', app.ptr);
And what I expect is that a screen is loaded on the second monitor, and by clicking on the Next and Previous button I should be able to increase or decrease the background opacity in the second screen.
What happens is that in this code, the screen gets initiated on the second monitor, but I am not anymore able to click on the APP Designer panel on my first window, and if I try to activate the APP Designer app in the first monitor by Alt+Tab, the Psychtolbox in the second monitor goes back to the purpled calibration window. So I added a WaitSecs at the end of presentation. In this case when I try to access the control panel, it doesn’t get freezed and I can click on the buttons, but the callbacks are not fired.
Any tip on how resolve this issue or how to design a control panel for such applications is highly appreciated.