Page 1 of 1

eprload function with Magnettech

Posted: Mon Aug 15, 2022 3:25 pm
by Zuzu1er

Hello hello hello,
I'm currently using Magnettech to get my EPR signatures. But when it came to the simulation part I have an error reported telling me that's the file or the directory does not exist ! But it is there ! I don't know what to do, so I hope someone here could help me :)
Thank you so much everyone.

Alex.


Re: eprload function with Magnettech

Posted: Wed Aug 17, 2022 11:06 pm
by Stefan Stoll

Can you please provide some more specifics? What is the current MATLAB directory? What is your file name? How were you calling EasySpin's eprload?


Re: eprload function with Magnettech

Posted: Mon Aug 22, 2022 11:46 am
by Zuzu1er

Hello,
Yes of course.
I call easyspin's eprload with : [Bexp,Specexp,par]=eprload('20220803_170955150_Mo_ecFdhF_temp_08_tmp-173C_result');
The file name though is : 20220803_170955150_Mo_ecFdhF_temp_08_tmp
-173C_result
For the Matlab directory I don't understand what you mean by that. If you ask if the matlab code file is stored in the same place than the EPR spectra than the answer is yes. Otherwise you'd have to tell me more :)
Thank you for everything.
Alex.


Re: eprload function with Magnettech

Posted: Mon Aug 22, 2022 11:53 am
by Zuzu1er

You can see on the right side that all the files are in the correct directory :

"20220803_170955150_Mo_ecFdhF_temp_08_tmp-173C_result.xml
Mo_ecFdhF_temp_08_tmp
-173C_result.spe
SimulationFDHFXBand25acc.m"

But at the end the message I have is this one :

"Error using eprload
The file or directory 20220803_170955150_Mo_ecFdhF_temp_08_tmp_-173C_result does not exist!

Error in SimulationFDHFXBand25acc (line 25)
[Bexp,Specexp,par]=eprload('20220803_170955150_Mo_ecFdhF_temp_08_tmp_-173C_result');"


Re: eprload function with Magnettech

Posted: Wed Aug 24, 2022 5:21 am
by katarkon

Probably, the filename must contain the extension (.xml for Magnettech). Your scripts does not contain ir.


Number of points_ eprload function with Magnettech

Posted: Fri Dec 09, 2022 1:40 am
by NadicaMS

Hello,

we have a problem with eprload function with xml or spe files with the new benchtop Bruker Magnettech ESR5000.
The number of points is N=60 000 in files however we export it, we can reduce it but it does not help.
When we use eprload, in matlab the unusual number of points has been loaded (sometimes N=7012, sometimes N=1149 , etc.).
The problem is we cannot get the logic of this, spectra look the same but what is origin of this some averaging, dependence on sweep or something else.

Thank you in advance for help!


Re: eprload function with Magnettech

Posted: Mon Dec 12, 2022 2:38 am
by katarkon

Please load the examples of the xml files which You try to import.


Re: eprload function with Magnettech

Posted: Mon Dec 19, 2022 3:12 am
by NadicaMS

Dear Expert,

thank you for the reply.
Please, find attached same spectra in *.xml, *.spe and *.csv form.
Each format loads different number of data points although all the spectra look the same.

Thank you!


Re: eprload function with Magnettech

Posted: Tue Jan 17, 2023 10:24 am
by Stefan Stoll

The data in the CSV and the SPE file appear to be just interpolations of the XML data, with 60000 and 4096 points respectively.

Here is a script that shows this. Zoom in to see the interpolations.

Code: Select all

clear, clc
[B_xml,spc_xml,p] = eprload('DPPH.xml');
[B_spe,spc_spe] = eprload('DPPH.spe');
data = readmatrix('DPPH.csv','NumHeaderLines',88,'Delimiter',';');
B_csv = data(:,1);
spc_csv = data(:,2);
spc_spe = spc_spe/95;

spc_xml = spc_xml - spc_xml(1);
spc_spe = spc_spe - spc_spe(1);
spc_csv = spc_csv - spc_csv(1);

plot(B_xml,spc_xml,'o',...
  B_spe,spc_spe,'x',...
  B_csv,spc_csv,'.');
legend('xml','spe','csv')
whos