Page 1 of 1

orientation selection - saffron using user-defined pulse sequences

Posted: Thu Aug 26, 2021 6:37 am
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.


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

Posted: Thu Aug 26, 2021 9:59 am
by Matt Krzyaniak

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


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

Posted: Thu Aug 26, 2021 9:49 pm
by Stefan Stoll

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


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

Posted: Fri Aug 27, 2021 5:05 am
by ykliao

Thanks a lot!