Welcome! Log In Create A New Profile

Advanced

mlplayer can't load file?

Posted by aboharbf 
mlplayer can't load file?
March 25, 2020 06:39PM
Trying to use mlplayer to watch back files recently, and I get the following error consistently:

Reference to non-existent field 'Stimuli'.

Error in mlmat/read (line 48)
            val = a.(name);

Error in mlexportstim (line 23)
Stimuli = fid.read('Stimuli');

Error in mlplayer/load_data (line 674)
                mlexportstim(tempdir,datafile);

Error in mlplayer/UIcallback (line 908)
                    load_data();

Happens whether I call mlplayer() and use the GUI to navigate or call mlplayer(path). At first I got problems with MLConfig not being defined, and this error seemingly occurs in a similar state (MLConfig still isn't defined, but this causes an error first). Using latest version of MonkeyLogic.
Re: mlplayer can't load file?
March 25, 2020 10:27PM
Please overwrite your mlmat.m with the attached file.
Attachments:
open | download - mlmat.m (2.2 KB)
Re: mlplayer can't load file?
April 07, 2020 01:57PM
same issue unfortunately. Tried mlplayer([Path to file]) and got the following:

K>> mlplayer('File')
Error using cd
Cannot CD to  (Name is nonexistent or not a directory).

Error in mlplayer/load_data (line 722)
        [p,n,e] = fileparts(datafile); cd(p); set(gcf,'name',['MonkeyLogic Player: ' n e]);

Error in mlplayer (line 76)
            load_data(datafile);
Re: mlplayer can't load file?
April 09, 2020 12:19PM
They are not the same issue. The previous issue was that mlmat did not return a blank for non-existing variables. The second error is because the filepath is not a full path.

I cannot rebuild the packages now, but, as a temporary solution, you can provide a full filepath to mlplayer or run it without an input argument (i.e, just type "mlplayer") and choose a file in the resulting file selection dialog.

----------

The download packages are updated.

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.