start_cogent is throwing error - 'cannot get active window'
이전 댓글 표시
I'm using Cogent toolbox (similar to psychtoolbox) for showing stimulus by opening a window.
I'm runing a sample code (given in the official site of Cogent: http://www.vislab.ucl.ac.uk/stroop_example_code.php) but each time i'm encountering an error:
*******
*ABORT* CogInput : Create : cannot get active window
*******
Error in start_cogent (line 125)
hDevice = CogInput( 'Create', 'keyboard', cogent.keyboard.mode, cogent.keyboard.queuelength );
Error in test2 (line 6)
start_cogent;
System configuration: Matlab-R2020b and Windows-10
My analysis: start_cogent is trying to access system file CogInput and an error is throwing as it can't assign required resources. Can't access the CogInput, it's a mex code.
How to fix this issue?
댓글 수: 5
Amy Rapp
2021년 12월 7일
@Joy Rakshit did you get an answer on this? I am also experiencing this issue.
Milad Kassaie
2022년 1월 17일
@Joy Rakshit @Amy Rapp Same issue here. I tried setting inputs to 'nonexclusive' in related matlab scripts (e.g. the cogent.keyboard.mode argument, and similar ones in config_keyboard, etc), hoping that it wouldn't have to look for active window but it didn't help. I'm on a multi-display-adaptor (Nvidia+Intel) Win10 machine, running R2018a.
Shivam Kalhan
2022년 3월 22일
Hi, I was getting the same issue when I used config_display, but the problem was solved for me when I used cgopen instead to set up my window.
Fatemeh Fazlali
2022년 5월 30일
Hi! I also have the same issue. Do you have any solutions?
Joy Rakshit
2022년 5월 31일
답변 (1개)
Fatemeh Fazlali
2022년 6월 8일
1 개 추천
Hey! I used MATLAB 2016b version instead of 2021b and it works quite fine.
카테고리
도움말 센터 및 File Exchange에서 Timing 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!