Page 1 of 1

Error in EPR load

Posted: Sun Jan 31, 2016 8:30 am
by natalia
Hi,
I recently installed Matlab R2015b. When I tried to load a bruker file the following message came up.
I am not sure what bufSize is. Can anyone help please?

>> [B59d,spc59d] = eprload('kk759d_wide');
Error using textscan
'BufSize' is no longer required and has been
removed.

Error in eprload

Error in eprload

Error in eprload

Re: Error in EPR load

Posted: Sun Jan 31, 2016 10:37 am
by Stefan Stoll
Check whether you have the latest version of EasySpin. This used to be a bug, but was fixed in 5.0.8.

Re: Error in EPR load

Posted: Sun Jan 31, 2016 12:08 pm
by natalia
That was it!
Thank you. :D

Re: Error in EPR load

Posted: Wed Jul 13, 2016 3:27 pm
by myersw802
I have Matlab 2015b and EasySpin 5.0.22, error for multiple files of Xenon and Xepr origin is:

Error using textscan
'BufSize' is no longer required and has been removed.

Error in eprload

Error in eprload

Error in plot_ENDORxy (line 10)
[b,a,par] = eprload('AUTOSAVE0000.DTA');

This started spontaneously after some weeks/months with the Matlab EasySpin combo above. I'm using a pre-textscan eprload for now.

Re: Error in EPR load

Posted: Wed Jul 13, 2016 3:36 pm
by Stefan Stoll
This should not appear anymore in 5.0.22 with R2015b. Here is the corresponding code from eprload:

Code: Select all

MatlabVersion = sscanf(version,'%f',1);
if MatlabVersion<8.6  % prior to R2015b
    warning('off','MATLAB:textscan:BufSizeDeprecation');
    allLines = textscan(fh,'%s','whitespace','','delimiter','\n','bufsize',500000); %#ok<BUFSIZE>
  else
    allLines = textscan(fh,'%s','whitespace','','delimiter','\n');
  end
Please post a file so we can test this (again).

Re: Error in EPR load

Posted: Sat Jul 16, 2016 2:06 pm
by myersw802
>> version

ans =

8.6.0.267246 (R2015b)

>> easyspininfo
==================================================================
Release: 5.0.22 (2016-05-17)
Expiry date: 30-Jun-2017
Folder: [ ... ]
MATLAB version: 8.6.0.267246 (R2015b)
Platform: Microsoft Windows [Version 6.1.7601]
mex-files: mexw64, ok
System date: 16-Jul-2016 21:39:01
Temp dir: [ ... ]
==================================================================

Re: Error in EPR load

Posted: Sat Jul 16, 2016 8:04 pm
by Stefan Stoll
Please post DTA and DSC files that generate this error, so we can look into it.

Re: Error in EPR load

Posted: Mon Jul 18, 2016 1:32 pm
by myersw802
Sorry I missed the following error messages that appeared previously. The file attachment appears like it might work this time.

The extension dsc is not allowed. The extension des is not allowed. The extension txt is not allowed.
AUTOSAVE0000.m
rename extension to DSC
(2.9 KiB) Downloaded 561 times
rename extension to DSC

The extension dta is not allowed. The extension dat is not allowed.
AUTOSAVE0000.p
rename the extension to DTA
(23.44 KiB) Downloaded 504 times
rename the extension to DTA

Re: Error in EPR load

Posted: Mon Jul 18, 2016 1:52 pm
by Stefan Stoll
Thanks. I cannot reproduce this problem. The file loads cleanly with R2015b and 5.0.22 on my Win10 computer. Can you check whether the correct functions are being called? Use

Code: Select all

which eprload -all
which textscan -all

Re: Error in EPR load

Posted: Mon Jul 18, 2016 2:21 pm
by myersw802
That's it! Sorry I thought I had checked that previously by paring the path down to just EasySpin, but apparently not. Many thanks. -Will
...\Documents\MATLAB\UserCommunity\BrittLab\eprload.p