Error in function MakeTexture (Matlab and Psychtoolbox)

4 ビュー (過去 30 日間)
Real Name
Real Name 2018 年 8 月 24 日
コメント済み: Yuxian Zhang 2021 年 9 月 15 日
Here is the error I am getting:
Error in function MakeTexture: Invalid Window (or Texture) Index provided: It doesn't correspond to an open window or texture.
Did you close it accidentally via Screen('Close') or Screen('CloseAll') ?
Error using Screen
Usage:
textureIndex=Screen('MakeTexture', WindowIndex, imageMatrix [, optimizeForDrawAngle=0] [,
specialFlags=0] [, floatprecision=0] [, textureOrientation=0] [, textureShader=0]);
Error in SLM/updateSLMDisplay (line 104)
texture = Screen(slm.window, 'MakeTexture', grayVals);
The code has been working without any problems on Matlab 2014a on a different computer. I am trying to run the same code on a new computer (with matlab 2016a). After installing psychtoolbox, I got the code to run correctly, but due to some weird hardware issues, in my debugging process I thought I'd try to reinstall psychtoolbox by using SetupPsychtoolbox. After running this, I am getting the above error. Anyone have any ideas? Thank you
  3 件のコメント
Daniel Revach
Daniel Revach 2021 年 7 月 18 日
Same problem here, any progress?
Yuxian Zhang
Yuxian Zhang 2021 年 9 月 15 日
You need to use this command to open window first:
[win,winrect] = Screen('OpenWindow',1,[255 255 255])

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeTiming and presenting 2D and 3D stimuli についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by