- #!/usr/bin/perl
- #
- #script to make EDROOPY decoupling sequence for bruker
- use Math::Trig ':pi';
- use Math::Trig ;
- use Math::Complex;
- use POSIX "fmod";
- ################################ DEFINE INPUT PARAMS BELOW
- #
- $start=0; $end=93; #NUMBER of stops
- $tf =0.001; #pulse length arbitrary
- $w1max=-36.7; #edroopy for vr=20khz, v1=100khz
- $lobes=1;
- $tot=$end+1;
- $pulse = $tot*0.1;
- #
- #MAKE pcpd2; nothing to edit below here
- ###########################################
- my @fdat=(); $sum=0;
- for($i = $start; $i <= $end; $i++){
- $inc=$i/$end;
- $t= 0 + $tf*$inc;
- $u = $lobes*pi*((2*$t/$tf) - 1);
- $fl = fmod($pht,pi2);
- $sum=$sum +$bf;
- #printf "%4.0f\t%3.8f\t\n",$i, $bf; # use this to view shape
- if ($bf > 0){
- }
- else{
- $bf = $bf+360;
- }
- }
- ###########################################
- exit;
Raw Paste