start_cogent is throwing error - 'cannot get active window'

7 visualizaciones (últimos 30 días)
Joy Rakshit
Joy Rakshit el 3 de Ag. de 2021
Respondida: Fatemeh Fazlali el 8 de Jun. de 2022
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 comentarios
Fatemeh Fazlali
Fatemeh Fazlali el 30 de Mayo de 2022
Hi! I also have the same issue. Do you have any solutions?
Joy Rakshit
Joy Rakshit el 31 de Mayo de 2022
Hi all,
I couldn't solve the problem and I started using psychtoolbox.
Using psychtoolbox is easier than using cogent.

Iniciar sesión para comentar.

Respuestas (1)

Fatemeh Fazlali
Fatemeh Fazlali el 8 de Jun. de 2022
Hey! I used MATLAB 2016b version instead of 2021b and it works quite fine.

Categorías

Más información sobre Image display and manipulation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by