eprload function with Magnettech

A place to report and discuss potential bugs
Post Reply
Zuzu1er
Newbie
Posts: 3
Joined: Mon Aug 15, 2022 3:16 pm

eprload function with Magnettech

Post 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.

Stefan Stoll
EasySpin Creator
Posts: 1106
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: eprload function with Magnettech

Post 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?

Zuzu1er
Newbie
Posts: 3
Joined: Mon Aug 15, 2022 3:16 pm

Re: eprload function with Magnettech

Post 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.

Zuzu1er
Newbie
Posts: 3
Joined: Mon Aug 15, 2022 3:16 pm

Re: eprload function with Magnettech

Post 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');"

katarkon
Local Expert
Posts: 193
Joined: Mon Jan 12, 2015 4:01 am

Re: eprload function with Magnettech

Post by katarkon »

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

NadicaMS
Newbie
Posts: 2
Joined: Fri Dec 09, 2022 1:24 am

Number of points_ eprload function with Magnettech

Post 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!

katarkon
Local Expert
Posts: 193
Joined: Mon Jan 12, 2015 4:01 am

Re: eprload function with Magnettech

Post by katarkon »

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

NadicaMS
Newbie
Posts: 2
Joined: Fri Dec 09, 2022 1:24 am

Re: eprload function with Magnettech

Post 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!

Attachments
DPPH.zip
(1.28 MiB) Downloaded 2090 times
Stefan Stoll
EasySpin Creator
Posts: 1106
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: eprload function with Magnettech

Post 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
Post Reply