Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swa_SleepScoring and Matlab error #55

Open
gillkm opened this issue Feb 9, 2018 · 1 comment
Open

swa_SleepScoring and Matlab error #55

gillkm opened this issue Feb 9, 2018 · 1 comment

Comments

@gillkm
Copy link

gillkm commented Feb 9, 2018

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!

@Mensen
Copy link
Owner

Mensen commented Feb 11, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants