Page 1 of 1

Error with AStrain in 5.1.0 ?

Posted: Mon Jul 25, 2016 12:25 am
by eric.besson
Hello everybody,
I'm Eric BESSON P.A. from Aix Marseille University and a young user of easyspin.
I used Easyspin 5.0.10 on matlab 2015 to simulate a simple solid state nitroxide. In my simulation i've introduced AStrain and it worked well. Then i have compiled the last version of Easyspin 5.1.0 and it doesn't work. A colleague from another laboratory that used to use EasySpin tried with my file.m and my experimental spectra had the same problem. If i remove the line with AStrain it works. Is it an EasySpin bug?
Thank you
Eric

Re: Error with AStrain in 5.1.0 ?

Posted: Mon Jul 25, 2016 9:03 am
by Stefan Stoll
Please post a short script that reproduces the error, so we can have a look.

Re: Error with AStrain in 5.1.0 ?

Posted: Tue Jul 26, 2016 5:44 am
by eric.besson
Ok, here is the script

clear;
close;
%%% Décalage en champ %%%
glu=2.0033;
greel=2.0036;
nu=9.409;
deltaB=planck*nu*1e9/bmagn*(1/greel-1/glu);
deltaB=deltaB*1e4;
% ----------------------------------------------------------
% spectre expérimental
% ----------------------------------------------------------
[Bexp,spec,par] = eprload('eb3009b.DTA');
Bexp=(Bexp+deltaB)/10;
%----------------------------------------------------------
% spectre simulé
%----------------------------------------------------------
Exp.mwFreq=9.409;
Exp.Range=[300 370];
Sys.g=[2.0087 2.0061 2.0022];
Sys.lwpp=[0.1 0.8];
Sys.Nucs = '14N';
Amtg=[0.3 0.9 2.6];
Sys.AStrain=[0.2 0.2 10];
Amhz=mt2mhz(Amtg);
Sys.A=Amhz;
%%%%%%%% paramètres variables %%%%%%%%%%%%%
Vary.g=[0.001 0.001 0.001];
Vary.A=mt2mhz([0.3 0.3 0.3]);
%%%%%%%%% fit %%%%%%%%%%
esfit('pepper',spec,Sys,Vary,Exp);

Re: Error with AStrain in 5.1.0 ?

Posted: Fri Sep 09, 2016 1:01 am
by Stefan Stoll
Please post a script that doesn't rely on experimental data, or include the appropriate files.

Re: Error with AStrain in 5.1.0 ?

Posted: Mon Sep 12, 2016 3:11 am
by IgorDAS
Hi Eric,

I had the same problem rerunnig a simulation I made on EasySpin 5.0. After I updated to EasySpin 5.1 I only managged to make this simulation work with AStrain by adding a little bit of gStrain (almost zero, but if you make zero doesn't work also). I was about to ask here about this when I saw your post.

Hope I have helped.