swa-matlab icon indicating copy to clipboard operation
swa-matlab copied to clipboard

swa_SleepScoring and Matlab error

Open gillkm opened this issue 7 years ago • 1 comments

Hi, I am a new user of the toolbox and am getting the following error when I try to load the swa_SleepScoring Gui in Matlab 15b.

swa_SleepScoring Undefined function 'setVerticalAlignment' for input arguments of type 'handle.handle'.

Error in swa_SleepScoring>DefineInterface (line 99) jStatusBar.setVerticalAlignment(javax.swing.SwingConstants.CENTER);

Error in swa_SleepScoring (line 7) DefineInterface

Any help is appreciated!

gillkm avatar Feb 09 '18 14:02 gillkm

Hi there!

This is unfortunately a common error since certain versions of matlab are a little more sensitive to certain elements in the toolbox.

The "fix" for this is to close and re-open the program. Usually within a couple of tries this resolves the issue.

If your goal is to use the toolbox for sleep scoring, even I have switched to using another toolbox I developed: https://github.com/CSC-UW/csc-eeg-tools

The csc_eeg_plotter in that toolbox is a little more generalised to viewing any EEG trace, with more flexible montage options, keyboard shortcuts, and event saving functions. So the swa_SleepScoring function will likely be removed in the future entirely to avoid overlap.

For slow wave, spindle or saw-tooth wave analysis, I do recommend this swa-matlab toolbox though :)

Hope that helps!

Mensen avatar Feb 11 '18 12:02 Mensen