// Set the Sequence Name

seqfil = 'redor2onepul'    

// Make and Replace Standard Parameters

paramgroup('params','',                                      'BPautonoisecheck','real',0.0,
                                                             'BPclassic','string','n',
                                                             'roff','frequency',0.0,
                                                             'axis','channel','p')
paramgroup('params','',                                      'chHtppm','channel','dec',
                                                             'chHspinal','channel','dec')

// Make ap and dg Displays for Standard Parameters

paramgroup('dgapinit')
paramgroup('apstring','SAMPLE','','',                        'date','string','',
                                                             'file','string','')
paramgroup('dgapstring','ACQUISTION','','',                  'sw','frequency',0,
                                                             'at','delay',0, 
                                                             'np','integer',0, 
                                                             'd1','delay',0,
                                                             'nt','integer',0,
                                                             'ct','integer',0,
                                                             'bs','integer',0,
                                                             'ss','integer',0,
                                                             'rd','pulse',0, 
                                                             'ad','pulse',0,
                                                             'ddrtc','pulse',0,
                                                             'rof3(rof3)','pulse',0,
                                                             'gain','integer',0,
                                                             'roff','frequency',0,
                                                             'temp','amplitude',0,
                                                             'srate','amplitude',0)
paramgroup('dgapstring','tppmH','(Hseq=\'tppm\')','',        'aHtppm','amplitude',2000.0,
                                                             'pwHtppm','pulse',8.0,
                                                             'phHtppm','phase',0.0)
paramgroup('dgapstring','spinalH','(Hseq=\'spinal\')','',    'aHspinal','amplitude',2000.0,
                                                             'pwHspinal','pulse',8.0,
                                                             'phHspinal','phase',0.0)

// Add New Parameters With/Without ap and dg Displays

paramgroup('params','',                                      'Hmixseq','string','spinal',
                                                             'chHmixtppm','channel','dec',
                                                             'chHmixspinal','channel','dec')
paramgroup('all','mixtppmH','(Hmixseq=\'tppm\')','',         'aHmixtppm','amplitude',2000.0,
                                                             'pwHmixtppm','pulse',8.0,
                                                             'phHmixtppm','phase',0.0)
paramgroup('all','mixspinalH','(Hmixseq=\'spinal\')','',     'aHmixspinal','amplitude',2000.0,
                                                             'pwHmixspinal','pulse',8.0,
                                                             'phHmixspinal','phase',0.0)

paramgroup('all','180X','','',                               'aX180','amplitude',2000.0,
                                                             'pwX180','pulse',8.0)

paramgroup('all','xy8Y','','',                               'aYxy8','amplitude',2000.0,
                                                             'pwYxy8','pulse',8.0,
                                                             'nYxy8','integer',1,
                                                             'onYxy8','integer',1)
// Make the dg2 Display Directly

setprotect('dg2','clear',4)
$dg2 = '1:OBSERVE:tn,sfrq:6,tof:1,tpwr:1,aX90:3,pwX90:1;'
$dg2=$dg2+'1:1D Acquisition:sw:1,np:0,at:7;'
$dg2=$dg2+'2:DECOUPLE:dn,dfrq:6,dof:1,dpwr:1,aH90:3,pwH90:1;'
$dg2=$dg2+'3:DECOUPLE2:dn2,dfrq2:6,dof2:1,dpwr2:1,aY90:3,pwY90:1;'
$dg2=$dg2+'4:DECOUPLE3:dn3,dfrq3:6,dof3:1,dpwr3:1,aZ90:3,pwZ90:1;'
dg2 = $dg2
setprotect('dg2','on',4)

// Call a Reset Macro

destroy('wrtp')
paramgroup('params','','wrtp','string','reset_redor2')
reset_redor2
write('line3','Macro %s is complete\n',$0)


                                              
