Matlab does not read in Polybench Triggers correctly (code runs on other machine without any problems)
5 次查看(过去 30 天)
显示 更早的评论
Dear community,
I encountered the following problem: Matlab cannot correctly (fully) read a Polybench file and says that there are no events/triggers (see error code below).
However, on a different computer, the exact same code works just fine and the triggers are displayed and the data pre-processing works.
Software information:
- stimulus presentation software: "Presentation" from Neurobehavioral Systems
- EEG data collection: TMSi Polybench (file extension: ".DATA.Poly5")
- Matlab plugins: EEGLab and Fieldtrip
- Computers: OS Windows 10 (both computers)
- Matlab version: R2022a (both computers)
Troubleshooting we have done so far which changed nothing:
- updating plugins
- updating fileio seperately
- checked whether all plugins are correctly added to the path
- checked whether "set path" is correct overall
- checked whether the paths in our code are correct
- opening the data manually via EEGLab to display the triggers (none were shown on my computer, all were shown on other computer)
- using my exact code on the other computer (except for changing file locations of course)
- using my files on other computer (worked fine)
- uploading the working file from other computer to use on my computer (again), did not work
- checking under Windows whether the file is compressed (it is not)
- checking for same software versions and various settings on both computers to possibly align them
Interesting:
- The file size varies in size. When uploaded, the file is e.g. 182,1 MB, when downloaded onto my system, it only states 174 MB (what Windows says) and it even has an other size on the working computer (here, the file is also less than 182,1 MB but bigger than 174 MB).
- I recorded the data and made it available (via upload to a cloud) to the other person where the files are read/processed correctly, hence, I assume that I, in fact, have the correct/full files available but they are not opened correctly.
We suspect that maybe some "internal" setting in MATLAB is different on my computer compared to the settings on the other computer although I have not changed any settings after installation. As the triggers were indeed recorded correctly and the exact same code works just fine on another computer, we think that we can exclude our codes being the culprits. Another possibility could be that there might be a problem with the execution of fileio on my computer?
I would be happy about any possible ideas or even solutions to fix this issue. Thank you in advance!
Cheers,
Karen
Error Code (which possibly only highlights the "missing" triggers):
"Cannot epoch data with no events
Error using pop_rmbase
pop_rmbase(): Bad time range
Error in Epochize_1hz_adult (line 41)
EEG = pop_rmbase(EEG, baseline);
Error in call_steps_AUTO_ICA_1 (line 60)
EEG = Epochize_1hz_adult(filepath,filename,t_minmax,baseline,relevant_triggers);
Red warning from beginning of the program:
"Warning: EEGLAB is in the MATLAB toolbox folder which is not recommended
You may experience errors if a plugin overloads a MATLAB function"
0 个评论
回答(1 个)
AKennedy
2024-1-23
Hi Karen,
It appears that MATLAB is encountering difficulties when attempting to read a Polybench file, resulting in an error indicating that there are no events or triggers present. Given the detailed troubleshooting steps you have already taken to resolve the issue, here is a concise list of additional actions that may help resolve the issue:
1. Reset MATLAB Preferences to its default state to eliminate any configuration issues specific to the installation.
2. Ensure that you have full read permissions for the files on your system.
3. Use “checksum” verification to ensure that the file is not corrupted during transfer.
4. Reorder the MATLAB path to prioritize EEGLab and Fieldtrip directories, avoiding conflicts with other functions.
5. Address the EEGLAB warning by moving it out of the MATLAB toolbox directory.
6. Check if the file system format differences are causing discrepancies in file size reporting.
7. Completely remove and reinstall EEGLab, Fieldtrip, and fileio to ensure there are no corrupted installations.
8. Try running MATLAB as an administrator or in compatibility mode for a different version of Windows.
9. As a last resort, a fresh reinstall of MATLAB may resolve any hidden issues with the current installation.
You can find more information on “checksum” here: https://www.mathworks.com/help/simulink/slref/simulink.blockdiagram.getchecksum.html?searchHighlight=checkSum&s_tid=srchtitle_support_results_2_checkSum
Hopefully this will help you resolve the issue.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 EEG/MEG/ECoG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!