| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| function [gaze_x, heog_l, heog_r, plotfig] = dlg_checksync(callingFcn,chanlocs) |
|
|
| geometry = { 1 [2 0.8 0.5] [2 0.8 0.5] [2 0.8 0.5] [2 1.3] }; |
|
|
| |
| uilist = {... |
| {'Style', 'text', 'string', 'Specify channels containing horiz. eye-track and horiz. EOG electrodes', 'fontweight', 'bold'},... |
| {'Style', 'text', 'string', 'Eye-tracker channel with horiz. gaze position (X):'},... |
| {'Style', 'edit', 'string', '', 'tag', 'chan_gaze_x', 'TooltipString','Pick channel that contains the horizontal gaze position of one of the eyes' }, ... |
| {'Style', 'pushbutton', 'string', '...', 'enable' fastif(isempty(chanlocs), 'off', 'on') 'callback' 'tmpchanlocs = EEG.chanlocs; [tmp tmpval] = pop_chansel({tmpchanlocs.labels}, ''withindex'', ''on'', ''selectionmode'',''single''); set(findobj(gcbf, ''tag'', ''chan_gaze_x''), ''string'',tmp); clear tmp tmpchanlocs tmpval'},... |
| ... |
| {'Style', 'text', 'string', 'Horizontal EOG: LEFT electrode:'},... |
| {'Style', 'edit', 'string', '', 'tag', 'chan_eog_l', 'TooltipString','Pick EOG (or frontolateral EEG) channels place left of the eyes' }, ... |
| {'Style', 'pushbutton', 'string', '...', 'enable' fastif(isempty(chanlocs), 'off', 'on') 'callback' 'tmpchanlocs = EEG.chanlocs; [tmp tmpval] = pop_chansel({tmpchanlocs.labels}, ''withindex'', ''on'', ''selectionmode'',''single''); set(findobj(gcbf, ''tag'', ''chan_eog_l''), ''string'',tmp); clear tmp tmpchanlocs tmpval' },... |
| ... |
| {'Style', 'text', 'string', 'Horizontal EOG: RIGHT electrode:'},... |
| {'Style', 'edit', 'string', '', 'tag', 'chan_eog_r', 'TooltipString','Pick EOG (or frontolateral EEG) channels place right of the eyes' }, ... |
| {'Style', 'pushbutton', 'string', '...', 'enable' fastif(isempty(chanlocs), 'off', 'on') 'callback' 'tmpchanlocs = EEG.chanlocs; [tmp tmpval] = pop_chansel({tmpchanlocs.labels}, ''withindex'', ''on'', ''selectionmode'',''single''); set(findobj(gcbf, ''tag'', ''chan_eog_r''), ''string'',tmp); clear tmp tmpchanlocs tmpval' },... |
| ... |
| {'Style', 'text', 'string', 'Plot figure with cross-correlation function?'},... |
| {'Style', 'checkbox','value', 1,'tag','plotfig'},... |
| }; |
|
|
| |
| [results tmp tmp outstruct] = inputgui( 'geometry',geometry, ... |
| 'uilist',uilist,'helpcom', ['pophelp(''' callingFcn ''');'],... |
| 'title', ['Check synchronization -- ', callingFcn]); |
|
|
| |
| if isempty(results) |
| return |
| end |
|
|
| gaze_x = eeg_decodechan(chanlocs,outstruct.chan_gaze_x); |
| heog_l = eeg_decodechan(chanlocs,outstruct.chan_eog_l); |
| heog_r = eeg_decodechan(chanlocs,outstruct.chan_eog_r); |
| plotfig = outstruct.plotfig; |
|
|
| end |