Welcome! Log In Create A New Profile

Advanced

Run not working

Posted by G Ibos 
Run not working
November 15, 2022 10:02AM
Hello

I apologize if the solution is obvious, but I have an unexpected bug when I launch any task in ML. After pressing the run button, the program crashes with this error message:
Error using nargin
condition is a script.

Error in get_function_handle (line 13)
nargin(h);

Error in run_trial (line 49)
userloop_handle = get_function_handle(MLConditions.Conditions);

Error in monkeylogic/UIcallback (line 901)
result = run_trial(MLConfig,datafile);

Error while evaluating UIControl Callback.

Any idea?

Thanks
Re: Run not working
November 15, 2022 03:08PM
You put the name of your timing script in the txt file, didn't you? There is no such usage in NIMH ML. The txt file must be a conditions file or contain the name of the userloop function.
https://monkeylogic.nimh.nih.gov/docs_RunningTask.html#LoadConditions
Re: Run not working
November 16, 2022 05:43AM
Hi

I must have had a conflict with some other functions or some other versions of ML installed on the computer since resetting matlab path to default solved the issue.

Thanks for your help.

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.