orientation selection - saffron using user-defined pulse sequences

A place to report and discuss potential bugs
Post Reply
ykliao
User
Posts: 15
Joined: Sun Jun 20, 2021 11:56 pm

orientation selection - saffron using user-defined pulse sequences

Post by ykliao »

Hello,

The version I'm using is 6.0.0-dev.33.
I'm trying to run some experiments with user-defined pulse sequences. Before I go to the desired pulse sequences, I started testing from the 3-pulse ESEEM with ideal pulses. And when I tried to use Exp.mwFreq I was given an error message:

Error using saffron
Orientation selection: Exp.ExciteWidth (in MHz) missing. It should be about the inverse of the first pulse length
(100MHz for 10ns). If you don't want orientation selection, set it to a very large number (1e6) or remove the
microwave frequency.

even though the Exp.ExciteWidth was also defined.

I'm not sure if it's really a bug or I missed something in my code, but the code worked just fine without the Exp.ExciteWidth and Exp.mwFreq. The code I used is as follows:

Code: Select all

clear;clc
Aiso = 1; Aani = 1;

sys = struct('g', [2.05 2.06],...
    'Nucs','13C',...
    'A',Aiso + Aani*[-1 -1 2]);

nP = 256;
dt = 0.032;
tau = 0.146;

p90.Flip = pi/2;
p180.Flip = pi;
exp.Field = 330;
exp.nPoints = nP;
exp.ExciteWidth = 62.5;
exp.mwFreq = 9.5;
exp.Sequence = {p90 tau p90 0 p90 tau};
exp.Dim1 = {'d2', dt};

saffron(sys,exp);

Thank you for your time.

Matt Krzyaniak
EasySpin Guru
Posts: 153
Joined: Tue Jul 22, 2014 11:01 am
Location: Northwestern University

Re: orientation selection - saffron using user-defined pulse sequences

Post by Matt Krzyaniak »

Yes that looks like a bug. Thanks for reporting it.

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

Re: orientation selection - saffron using user-defined pulse sequences

Post by Stefan Stoll »

This is now fixed in 6.0.0-dev.35. Thanks Matt for fixing it!

ykliao
User
Posts: 15
Joined: Sun Jun 20, 2021 11:56 pm

Re: orientation selection - saffron using user-defined pulse sequences

Post by ykliao »

Thanks a lot!

Post Reply