Pop_loadbv error while opening .vhdr files on eeglab
Show older comments
I am using eeglab on the matlab and when I open a .vhdr file on eeglab, i get an error 'pop_loadbv() on line 179-- no file or directory found' but when I use it to open a .vhdr file in another folder, it works. I have added the folder to the path numerous times. I have also moved the folder and then added it to the path to make sure it was more accessible. Can anyone help me out with this?
Answers (2)
I experienced the same issue and the files were all in the same folder (using macOS).
But by looking into ~/Documents/eeglab14_1_2b/plugins/bva-io1.5.13/pop_loadbv.m and adding:
disp(path);
disp(lower(hdr.commoninfos.datafile));
at line 177 and 178, I realised that the eeg file eeglab was looking for was named differently and that was because I had renamed the eeg, vmrk and vhdr files to a more convenient name after they were generated. The problem was that the vhdr file still contained references to the old eeg and vmrk filenames. Reverting the filename of the three files to the old name solved my issue.
Alternatively, you can edit the vhdr file and update the DataFile and MarkerFile variables to retain the newer filename and the DataFile variable in the vmrk file.
1 Comment
Henrry Lee
on 9 Mar 2019
you are right, thank you
Sukrut Sonty
on 13 Jul 2018
0 votes
Hi there, in order for the .vhdr file to run, it requires that the folder containing it also contain the associated .eeg and .vmrk files. This is because the .vhdr file references the other two files in its code. So just move the other two files to the directory with the .vhdr file and it should run fine!
Categories
Find more on EEG/MEG/ECoG in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!