2015-09-11 103 views
0

我正在使用Psychtoolbox作爲界面的一部分顯示在屏幕上。我在主要腳本中創建了一個[win,Rect]=Screen('OpenWIndow',etc.etc...)的空白屏幕。我想稍後在腳本中使用函數調用來更新屏幕,但我不知道如何從函數中獲取值以更改屏幕。更改psychtoolbox屏幕

因此,像:

%main script 
[win,Rect]=Screen('OpenWIndow',0,[0 0 0],[0 0 1280 1024]); 

%do other processing (in my case communicating with another computer.) 

DrawStuff() %function that takes variables from script and updates the screen 

% continue script 

回答

0

屏幕(「翻轉」,贏)是你在找什麼,但你需要發出一些繪圖命令爲它顯示任何東西。

請閱讀psychtoolbox發行版中的PsychDocumentation/PTBTutorial-ECVP2013.pdf文件以瞭解刺激演示的基本知識。