[Eeglablist] EEGLAB with the MATLAB Compiler
Arnaud Delorme
arno at ucsd.edu
Tue Jul 5 13:51:21 PDT 2016
Dear Ben,
The error is due to new coding of handles in Matlab (since 2015 I think).
I think compiling EEGLAB with this method is the proper way to do it. Otherwise, you will be missing options. But you could try to simply compile together all the functions of EEGLAB with eeglab.m as entry.
Best wishes,
Arno
> On Jul 4, 2016, at 11:54 AM, Ben McCartney <bmccartney06 at qub.ac.uk> wrote:
>
> Hello Arno,
>
> Thanks for pointing me there, I tried to run the compile_eeglab script and as you feared it hasn't quite worked. During (or perhaps just after) the dependency analysis by REQUIREMENTS it threw an error in plugin_installstartup.m on line 60.
>
> Line 59: handles
> Line 60: results = cellfun(@(x)(get
> Line 61: get(handles, 'value')
>
> I haven't done much actual coding with MATLAB and I'm a little unsure what the intension is here, I played about with it a little bit and got a syntax error instead in pop_topoplot.m line 266. I'm not sure if this means I fixed the last issue or just moved it. I'm not worried about the gui working for my purposes, I think I just need something for my preprocessing script to call which I can package in the compiler myself.
>
> Is compiling EEGLAB like this the best way to get what I want or were you suggesting that as a quick win if it worked? It's feeling like it might take some time to go this.
>
> Thanks,
> Ben
> From: Arnaud Delorme <arno at ucsd.edu <mailto:arno at ucsd.edu>>
> Sent: 02 July 2016 14:48:05
> To: Ben McCartney
> Cc: eeglablist
> Subject: Re: [Eeglablist] EEGLAB with the MATLAB Compiler
>
> Dear Ben,
>
> There is a script that is auspiciously called “compile_eeglab.m”. It is in the miscfunc folder of EEGLAB. There are complexities associated with the EEGLAB options, because of the compiled version needs to use text files to replace these Matlab files. This used to be taken care of by the “compile_eeglab.m” function. However, EEGLAB has not been recompiled in years and I cannot guarantee that this script still works. Also, the problem is that plugins/extensions will need to be compiled with EEGLAB and that it will not be possible to update them.
>
> The issue is not so much in compiling as much as it is in testing that all the menus are functional. If you can make it work and check that there is no remaining problems (in particular the options mentioned above), let us know.
>
> Best wishes,
>
> Arno
>
>> On Jun 28, 2016, at 12:51 PM, Ben McCartney <bmccartney06 at qub.ac.uk <mailto:bmccartney06 at qub.ac.uk>> wrote:
>>
>> Hello,
>>
>> I have been using EEGLAB for some time for preprocessing and analysing EEG data from mobile headsets, I would now like to make use of the Matlab Compiler to produce a standalone executable of my preprocessing script. I have been compiling and installing a program, attempting to run it and finding which functions or variables are missing, then looking through the EEGLAB files to see what needs included. I am currently having difficulty ensuring all the dependencies for eeg_checkset() are covered, below is the error output when I try to load a .set file. The only mention of the undefined options variables I can find within EEGLAB are functions/adminfunc/eeg_options.m, functions/adminfunc/eeg_optionsbackup.m and functions/adminfunc/eeglab_options.m, all of which I have included in the compilation process. This script does run correctly if I use my general Matlab/EEGLAB install, so I'm wondering if anyone has made use of the Matlab Compiler with EEGLAB scripts before or has some insight into some other dependencies I would need to include?
>>
>> Thanks,
>> Ben
>>
>>
>> ------------------------------------------
>> Setting up environment variables
>> ---
>> LD_LIBRARY_PATH is .:/usr/local/MATLAB/MATLAB_Runtime/v901/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/bin/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/opengl/lib/glnxa64
>> Cannot find option file /home/ben/.mcrCache9.0.1/eeg_optionsbackup.txt
>> Cannot find option file /home/ben/.mcrCache9.0.1/eeg_options.txt
>>
>> ans =
>>
>> Undefined function or variable 'option_savetwofiles'.
>>
>> Warning: could not access the local eeg_options file
>> pop_loadset(): loading file 20160523160254_NT01-ENO-1-3_NTPrePro.set ...
>> Cannot find option file /home/ben/.mcrCache9.0.1/eeg_optionsbackup.txt
>> Cannot find option file /home/ben/.mcrCache9.0.1/eeg_options.txt
>>
>> ans =
>>
>> Undefined function or variable 'option_savetwofiles'.
>>
>> Warning: could not access the local eeg_options file
>> WARNING: EEGLAB ran out of memory while converting dataset to single precision.
>> Save dataset (preferably saving data to a separate file; see File > Memory options).
>> Then reload it.
>> Undefined function or variable 'option_scaleicarms'.
>>
>> Error in eeg_checkset (line 963)
>>
>>
>> Error in pop_loadset (line 192)
>>
>>
>> Error in pipeline3Compiler (line 27)
>>
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html <http://sccn.ucsd.edu/eeglab/eeglabmail.html>
>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu <mailto:eeglablist-unsubscribe at sccn.ucsd.edu>
>> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu <mailto:eeglablist-request at sccn.ucsd.edu>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html <http://sccn.ucsd.edu/eeglab/eeglabmail.html>
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu <mailto:eeglablist-unsubscribe at sccn.ucsd.edu>
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu <mailto:eeglablist-request at sccn.ucsd.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20160705/f387b5c2/attachment.html>
More information about the eeglablist
mailing list