Back to the main page.
Bug 3409 - ft_databrowser does not work
Status | CLOSED WORKSFORME |
Reported | 2018-01-31 18:01:00 +0100 |
Modified | 2019-08-10 12:43:52 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P5 blocker |
Assigned to: | |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Shir Shalom - 2018-01-31 18:01:11 +0100
Created attachment 855 Error print screen Hi guys, I used FT a year ago and it was perfect! now i've downloaded the latest version (30-jan-18) and the following problem in ft_databrowser occurs: the figure window opens and i can see the data from each channel, but the second i move my mouse cursor over the window there's an error on matlab regarding WindowButtonMotionFcn. the error is displayed with each movement of the mouse, so A LOT of times. the only solution then is to close the figure window, without having the chance to mark the artifacts i want to reject. attaching my code, and a picture of the error. i wanted to also attach a data file but i can see only one attachment. anyway it happens with hdf5 and edf files. my matlab version: R2013b. thanks a lot, shir code: n_sub = input('Enter Subject Name: '); % load the hdf5 file with the eeg data you want to analyze [fileName pathName]= uigetfile('*.hdf5','Select data file'); curr_path=pathName; % see that you are at the folder that you want to save in. cd(curr_path) %% read info from header of edf file hdr=ft_read_header(fileName); Fs=hdr.Fs; nChans=hdr.nChans; label=hdr.label; ch_labels=hdr.label(1:34); % n_specific_ch=find(strcmp(label,'O1')); % e.g. F3 %% read data from 32 channels + trigger channel cfg = []; cfg.channel = [1:32 34]; cfg.header = hdr; cfg.datafile = fileName; cfg.continuous = 'yes'; cfg.bpfilter='yes'; cfg.bpfreq=[0.5 30]; cfg.detrend = 'yes'; % detrend = 'yes' for 11-second matfiles cfg.demean = 'yes'; data = ft_preprocessing(cfg); % trigChannel = (data.trial{1}(15,:)); %see trig channel %% ********************************************* % Visualize data to reject large artifacts % ********************************************* cfg=[]; cfg.continuous = 'yes'; cfg.blocksize = 6; % sec cfg.viewmode = 'vertical'; % cfg.selectmode = 'mark'; cfg.channel = {'all'};%,'-O1','-P8'};% O1 - bad channel isArtifactforICA=ft_databrowser(cfg, data);
Robert Oostenveld - 2018-02-03 17:39:29 +0100
I have used ft_databrowser recently and did not have any issues with it. I see from the screenshot that you are using an old (2013) MATLAB version. I suspect that to relate to the problem you have. I propose you use the MATLAB debugger. Start the data browser, create the problem and then scroll up all the way to the very first error. That is the function in which you should set a breakpoint using the MATLAB debugger; this will allow you to see what is wrong.
Robert Oostenveld - 2019-03-28 17:32:46 +0100
since this problem was not reproduced and later not confirmed by the reporter, I will close it. Please reopen and report more details if you want it to be fixed.