You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[when i use command "pop_writeeeg(EEG1, save_path_bdf, 'TYPE','BDF');" to save data to BDF format, i find overbit occur .]
#### Steps to Reproduce
[*First Step:read an edf format eeg data *]
[Second Step:save to BDF format]
#### Expected behavior:
[*save the bdf data same with the edf data without any loss*]
#### Actual behavior:
[*i read the bdf data saved before,it have some different with the edf data,when i observe the new bdf data,i find same continous point have the same value,i guesse that overbit happened in saving process ;
i watch the writeeeg function,find that there is a fix about bdf precision inline 211-215,but the code ,in 246-250 line,cover its function.
so when i save the bdf format,actually,saved as 16bit int liking edf format.
at last,i add the follow code after 250-line,it works as my expection.
"if strcmp(HDR.TYPE, 'BDF')
HDR.DigMin = repmat(-2^23, size(HDR.PhysMin));
HDR.DigMax = repmat(2^23-1, size(HDR.PhysMax));
end"
*]
#### Versions
| | |
|----| ---- |
| OS version | [windows 11] |
| Matlab version | [2022a] |
| EEGLAB version | [eeglab2022.0] |
The text was updated successfully, but these errors were encountered:
Description
[when i use command "pop_writeeeg(EEG1, save_path_bdf, 'TYPE','BDF');" to save data to BDF format, i find overbit occur .]
#### Steps to Reproduce
#### Expected behavior: [*save the bdf data same with the edf data without any loss*]
#### Actual behavior: [*i read the bdf data saved before,it have some different with the edf data,when i observe the new bdf data,i find same continous point have the same value,i guesse that overbit happened in saving process ; i watch the writeeeg function,find that there is a fix about bdf precision inline 211-215,but the code ,in 246-250 line,cover its function. so when i save the bdf format,actually,saved as 16bit int liking edf format. at last,i add the follow code after 250-line,it works as my expection. "if strcmp(HDR.TYPE, 'BDF') HDR.DigMin = repmat(-2^23, size(HDR.PhysMin)); HDR.DigMax = repmat(2^23-1, size(HDR.PhysMax)); end" *]
#### Versions
| | |

|----| ---- |
| OS version | [windows 11] |
| Matlab version | [2022a] |
| EEGLAB version | [eeglab2022.0] |
The text was updated successfully, but these errors were encountered: