[Eeglablist] ERPLAB BINLISTER issue - cannot query REG_NONE
Gyurkovics, Mate
mategy at illinois.edu
Thu Jul 30 15:27:53 PDT 2026
Hi all,
I'm trying to use ERPLAB's binlister function to assign events to bins, but whenever I try to open my binlister file I get a weird error, saying "Cannot query value of type REG_NONE".
I have no idea why this might be. The error message specifically highlighted line 186 in neobinlister2() as the source of the error, so I checked out the code, and those couple of lines there did not seem to be consequential so I commented them out:
%if ispc
% userdir = winqueryreg('HKEY_CURRENT_USER',...
% ['Software\Microsoft\Windows\CurrentVersion\' ...
% 'Explorer\Shell Folders'],'Personal');
% %
% % Captures user login
% %
% userlogin = regexprep(userdir, '.*\', '');
% else
% userdir = char(java.lang.System.getProperty('user.home'));
%
% %
% % Captures user login
% %
% userlogin = regexprep(userdir, '.*/', '');
% end
The variable userlogin only seems to be used once in the whole function, so I commented out that line (line 242) too:
%EVENTLIST.account = userlogin;
This made the error go away, and the output seems to be what I'd expect, but I just wanted to double check with the list: is it okay to remove these lines? Could it break the function in unexpected ways? If yes, is there another way to resolve this error?
Thanks,
Mate
More information about the eeglablist
mailing list