Image OTF

This commit is contained in:
gac-x11ma
2021-04-12 14:27:13 +02:00
parent e4d933c4be
commit 3ba3997b5e
33 changed files with 9946 additions and 142 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+8
View File
@@ -67,5 +67,13 @@ eiger_status=ch.psi.pshell.epics.ChannelString|X11MA-ES1-SD1:cam1:Acquire|||true
eiger_bit_depth=ch.psi.pshell.epics.ChannelInteger|X11MA-ES1-SD1:cam1:BitDepth|||true
eiger_mode=ch.psi.pshell.epics.ChannelInteger|X11MA-ES1-SD1:cam1:ImageMode|||true
eiger_exposure=ch.psi.pshell.epics.ChannelDouble|X11MA-ES1-SD1:cam1:AcquireTime 2|||true
Ecrbk=ch.psi.pshell.epics.ChannelDouble|X11MA-PGM:CERBK|Read||true
CADC1=ch.psi.pshell.epics.ChannelDouble|X11MA-ES1:CADC1|Read||true
CADC2=ch.psi.pshell.epics.ChannelDouble|X11MA-ES1:CADC2|Read||true
CADC3=ch.psi.pshell.epics.ChannelDouble|X11MA-ES1:CADC3|Read||true
#CADC4=ch.psi.pshell.epics.ChannelDouble|X11MA-ES1:CADC4|Read||true
#CADC5=ch.psi.pshell.epics.ChannelDouble|X11MA-ES1:CADC5|Read||true
#CADC6=ch.psi.pshell.epics.ChannelDouble|X11MA-ES1:CADC6|Read||true
#CADC7=ch.psi.pshell.epics.ChannelDouble|X11MA-ES1:CADC7|Read||true
image=ch.psi.pshell.imaging.CameraSource|eiger|||true
axis=ch.psi.pshell.imaging.MjpegSource|http://axis-x11ma.psi.ch/axis-cgi/mjpg/video.cgi?id=176 true||-200|false
+1 -1
View File
@@ -1,4 +1,4 @@
#Wed Mar 03 11:24:27 CET 2021
#Wed Mar 17 11:12:32 CET 2021
environment=prod
testParameters=-testenv -user slssim\:4DMGBarXmr
sourceFolder=/sls/X11MA/Data1/e18976
+3 -3
View File
@@ -1,5 +1,5 @@
#Tue Feb 23 14:45:34 CET 2021
#Sat Mar 27 13:46:51 CET 2021
keywords=List;[]
ownerEmail=String;muhammad.qadir@jh-inst.cas.cz
ownerEmail=String;arik.beck@psi.ch
contactEmail=String;armin.kleibert@psi.ch
owner=String;Irfan Qadir
owner=String;Arik Beck
Regular → Executable
+3 -2
View File
@@ -1,2 +1,3 @@
#Fri Feb 26 10:39:26 CET 2021
SessionCounter=12
#Sat Mar 27 14:37:36 CET 2021
SessionCounter=14
CurrentSession=14
+6 -6
View File
@@ -1,18 +1,18 @@
#Fri Mar 12 12:09:24 CET 2021
#Mon Apr 12 14:15:30 CEST 2021
HARMONIC_ID_1=1
RSYNC_USER=
OUTLIERS_THRESHOLD=1000000000
NORM_FILE=/sls/X11MA/data/X11MA/Data1/2021/Yona250121/s250121
AUTO_SWITCH_VALVE=true
DRY_RUN=false
POL_ID_2=Circ_Minus
POL_ID_2=Lin_Hor
OFFSET_ID_1=0.0
ID=ID1_ID2
ID=ID2
OFFSET_ID_2=-1.1
proposal=proposal
ENERGY=800.0
ENERGY=707.8
proposer=proposer
POL_ID_1=Circ_Plus
POL_ID_1=Lin_Hor
RSYNC_HOST=
sample=sample
RSYNC_PATH=
@@ -22,5 +22,5 @@ ALPHA_ID_1=15.0
RSYNC_DEL=true
AVERAGING_DETECTOR=true
HARMONIC_ID_2=1
FdaBrowser=true
FdaBrowser=false
authors=author1|author2
+4 -4
View File
@@ -1,4 +1,4 @@
#Thu Mar 11 13:23:26 CET 2021
LastRunDate=210311
FileSequentialNumber=5936
DaySequentialNumber=2
#Mon Apr 12 14:26:20 CEST 2021
LastRunDate=210412
FileSequentialNumber=6615
DaySequentialNumber=8
+3 -3
View File
@@ -1,4 +1,4 @@
#Tue Feb 23 15:06:49 CET 2021
#Thu Apr 01 10:39:51 CEST 2021
spatialCalOffsetY=NaN
spatialCalOffsetX=NaN
colormapLogarithmic=false
@@ -6,7 +6,7 @@ scale=1.0
grayscale=false
spatialCalScaleX=NaN
spatialCalScaleY=NaN
colormapMax=500.0
colormapMax=100.0
rescaleOffset=0.0
roiWidth=-1
colormap=Grayscale
@@ -19,7 +19,7 @@ spatialCalUnits=null
flipVertically=false
roiHeight=-1
flipHorizontally=false
colormapAutomatic=false
colormapAutomatic=true
roiY=0
roiX=0
transpose=false
+187
View File
@@ -1491,6 +1491,193 @@
</Container>
</SubComponents>
</Container>
<Container class="javax.swing.JPanel" name="jPanel7">
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
<JTabbedPaneConstraints tabName="Image OTF">
<Property name="tabTitle" type="java.lang.String" value="Image OTF"/>
</JTabbedPaneConstraints>
</Constraint>
</Constraints>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="panelParameters" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="32767" attributes="0"/>
<Component id="buttonImgOTFStart" linkSize="36" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="64" max="-2" attributes="0"/>
<Component id="buttonImgOTFAbort" linkSize="36" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="panelParameters" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="151" max="32767" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="buttonImgOTFAbort" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="buttonImgOTFStart" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="40" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="panelParameters">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
<TitledBorder title="Parameters"/>
</Border>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Component id="checkImgOTFSaveImages" min="-2" max="-2" attributes="0"/>
<Group type="102" attributes="0">
<Group type="103" groupAlignment="1" attributes="0">
<Component id="jLabel3" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="jLabel1" alignment="1" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="spinnerE1" linkSize="35" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="spinnerTime" linkSize="35" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<EmptySpace pref="175" max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel5" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="jLabel2" alignment="1" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="spinnerE2" linkSize="35" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="spinnerDelay" linkSize="35" alignment="1" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="151" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="spinnerE1" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="spinnerE2" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="spinnerTime" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel5" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="spinnerDelay" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="119" max="32767" attributes="0"/>
<Component id="checkImgOTFSaveImages" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="horizontalAlignment" type="int" value="11"/>
<Property name="text" type="java.lang.String" value="E start:"/>
<Property name="toolTipText" type="java.lang.String" value=""/>
</Properties>
</Component>
<Component class="javax.swing.JSpinner" name="spinnerE1">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="680.0" maximum="9999.0" minimum="0.0" numberType="java.lang.Double" stepSize="1.0" type="number"/>
</Property>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="horizontalAlignment" type="int" value="11"/>
<Property name="text" type="java.lang.String" value="E end:"/>
<Property name="toolTipText" type="java.lang.String" value=""/>
</Properties>
</Component>
<Component class="javax.swing.JSpinner" name="spinnerE2">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="750.0" maximum="9999.0" minimum="0.0" numberType="java.lang.Double" stepSize="1.0" type="number"/>
</Property>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel3">
<Properties>
<Property name="horizontalAlignment" type="int" value="11"/>
<Property name="text" type="java.lang.String" value="Time(min):"/>
</Properties>
</Component>
<Component class="javax.swing.JSpinner" name="spinnerTime">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="1.0" maximum="60.0" minimum="0.0" numberType="java.lang.Double" stepSize="1.0" type="number"/>
</Property>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel5">
<Properties>
<Property name="horizontalAlignment" type="int" value="11"/>
<Property name="text" type="java.lang.String" value="Delay(s):"/>
</Properties>
</Component>
<Component class="javax.swing.JSpinner" name="spinnerDelay">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="0.1" maximum="600.0" minimum="0.0" numberType="java.lang.Double" stepSize="1.0" type="number"/>
</Property>
</Properties>
</Component>
<Component class="javax.swing.JCheckBox" name="checkImgOTFSaveImages">
<Properties>
<Property name="text" type="java.lang.String" value="Save images"/>
</Properties>
</Component>
</SubComponents>
</Container>
<Component class="javax.swing.JButton" name="buttonImgOTFStart">
<Properties>
<Property name="text" type="java.lang.String" value="Start"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonImgOTFStartActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="buttonImgOTFAbort">
<Properties>
<Property name="text" type="java.lang.String" value="Abort"/>
<Property name="enabled" type="boolean" value="false"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonImgOTFAbortActionPerformed"/>
</Events>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Container>
</SubComponents>
+220 -15
View File
@@ -86,7 +86,7 @@ public class DataAcquisition extends Panel {
SwingUtils.setEnumCombo(comboImgMethod, ImgMethod.class, true);
Component[] parameterControls = new Component[0];
for (JPanel panel : new JPanel[]{panelImgControls, panelSpectrum}) {
for (JPanel panel : new JPanel[]{panelImgControls, panelSpectrum, panelParameters}) {
for (Class cls : new Class[]{JComboBox.class, JSpinner.class, JToggleButton.class}) {
parameterControls = Arr.append(parameterControls, SwingUtils.getComponentsByType(panel, cls));
}
@@ -188,7 +188,7 @@ public class DataAcquisition extends Panel {
spinnerImgEng1.setVisible(comboImgMethod.getSelectedItem() == ImgMethod.Two_Energies.toString());
checkSwitchPol.setVisible(comboImgMethod.getSelectedItem() == ImgMethod.Take_Image.toString());
spinnerScans.setVisible(comboImgMethod.getSelectedItem() == ImgMethod.Take_Image.toString());
labelScans.setVisible(comboImgMethod.getSelectedItem() == ImgMethod.Take_Image.toString());
labelScans.setVisible(comboImgMethod.getSelectedItem() == ImgMethod.Take_Image.toString());
//panelSecondImage.setVisible(comboImgMethod.getSelectedItem() != ImgMethod.Take_Image.toString());
@@ -198,6 +198,9 @@ public class DataAcquisition extends Panel {
buttonSpecStart.setEnabled(getState() == State.Ready);
buttonSpecAbort.setEnabled(getState().isProcessing());
buttonImgOTFStart.setEnabled(getState() == State.Ready);
buttonImgOTFAbort.setEnabled(getState().isProcessing());
try {
String id = getSetting("ID");
boolean single = !id.equals("ID1_ID2");
@@ -338,8 +341,19 @@ public class DataAcquisition extends Panel {
return t;
});
}
void runAbsSpectrum() throws Context.ContextStateException {
Map<String, List<Integer>> getRois(){
Map<String, List<Integer>> roi = new HashMap<>();
for (int i = 0; i < rois.size(); i++) {
roi.put("Region" + (i + 1), Arrays.asList(new Integer[]{rois.get(i).getPosition().x,
rois.get(i).getPosition().y,
rois.get(i).getSize().width,
rois.get(i).getSize().height}));
}
return roi;
}
List getRanges(){
List ranges = new ArrayList();
for (int i = 0; i < modelRegions.getRowCount(); i++) {
List row = new ArrayList();
@@ -347,8 +361,11 @@ public class DataAcquisition extends Panel {
row.add(modelRegions.getValueAt(i, 1));
row.add(modelRegions.getValueAt(i, 2));
ranges.add(row);
}
}
return ranges;
}
void runAbsSpectrum() throws Context.ContextStateException {
HashMap args = new HashMap();
args.put("SAVE_SPECTRUM", checkSpecSaveSpectrum.isSelected());
args.put("SAVE_IMAGES", checkSpecSaveImages.isSelected());
@@ -357,15 +374,8 @@ public class DataAcquisition extends Panel {
args.put("EXPOSURE", spinnerSpecExp.getValue());
args.put("AVERAGE", spinnerSpecAvg.getValue());
args.put("NUMBER_SCANS", spinnerSpecScans.getValue());
args.put("RANGES", ranges);
Map<String, List<Integer>> roi = new HashMap<>();
for (int i = 0; i < rois.size(); i++) {
roi.put("Region" + (i + 1), Arrays.asList(new Integer[]{rois.get(i).getPosition().x,
rois.get(i).getPosition().y,
rois.get(i).getSize().width,
rois.get(i).getSize().height}));
}
args.put("ROI", roi);
args.put("RANGES", getRanges());
args.put("ROI", getRois());
runAsync("templates/EigerAbsSpec", args).handle((ret, t) -> {
if ((t != null) && (!getContext().isAborted())) {
@@ -414,6 +424,39 @@ public class DataAcquisition extends Panel {
});
}
}
void runImageOTF() throws Exception {
HashMap args = new HashMap();
Double e1 = (Double) spinnerE1.getValue();
Double e2 = (Double) spinnerE2.getValue();
args.put("E1", e1);
args.put("E2", e2);
args.put("TIME", (Double) spinnerTime.getValue());
args.put("DELAY", (Double) spinnerDelay.getValue());
String file = getContext().getSetup().expandPath("ImageOTF");
args.put("FILE", file);
String folder = getContext().getSetup().expandPath("{year}_{month}/{date}");
args.put("FOLDER", folder);
args.put("ROI", getRois());
args.put("SAVE_IMAGES", checkImgOTFSaveImages.isSelected());
buttonImgOTFAbort.setEnabled(true);
runAsync("templates/EnergyScan_img", args).handle((ok, ex) -> {
try {
buttonImgOTFAbort.setEnabled(false);
if (ex != null) {
throw ex;
} else {
}
} catch (Throwable t) {
getLogger().log(Level.WARNING, null, ex);
//showException((Exception)ex);
}
return ok;
});
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
@@ -528,6 +571,19 @@ public class DataAcquisition extends Panel {
dvpOffID1b2 = new ch.psi.pshell.swing.DeviceValuePanel();
dvpOffID2b2 = new ch.psi.pshell.swing.DeviceValuePanel();
labelOffID2a2 = new javax.swing.JLabel();
jPanel7 = new javax.swing.JPanel();
panelParameters = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
spinnerE1 = new javax.swing.JSpinner();
jLabel2 = new javax.swing.JLabel();
spinnerE2 = new javax.swing.JSpinner();
jLabel3 = new javax.swing.JLabel();
spinnerTime = new javax.swing.JSpinner();
jLabel5 = new javax.swing.JLabel();
spinnerDelay = new javax.swing.JSpinner();
checkImgOTFSaveImages = new javax.swing.JCheckBox();
buttonImgOTFStart = new javax.swing.JButton();
buttonImgOTFAbort = new javax.swing.JButton();
panelNorm.setBorder(javax.swing.BorderFactory.createTitledBorder("Normalization"));
@@ -1493,6 +1549,126 @@ public class DataAcquisition extends Panel {
jTabbedPane1.addTab("Absorption Spectrum", jPanel3);
panelParameters.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameters"));
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
jLabel1.setText("E start:");
jLabel1.setToolTipText("");
spinnerE1.setModel(new javax.swing.SpinnerNumberModel(680.0d, 0.0d, 9999.0d, 1.0d));
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
jLabel2.setText("E end:");
jLabel2.setToolTipText("");
spinnerE2.setModel(new javax.swing.SpinnerNumberModel(750.0d, 0.0d, 9999.0d, 1.0d));
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
jLabel3.setText("Time(min):");
spinnerTime.setModel(new javax.swing.SpinnerNumberModel(1.0d, 0.0d, 60.0d, 1.0d));
jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
jLabel5.setText("Delay(s):");
spinnerDelay.setModel(new javax.swing.SpinnerNumberModel(0.1d, 0.0d, 600.0d, 1.0d));
checkImgOTFSaveImages.setText("Save images");
javax.swing.GroupLayout panelParametersLayout = new javax.swing.GroupLayout(panelParameters);
panelParameters.setLayout(panelParametersLayout);
panelParametersLayout.setHorizontalGroup(
panelParametersLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelParametersLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelParametersLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(checkImgOTFSaveImages)
.addGroup(panelParametersLayout.createSequentialGroup()
.addGroup(panelParametersLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel3)
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelParametersLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(spinnerE1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(spinnerTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 175, Short.MAX_VALUE)
.addGroup(panelParametersLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelParametersLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(spinnerE2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(spinnerDelay, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(151, Short.MAX_VALUE))
);
panelParametersLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {spinnerDelay, spinnerE1, spinnerE2, spinnerTime});
panelParametersLayout.setVerticalGroup(
panelParametersLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelParametersLayout.createSequentialGroup()
.addGroup(panelParametersLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(spinnerE1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2)
.addComponent(spinnerE2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelParametersLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(spinnerTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5)
.addComponent(spinnerDelay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 119, Short.MAX_VALUE)
.addComponent(checkImgOTFSaveImages)
.addContainerGap())
);
buttonImgOTFStart.setText("Start");
buttonImgOTFStart.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonImgOTFStartActionPerformed(evt);
}
});
buttonImgOTFAbort.setText("Abort");
buttonImgOTFAbort.setEnabled(false);
buttonImgOTFAbort.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonImgOTFAbortActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
jPanel7.setLayout(jPanel7Layout);
jPanel7Layout.setHorizontalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
.addContainerGap()
.addComponent(panelParameters, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(buttonImgOTFStart)
.addGap(64, 64, 64)
.addComponent(buttonImgOTFAbort)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel7Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {buttonImgOTFAbort, buttonImgOTFStart});
jPanel7Layout.setVerticalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel7Layout.createSequentialGroup()
.addComponent(panelParameters, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 151, Short.MAX_VALUE)
.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buttonImgOTFAbort)
.addComponent(buttonImgOTFStart))
.addGap(40, 40, 40))
);
jTabbedPane1.addTab("Image OTF", jPanel7);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
@@ -1763,11 +1939,29 @@ public class DataAcquisition extends Panel {
}
}//GEN-LAST:event_radioAvPshellActionPerformed
private void buttonImgOTFStartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonImgOTFStartActionPerformed
try {
runImageOTF();
} catch (Exception ex) {
showException(ex);
}
}//GEN-LAST:event_buttonImgOTFStartActionPerformed
private void buttonImgOTFAbortActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonImgOTFAbortActionPerformed
try {
abort();
} catch (InterruptedException ex) {
getLogger().log(Level.SEVERE, null, ex);
}
}//GEN-LAST:event_buttonImgOTFAbortActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton buttonAdd;
private javax.swing.JButton buttonClear;
private javax.swing.ButtonGroup buttonGroup1;
private javax.swing.JButton buttonImgAbort;
private javax.swing.JButton buttonImgOTFAbort;
private javax.swing.JButton buttonImgOTFStart;
private javax.swing.JButton buttonImgStart;
private javax.swing.JButton buttonOpen;
private javax.swing.JButton buttonRemove;
@@ -1782,6 +1976,7 @@ public class DataAcquisition extends Panel {
private javax.swing.JButton buttonSpecAbort;
private javax.swing.JButton buttonSpecStart;
private javax.swing.JCheckBox checkImgAutosave;
private javax.swing.JCheckBox checkImgOTFSaveImages;
private javax.swing.JCheckBox checkSpecSaveImages;
private javax.swing.JCheckBox checkSpecSaveSpectrum;
private javax.swing.JCheckBox checkSpecSwitchPol;
@@ -1804,6 +1999,8 @@ public class DataAcquisition extends Panel {
private ch.psi.pshell.swing.DeviceValuePanel dvpOffID2b;
private ch.psi.pshell.swing.DeviceValuePanel dvpOffID2b1;
private ch.psi.pshell.swing.DeviceValuePanel dvpOffID2b2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel23;
@@ -1811,9 +2008,11 @@ public class DataAcquisition extends Panel {
private javax.swing.JLabel jLabel25;
private javax.swing.JLabel jLabel26;
private javax.swing.JLabel jLabel29;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel30;
private javax.swing.JLabel jLabel31;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
@@ -1821,6 +2020,7 @@ public class DataAcquisition extends Panel {
private javax.swing.JPanel jPanel4;
private javax.swing.JPanel jPanel5;
private javax.swing.JPanel jPanel6;
private javax.swing.JPanel jPanel7;
private javax.swing.JPanel jPanel9;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane2;
@@ -1852,11 +2052,15 @@ public class DataAcquisition extends Panel {
private javax.swing.JPanel panelNorm;
private javax.swing.JPanel panelNorm1;
private javax.swing.JPanel panelNorm2;
private javax.swing.JPanel panelParameters;
private javax.swing.JPanel panelRoi;
private javax.swing.JPanel panelSpectrum;
private javax.swing.JRadioButton radioAvDetector;
private javax.swing.JRadioButton radioAvPshell;
private ch.psi.pshell.imaging.Renderer rendererRoi;
private javax.swing.JSpinner spinnerDelay;
private javax.swing.JSpinner spinnerE1;
private javax.swing.JSpinner spinnerE2;
private javax.swing.JSpinner spinnerImgAvg;
private javax.swing.JSpinner spinnerImgEng1;
private javax.swing.JSpinner spinnerImgEng2;
@@ -1867,6 +2071,7 @@ public class DataAcquisition extends Panel {
private javax.swing.JSpinner spinnerSpecAvg;
private javax.swing.JSpinner spinnerSpecExp;
private javax.swing.JSpinner spinnerSpecScans;
private javax.swing.JSpinner spinnerTime;
private javax.swing.JTable tableRegions;
private javax.swing.JTable tableRoi;
private javax.swing.JButton textClearOutliersMask;
+193 -52
View File
@@ -16,78 +16,138 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="1" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel3" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="jLabel1" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="jLabel2" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="224" max="-2" attributes="0"/>
<Component id="buttonDone" min="-2" pref="127" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="buttonCloseVG10" min="-2" pref="127" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="buttonStopDetector" linkSize="1" max="32767" attributes="0"/>
<EmptySpace pref="68" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="comboMode" linkSize="1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="deviceValuePanel1" linkSize="1" min="-2" pref="106" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="buttonShowDetectorPanel" linkSize="4" min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="spinnerExpusure" linkSize="1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="deviceValuePanel3" linkSize="1" min="-2" pref="106" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="deviceValuePanel4" min="-2" pref="127" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="buttonShowDetectorPanel" min="-2" pref="127" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="comboMode" linkSize="1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="deviceValuePanel1" linkSize="1" min="-2" pref="106" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="comboDepth" linkSize="1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="deviceValuePanel2" linkSize="1" min="-2" pref="106" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="buttonAquire" min="-2" pref="127" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="buttonOpenVG10" min="-2" pref="127" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="buttonStartDetector" linkSize="1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="comboDepth" linkSize="1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="deviceValuePanel2" linkSize="1" min="-2" pref="106" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="spinnerExpusure" linkSize="1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="deviceValuePanel3" linkSize="1" min="-2" pref="106" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="checkMeasurements" linkSize="4" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace type="separate" max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="deviceValuePanel4" linkSize="1" alignment="1" pref="0" max="32767" attributes="0"/>
<Component id="buttonStopDetector" linkSize="1" alignment="1" max="32767" attributes="0"/>
<Component id="buttonTriggerDetector" linkSize="1" alignment="1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<Component id="renderer" max="32767" attributes="0"/>
<Group type="102" attributes="0">
<Component id="renderer" max="32767" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="checkMeasurements" min="-2" max="-2" attributes="0"/>
<Component id="comboScale" alignment="0" min="-2" pref="104" max="-2" attributes="0"/>
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<Component id="jLabel6" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<Group type="103" alignment="0" groupAlignment="1" max="-2" attributes="0">
<Component id="spinnerMax" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerMin" alignment="0" pref="72" max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="2" attributes="0">
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="2" max="-2" attributes="0">
<Component id="jLabel2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="comboMode" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="deviceValuePanel1" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="buttonShowDetectorPanel" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="buttonTriggerDetector" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Group type="103" alignment="1" groupAlignment="3" attributes="0">
<Component id="buttonAquire" alignment="3" min="-2" pref="35" max="-2" attributes="0"/>
<Component id="buttonOpenVG10" alignment="3" min="-2" pref="35" max="-2" attributes="0"/>
<Component id="buttonStartDetector" linkSize="2" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="2" attributes="0">
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="2" max="-2" attributes="0">
<Component id="jLabel1" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="comboDepth" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="deviceValuePanel2" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="buttonStopDetector" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Group type="103" alignment="1" groupAlignment="3" attributes="0">
<Component id="buttonDone" alignment="3" min="-2" pref="35" max="-2" attributes="0"/>
<Component id="buttonCloseVG10" alignment="3" min="-2" pref="35" max="-2" attributes="0"/>
<Component id="buttonStopDetector" linkSize="2" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="2" attributes="0">
<Component id="jLabel3" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="spinnerExpusure" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="deviceValuePanel3" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="checkMeasurements" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="deviceValuePanel4" linkSize="2" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="buttonShowDetectorPanel" alignment="2" min="-2" pref="35" max="-2" attributes="0"/>
</Group>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace min="-2" pref="36" max="-2" attributes="0"/>
<Component id="checkMeasurements" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="45" max="-2" attributes="0"/>
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="comboScale" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="spinnerMax" min="-2" pref="28" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="spinnerMin" min="-2" pref="28" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="renderer" pref="409" max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="renderer" pref="343" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -97,7 +157,7 @@
<Properties>
<Property name="deviceName" type="java.lang.String" value="image"/>
<Property name="mode" type="ch.psi.pshell.imaging.RendererMode" editor="org.netbeans.modules.form.editors.EnumEditor">
<Value id="Fit"/>
<Value id="Stretch"/>
</Property>
</Properties>
</Component>
@@ -126,12 +186,12 @@
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/>
</AuxValues>
</Component>
<Component class="javax.swing.JButton" name="buttonTriggerDetector">
<Component class="javax.swing.JButton" name="buttonStartDetector">
<Properties>
<Property name="text" type="java.lang.String" value="Start IOC"/>
<Property name="text" type="java.lang.String" value="Start Eiger"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonTriggerDetectorActionPerformed"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonStartDetectorActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JLabel" name="jLabel2">
@@ -142,10 +202,9 @@
<Component class="javax.swing.JComboBox" name="comboMode">
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="3">
<StringArray count="2">
<StringItem index="0" value="Single"/>
<StringItem index="1" value="Multiple"/>
<StringItem index="2" value="Continuous"/>
<StringItem index="1" value="Continuous"/>
</StringArray>
</Property>
<Property name="enabled" type="boolean" value="false"/>
@@ -159,7 +218,7 @@
</Component>
<Component class="javax.swing.JLabel" name="jLabel3">
<Properties>
<Property name="text" type="java.lang.String" value="Exposure:"/>
<Property name="text" type="java.lang.String" value="Exposure [s]:"/>
</Properties>
</Component>
<Component class="javax.swing.JSpinner" name="spinnerExpusure">
@@ -190,7 +249,7 @@
</Component>
<Component class="javax.swing.JButton" name="buttonStopDetector">
<Properties>
<Property name="text" type="java.lang.String" value="Stop IOC"/>
<Property name="text" type="java.lang.String" value="Stop Eiger"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonStopDetectorActionPerformed"/>
@@ -217,5 +276,87 @@
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="checkMeasurementsActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="buttonAquire">
<Properties>
<Property name="text" type="java.lang.String" value="Aquire"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonAquireActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="buttonDone">
<Properties>
<Property name="text" type="java.lang.String" value="Done"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonDoneActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="buttonOpenVG10">
<Properties>
<Property name="text" type="java.lang.String" value="Open VG10"/>
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[68, 27]"/>
</Property>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[68, 27]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[68, 27]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonOpenVG10ActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="buttonCloseVG10">
<Properties>
<Property name="text" type="java.lang.String" value="Close VG10"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonCloseVG10ActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JComboBox" name="comboScale">
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="2">
<StringItem index="0" value="Auto"/>
<StringItem index="1" value="Manual"/>
</StringArray>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="comboScaleActionPerformed"/>
</Events>
<AuxValues>
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/>
</AuxValues>
</Component>
<Component class="javax.swing.JLabel" name="jLabel4">
<Properties>
<Property name="text" type="java.lang.String" value="Scale:"/>
</Properties>
</Component>
<Component class="javax.swing.JSpinner" name="spinnerMax">
<Events>
<EventHandler event="stateChanged" listener="javax.swing.event.ChangeListener" parameters="javax.swing.event.ChangeEvent" handler="spinnerMaxStateChanged"/>
</Events>
</Component>
<Component class="javax.swing.JSpinner" name="spinnerMin">
<Events>
<EventHandler event="stateChanged" listener="javax.swing.event.ChangeListener" parameters="javax.swing.event.ChangeEvent" handler="spinnerMinStateChanged"/>
</Events>
</Component>
<Component class="javax.swing.JLabel" name="jLabel5">
<Properties>
<Property name="text" type="java.lang.String" value="Max:"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="jLabel6">
<Properties>
<Property name="text" type="java.lang.String" value="Min:"/>
</Properties>
</Component>
</SubComponents>
</Form>
+261 -49
View File
@@ -1,8 +1,10 @@
import ch.psi.pshell.epics.ChannelDouble;
import ch.psi.pshell.epics.ChannelInteger;
import ch.psi.pshell.imaging.ColormapSource;
import ch.psi.pshell.ui.Panel;
import ch.psi.utils.State;
import java.io.IOException;
import java.util.logging.Level;
/**
*
@@ -89,7 +91,7 @@ public class Eiger extends Panel {
renderer = new ch.psi.pshell.imaging.Renderer();
jLabel1 = new javax.swing.JLabel();
comboDepth = new javax.swing.JComboBox<>();
buttonTriggerDetector = new javax.swing.JButton();
buttonStartDetector = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
comboMode = new javax.swing.JComboBox<>();
jLabel3 = new javax.swing.JLabel();
@@ -101,9 +103,19 @@ public class Eiger extends Panel {
deviceValuePanel4 = new ch.psi.pshell.swing.DeviceValuePanel();
buttonShowDetectorPanel = new javax.swing.JButton();
checkMeasurements = new javax.swing.JCheckBox();
buttonAquire = new javax.swing.JButton();
buttonDone = new javax.swing.JButton();
buttonOpenVG10 = new javax.swing.JButton();
buttonCloseVG10 = new javax.swing.JButton();
comboScale = new javax.swing.JComboBox<>();
jLabel4 = new javax.swing.JLabel();
spinnerMax = new javax.swing.JSpinner();
spinnerMin = new javax.swing.JSpinner();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
renderer.setDeviceName("image");
renderer.setMode(ch.psi.pshell.imaging.RendererMode.Fit);
renderer.setMode(ch.psi.pshell.imaging.RendererMode.Stretch);
jLabel1.setText("Bit Depth:");
@@ -115,16 +127,16 @@ public class Eiger extends Panel {
}
});
buttonTriggerDetector.setText("Start IOC");
buttonTriggerDetector.addActionListener(new java.awt.event.ActionListener() {
buttonStartDetector.setText("Start Eiger");
buttonStartDetector.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonTriggerDetectorActionPerformed(evt);
buttonStartDetectorActionPerformed(evt);
}
});
jLabel2.setText("Mode:");
comboMode.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Single", "Multiple", "Continuous" }));
comboMode.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Single", "Continuous" }));
comboMode.setEnabled(false);
comboMode.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
@@ -132,7 +144,7 @@ public class Eiger extends Panel {
}
});
jLabel3.setText("Exposure:");
jLabel3.setText("Exposure [s]:");
spinnerExpusure.setModel(new javax.swing.SpinnerNumberModel(1.0d, 0.001d, 300.0d, 1.0d));
spinnerExpusure.setEnabled(false);
@@ -148,7 +160,7 @@ public class Eiger extends Panel {
deviceValuePanel3.setDeviceName("eiger_exposure_rbv");
buttonStopDetector.setText("Stop IOC");
buttonStopDetector.setText("Stop Eiger");
buttonStopDetector.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonStopDetectorActionPerformed(evt);
@@ -171,77 +183,179 @@ public class Eiger extends Panel {
}
});
buttonAquire.setText("Aquire");
buttonAquire.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonAquireActionPerformed(evt);
}
});
buttonDone.setText("Done");
buttonDone.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonDoneActionPerformed(evt);
}
});
buttonOpenVG10.setText("Open VG10");
buttonOpenVG10.setMaximumSize(new java.awt.Dimension(68, 27));
buttonOpenVG10.setMinimumSize(new java.awt.Dimension(68, 27));
buttonOpenVG10.setPreferredSize(new java.awt.Dimension(68, 27));
buttonOpenVG10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonOpenVG10ActionPerformed(evt);
}
});
buttonCloseVG10.setText("Close VG10");
buttonCloseVG10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonCloseVG10ActionPerformed(evt);
}
});
comboScale.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Auto", "Manual" }));
comboScale.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
comboScaleActionPerformed(evt);
}
});
jLabel4.setText("Scale:");
spinnerMax.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
spinnerMaxStateChanged(evt);
}
});
spinnerMin.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
spinnerMinStateChanged(evt);
}
});
jLabel5.setText("Max:");
jLabel6.setText("Min:");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING))
.addComponent(jLabel1)
.addComponent(jLabel2)
.addComponent(jLabel3))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(comboMode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(224, 224, 224)
.addComponent(buttonDone, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(deviceValuePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(buttonShowDetectorPanel))
.addComponent(buttonCloseVG10, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(buttonStopDetector, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap(68, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addComponent(comboDepth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(deviceValuePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(spinnerExpusure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(deviceValuePanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(checkMeasurements)))
.addGap(18, 18, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(spinnerExpusure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(deviceValuePanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(deviceValuePanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(buttonShowDetectorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(comboMode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(deviceValuePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(comboDepth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(deviceValuePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(buttonAquire, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(buttonOpenVG10, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(buttonStartDetector)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addGroup(layout.createSequentialGroup()
.addComponent(renderer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(deviceValuePanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
.addComponent(buttonStopDetector, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(buttonTriggerDetector, javax.swing.GroupLayout.Alignment.TRAILING)))
.addComponent(renderer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(4, 4, 4))
.addComponent(checkMeasurements)
.addComponent(comboScale, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4)
.addComponent(jLabel6)
.addComponent(jLabel5)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(spinnerMax, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(spinnerMin, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 72, Short.MAX_VALUE)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
);
layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {buttonStopDetector, buttonTriggerDetector, comboDepth, comboMode, deviceValuePanel1, deviceValuePanel2, deviceValuePanel3, deviceValuePanel4, spinnerExpusure});
layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {buttonShowDetectorPanel, checkMeasurements});
layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {buttonStartDetector, buttonStopDetector, comboDepth, comboMode, deviceValuePanel1, deviceValuePanel2, deviceValuePanel3, spinnerExpusure});
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER, false)
.addComponent(jLabel2)
.addComponent(comboMode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(deviceValuePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(buttonShowDetectorPanel)
.addComponent(buttonTriggerDetector))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buttonAquire, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(buttonOpenVG10, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(buttonStartDetector)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER, false)
.addComponent(jLabel1)
.addComponent(comboDepth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(deviceValuePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(buttonStopDetector))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buttonDone, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(buttonCloseVG10, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(buttonStopDetector)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(jLabel3)
.addComponent(spinnerExpusure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(deviceValuePanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(checkMeasurements)
.addComponent(deviceValuePanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(renderer, javax.swing.GroupLayout.DEFAULT_SIZE, 343, Short.MAX_VALUE))
.addComponent(deviceValuePanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(buttonShowDetectorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(36, 36, 36)
.addComponent(checkMeasurements)
.addGap(45, 45, 45)
.addComponent(jLabel4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(comboScale, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(spinnerMax, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(spinnerMin, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(renderer, javax.swing.GroupLayout.DEFAULT_SIZE, 409, Short.MAX_VALUE))))
);
layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {buttonShowDetectorPanel, buttonStopDetector, buttonTriggerDetector, comboDepth, comboMode, deviceValuePanel1, deviceValuePanel2, deviceValuePanel3, deviceValuePanel4, spinnerExpusure});
layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {buttonStartDetector, buttonStopDetector, comboDepth, comboMode, deviceValuePanel1, deviceValuePanel2, deviceValuePanel3, deviceValuePanel4, spinnerExpusure});
}// </editor-fold>//GEN-END:initComponents
@@ -258,7 +372,7 @@ public class Eiger extends Panel {
}
}//GEN-LAST:event_comboDepthActionPerformed
private void buttonTriggerDetectorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonTriggerDetectorActionPerformed
private void buttonStartDetectorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonStartDetectorActionPerformed
try {
evalAsync("start_eiger_ioc()").handle((ret,ex)->{
if (ex!=null){
@@ -269,12 +383,15 @@ public class Eiger extends Panel {
} catch (Exception ex) {
showException(ex);
}
}//GEN-LAST:event_buttonTriggerDetectorActionPerformed
}//GEN-LAST:event_buttonStartDetectorActionPerformed
private void comboModeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboModeActionPerformed
try{
if (!updatingControls){
Integer value = comboMode.getSelectedIndex();
if (value==1){
value++;
}
mode.write(value);
}
} catch (Exception ex){
@@ -326,13 +443,103 @@ public class Eiger extends Panel {
}
}//GEN-LAST:event_checkMeasurementsActionPerformed
private void buttonDoneActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonDoneActionPerformed
try {
((ch.psi.pshell.device.Camera) getDevice("eiger")).stop();
} catch (Exception ex) {
showException(ex);
}
}//GEN-LAST:event_buttonDoneActionPerformed
private void buttonAquireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonAquireActionPerformed
try {
((ch.psi.pshell.device.Camera) getDevice("eiger")).start();
} catch (Exception ex) {
showException(ex);
}
}//GEN-LAST:event_buttonAquireActionPerformed
private void buttonOpenVG10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonOpenVG10ActionPerformed
try {
evalAsync("open_vg10()").handle((ret,ex)->{
if (ex!=null){
showException((Exception)ex);
}
return ret;
});
} catch (Exception ex) {
showException(ex);
}
}//GEN-LAST:event_buttonOpenVG10ActionPerformed
private void buttonCloseVG10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonCloseVG10ActionPerformed
try {
evalAsync("close_vg10()").handle((ret,ex)->{
if (ex!=null){
showException((Exception)ex);
}
return ret;
});
} catch (Exception ex) {
showException(ex);
}
}//GEN-LAST:event_buttonCloseVG10ActionPerformed
private void comboScaleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboScaleActionPerformed
ColormapSource source = (ColormapSource) renderer.getOrigin();
try{
if (!updatingControls){
Integer value = comboScale.getSelectedIndex();
if(value == 0){
source.getConfig().colormapAutomatic = true;
}
else if(value == 1){
source.getConfig().colormapAutomatic = false;
}
source.getConfig().save();
}
} catch (Exception ex){
getLogger().log(Level.WARNING, null, ex);
}
}//GEN-LAST:event_comboScaleActionPerformed
private void spinnerMaxStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerMaxStateChanged
ColormapSource source = (ColormapSource) renderer.getOrigin();
source.getConfig().colormapMax = (Double)spinnerMax.getValue();
try {
source.getConfig().save();
} catch (Exception ex) {
getLogger().log(Level.WARNING, null, ex);
}
}//GEN-LAST:event_spinnerMaxStateChanged
private void spinnerMinStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerMinStateChanged
ColormapSource source = (ColormapSource) renderer.getOrigin();
source.getConfig().colormapMax = (Double)spinnerMin.getValue();
try {
source.getConfig().save();
} catch (Exception ex) {
getLogger().log(Level.WARNING, null, ex);
}
}//GEN-LAST:event_spinnerMinStateChanged
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton buttonAquire;
private javax.swing.JButton buttonCloseVG10;
private javax.swing.JButton buttonDone;
private javax.swing.JButton buttonOpenVG10;
private javax.swing.JButton buttonShowDetectorPanel;
private javax.swing.JButton buttonStartDetector;
private javax.swing.JButton buttonStopDetector;
private javax.swing.JButton buttonTriggerDetector;
private javax.swing.JCheckBox checkMeasurements;
private javax.swing.JComboBox<String> comboDepth;
private javax.swing.JComboBox<String> comboMode;
private javax.swing.JComboBox<String> comboScale;
private ch.psi.pshell.swing.DeviceValuePanel deviceValuePanel1;
private ch.psi.pshell.swing.DeviceValuePanel deviceValuePanel2;
private ch.psi.pshell.swing.DeviceValuePanel deviceValuePanel3;
@@ -340,7 +547,12 @@ public class Eiger extends Panel {
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private ch.psi.pshell.imaging.Renderer renderer;
private javax.swing.JSpinner spinnerExpusure;
private javax.swing.JSpinner spinnerMax;
private javax.swing.JSpinner spinnerMin;
// End of variables declaration//GEN-END:variables
}
+589
View File
@@ -0,0 +1,589 @@
#
######Sample SL-RP2
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/11/SL-RP2/")
#open_vg13()
#
#TRY.write(22.25)
#TRZ.write(16.20)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP2_Survey', folder='XAS/2020/11/SL-RP2/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP2_Ni', folder='XAS/2020/11/SL-RP2/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP2_Co', folder='XAS/2020/11/SL-RP2/')
#
##Fluor + Fe edges
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP2_F-Fe', folder='XAS/2020/11/SL-RP2/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP2_Mn', folder='XAS/2020/11/SL-RP2/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP2_O', folder='XAS/2020/11/SL-RP2/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-RP2_C', folder='XAS/2020/11/SL-RP2/')
#
#
#
#
#
#time.sleep(1)
#
#######Sample SL9
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/11/SL9/")
#open_vg13()
#
#TRY.write(14.75)
#TRZ.write(15.45)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL9_Survey', folder='XAS/2020/11/SL9/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL9_Ni', folder='XAS/2020/11/SL9/')
###Cobalt L edge
#for i in range(2):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL9_Co', folder='XAS/2020/11/SL9/')
#
##Fluor + Fe edges
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL9_F-Fe', folder='XAS/2020/11/SL9/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL9_Mn', folder='XAS/2020/11/SL9/')
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL9_O', folder='XAS/2020/11/SL9/')
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL9_C', folder='XAS/2020/11/SL9/')
#
#
#
#
#
#time.sleep(1)
#
#
#######Sample SL-AG2
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/11/SL-AG2/")
#open_vg13()
#
#TRY.write(10.00)
#TRZ.write(10.70)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG2_Survey', folder='XAS/2020/11/SL-AG2/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG2_Ni', folder='XAS/2020/11/SL-AG2/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG2_Co', folder='XAS/2020/11/SL-AG2/')
#
##Fluor + Fe edges
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG2_F-Fe', folder='XAS/2020/11/SL-AG2/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG2_Mn', folder='XAS/2020/11/SL-AG2/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG2_O', folder='XAS/2020/11/SL-AG2/')
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG2_C', folder='XAS/2020/11/SL-AG2/')
#
#
#time.sleep(1)
#######Sample SL-AG3
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/11/SL-AG3/")
#open_vg13()
#
#TRY.write(5.75)
#TRZ.write(16.95)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG3_Survey', folder='XAS/2020/11/SL-AG3/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG3_Ni', folder='XAS/2020/11/SL-AG3/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG3_Co', folder='XAS/2020/11/SL-AG3/')
#
##Fluor + Fe edges
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG3_F-Fe', folder='XAS/2020/11/SL-AG3/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG3_Mn', folder='XAS/2020/11/SL-AG3/')
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG3_O', folder='XAS/2020/11/SL-AG3/')
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG3_C', folder='XAS/2020/11/SL-AG3/')
#
#
#
#
#
#
#
#
#time.sleep(1)
#######Sample SL-AG1
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/11/SL-AG1/")
#open_vg13()
#
#TRY.write(21.25)
#TRZ.write(22.70)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG1_Survey', folder='XAS/2020/11/SL-AG1/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG1_Ni', folder='XAS/2020/11/SL-AG1/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG1_Co', folder='XAS/2020/11/SL-AG1/')
#
##Fluor + Fe edges
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG1_F-Fe', folder='XAS/2020/11/SL-AG1/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG1_Mn', folder='XAS/2020/11/SL-AG1/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG1_O', folder='XAS/2020/11/SL-AG1/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG1_C', folder='XAS/2020/11/SL-AG1/')
#
#
#
#
#
#
#time.sleep(1)
#
#
#######Sample SL-AG4
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/11/SL-AG4/")
#open_vg13()
#
#TRY.write(15.00)
#TRZ.write(25.95)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG4_Survey', folder='XAS/2020/11/SL-AG4/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG4_Ni', folder='XAS/2020/11/SL-AG4/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG4_Co', folder='XAS/2020/11/SL-AG4/')
#
##Fluor + Fe edges
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG4_F-Fe', folder='XAS/2020/11/SL-AG4/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG4_Mn', folder='XAS/2020/11/SL-AG4/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG4_O', folder='XAS/2020/11/SL-AG4/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-AG4_C', folder='XAS/2020/11/SL-AG4/')
#
#
#
#
#
#
#time.sleep(1)
#######Sample SL-OUT
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/11/SL-OUT/")
#open_vg13()
#
#TRY.write(8.00)
#TRZ.write(24.20)
#
#
##time.sleep(1)
##
####Survey
###nr_loops=1
###for i in range(nr_loops):
### caput('X11MA-KEI10:RANGE', 7)
### caput('X11MA-KEI11:RANGE', 8)
### caput('X11MA-KEI12:RANGE', 9)
### otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-OUT_Survey', folder='XAS/2020/11/SL-OUT/')
##
###Nickel L edge
##nr_loops=2
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 10)
## otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-OUT_Ni', folder='XAS/2020/11/SL-OUT/')
##
###Cobalt L edge
##nr_loops=3
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 10)
## otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-OUT_Co', folder='XAS/2020/11/SL-OUT/')
##
###Fluor + Fe edges
##nr_loops=3
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 10)
## otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-OUT_F-Fe', folder='XAS/2020/11/SL-OUT/')
##
###Manganese L edge
##nr_loops=4
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 10)
## otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-OUT_Mn', folder='XAS/2020/11/SL-OUT/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-OUT_O', folder='XAS/2020/11/SL-OUT/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-OUT_C', folder='XAS/2020/11/SL-OUT/')
#
#
#
#
#
#
#time.sleep(1)
#
######Sample SL-IN
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2020/11/SL-IN/")
open_vg13()
TRY.write(2.50)
TRZ.write(21.20)
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-IN_Survey', folder='XAS/2020/11/SL-IN/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-IN_Ni', folder='XAS/2020/11/SL-IN/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-IN_Co', folder='XAS/2020/11/SL-IN/')
#
##Fluor + Fe edges
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-IN_F-Fe', folder='XAS/2020/11/SL-IN/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-IN_Mn', folder='XAS/2020/11/SL-IN/')
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-IN_O', folder='XAS/2020/11/SL-IN/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=800, end=820, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-IN_C', folder='XAS/2020/11/SL-IN/')
time.sleep(1)#
close_vg13()
@@ -0,0 +1,875 @@
#####Sample SL50
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL50/")
#open_vg13()
#
#TRY.write(4.45)
#TRZ.write(26.15)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_Survey', folder='XAS/2021/2021_03/SL50/')
#
##Nickel L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 9)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_Ni', folder='XAS/2021/2021_03/SL50/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_Co', folder='XAS/2021/2021_03/SL50/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_F-Fe', folder='XAS/2021/2021_03/SL50/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_Mn', folder='XAS/2021/2021_03/SL50/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_O', folder='XAS/2021/2021_03/SL50/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_C', folder='XAS/2021/2021_03/SL50/')
#
#
#time.sleep(1)
#
#
#
#
#####Sample NCM-C65
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/NCM-C65/")
#open_vg13()
#
#TRY.write(-2.0)
#TRZ.write(24.20)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 6)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_Survey', folder='XAS/2021/2021_03/NCM-C65/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 6)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 8)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_Ni', folder='XAS/2021/2021_03/NCM-C65/')
##Cobalt L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_Co', folder='XAS/2021/2021_03/NCM-C65/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_F-Fe', folder='XAS/2021/2021_03/NCM-C65/')
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_Mn', folder='XAS/2021/2021_03/NCM-C65/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_O', folder='XAS/2021/2021_03/NCM-C65/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_C', folder='XAS/2021/2021_03/NCM-C65/')
#
#
#time.sleep(1)
#
#
#
#
######Sample SL40
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL40/")
#open_vg13()
#
#TRY.write(-1.35)
#TRZ.write(29.45)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_Survey', folder='XAS/2021/2021_03/SL40/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_Ni', folder='XAS/2021/2021_03/SL40/')
#
##Cobalt L edge
#nr_loops=6
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_Co', folder='XAS/2021/2021_03/SL40/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_F-Fe', folder='XAS/2021/2021_03/SL40/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_Mn', folder='XAS/2021/2021_03/SL40/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_O', folder='XAS/2021/2021_03/SL40/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_C', folder='XAS/2021/2021_03/SL40/')
#
#
#time.sleep(1)
#
#
######Sample SL47
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL47/")
#open_vg13()
#
#TRY.write(-6.75)
#TRZ.write(29.90)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_Survey', folder='XAS/2021/2021_03/SL47/')
#
##Nickel L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_Ni', folder='XAS/2021/2021_03/SL47/')
#
##Cobalt L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_Co', folder='XAS/2021/2021_03/SL47/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_F-Fe', folder='XAS/2021/2021_03/SL47/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_Mn', folder='XAS/2021/2021_03/SL47/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_O', folder='XAS/2021/2021_03/SL47/')
##Carbon K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_C', folder='XAS/2021/2021_03/SL47/')
#
#
#time.sleep(1)
#
#
#
#
#####Sample SL25 --> AT LIMIT OF Y MOTOR of Manipulator
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL25/")
#open_vg13()
#
#TRY.write(-12.0)
#TRZ.write(30.50)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_Survey', folder='XAS/2021/2021_03/SL25/')
#
##Nickel L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_Ni', folder='XAS/2021/2021_03/SL25/')
#
##Cobalt L edge
#nr_loops=6
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_Co', folder='XAS/2021/2021_03/SL25/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_F-Fe', folder='XAS/2021/2021_03/SL25/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_Mn', folder='XAS/2021/2021_03/SL25/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_O', folder='XAS/2021/2021_03/SL25/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_C', folder='XAS/2021/2021_03/SL25/')
#
#
#time.sleep(1)
#
#
#
#
#
##
######Sample SL38
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL38/")
#open_vg13()
#
#TRY.write(-10.6)
#TRZ.write(41.1)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_Survey', folder='XAS/2021/2021_03/SL38/')
#
##Nickel L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_Ni', folder='XAS/2021/2021_03/SL38/')
#
##Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_Co', folder='XAS/2021/2021_03/SL38/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_F-Fe', folder='XAS/2021/2021_03/SL38/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_Mn', folder='XAS/2021/2021_03/SL38/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_O', folder='XAS/2021/2021_03/SL38/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_C', folder='XAS/2021/2021_03/SL38/')
#
#
#time.sleep(1)
##
#
#
#
######Sample SL39
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL39/")
#open_vg13()
#
#TRY.write(-7.85)
#TRZ.write(35.55)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_Survey', folder='XAS/2021/2021_03/SL39/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_Ni', folder='XAS/2021/2021_03/SL39/')
#
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_Co', folder='XAS/2021/2021_03/SL39/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_F-Fe', folder='XAS/2021/2021_03/SL39/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_Mn', folder='XAS/2021/2021_03/SL39/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_O', folder='XAS/2021/2021_03/SL39/')
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_C', folder='XAS/2021/2021_03/SL39/')
#
#
#time.sleep(1)
#
#
#
#
#####Sample SL42
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL42/")
#open_vg13()
#
#TRY.write(-4.25)
#TRZ.write(39.25)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_Survey', folder='XAS/2021/2021_03/SL42/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_Ni', folder='XAS/2021/2021_03/SL42/')
#
##Cobalt L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_Co', folder='XAS/2021/2021_03/SL42/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_F-Fe', folder='XAS/2021/2021_03/SL42/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_Mn', folder='XAS/2021/2021_03/SL42/')
##
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_O', folder='XAS/2021/2021_03/SL42/')
##Carbon K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_C', folder='XAS/2021/2021_03/SL42/')
#
#
#time.sleep(1)
#
#
#
#
#
#
######Sample SL49
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL49/")
#open_vg13()
#
#TRY.write(1.3)
#TRZ.write(42.0)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_Survey', folder='XAS/2021/2021_03/SL49/')
#
##Nickel L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_Ni', folder='XAS/2021/2021_03/SL49/')
#
##Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_Co', folder='XAS/2021/2021_03/SL49/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_F-Fe', folder='XAS/2021/2021_03/SL49/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_Mn', folder='XAS/2021/2021_03/SL49/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_O', folder='XAS/2021/2021_03/SL49/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_C', folder='XAS/2021/2021_03/SL49/')
#
#
#time.sleep(1)
#
#
#
#
#
#
######Sample NEIbeta
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/NEIbeta/")
#open_vg13()
#
#TRY.write(8.9)
#TRZ.write(40.7)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_Survey', folder='XAS/2021/2021_03/NEIbeta/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_F-Fe', folder='XAS/2021/2021_03/NEIbeta/')
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_O', folder='XAS/2021/2021_03/NEIbeta/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_C', folder='XAS/2021/2021_03/NEIbeta/')
#
#
#time.sleep(1)
#####Sample SL37
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL37/")
open_vg13()
TRY.write(2.3)
TRZ.write(37.6)
time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_Survey', folder='XAS/2021/2021_03/SL37/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_Ni', folder='XAS/2021/2021_03/SL37/')
#
##Cobalt L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_Co', folder='XAS/2021/2021_03/SL37/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_F-Fe', folder='XAS/2021/2021_03/SL37/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_Mn', folder='XAS/2021/2021_03/SL37/')
#Oxygen K edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_O', folder='XAS/2021/2021_03/SL37/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_C', folder='XAS/2021/2021_03/SL37/')
time.sleep(1)
#####Sample SL45
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL45/")
open_vg13()
TRY.write(4.9)
TRZ.write(31.9)
time.sleep(1)
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_Survey', folder='XAS/2021/2021_03/SL45/')
#Nickel L edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_Ni', folder='XAS/2021/2021_03/SL45/')
#Cobalt L edge
nr_loops=5
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_Co', folder='XAS/2021/2021_03/SL45/')
#Fluor + Fe edges
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_F-Fe', folder='XAS/2021/2021_03/SL45/')
#Manganese L edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_Mn', folder='XAS/2021/2021_03/SL45/')
#Oxygen K edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_O', folder='XAS/2021/2021_03/SL45/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_C', folder='XAS/2021/2021_03/SL45/')
time.sleep(1)
close_vg13()
+899
View File
@@ -0,0 +1,899 @@
#####Sample SL50
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL50/")
#open_vg13()
#
#TRY.write(4.25)
#TRZ.write(25.95)
#
#
#time.sleep(1)
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_Survey', folder='XAS/2021/2021_03/SL50/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_Ni', folder='XAS/2021/2021_03/SL50/')
#
##Cobalt L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_Co', folder='XAS/2021/2021_03/SL50/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_F-Fe', folder='XAS/2021/2021_03/SL50/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_Mn', folder='XAS/2021/2021_03/SL50/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_O', folder='XAS/2021/2021_03/SL50/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL50_C', folder='XAS/2021/2021_03/SL50/')
#
#
#time.sleep(1)
#####Sample NCM-C65
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/NCM-C65/")
#open_vg13()
#
#TRY.write(-2.0)
#TRZ.write(24.20)
#
#
#time.sleep(1)
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_Survey', folder='XAS/2021/2021_03/NCM-C65/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 6)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 8)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_Ni', folder='XAS/2021/2021_03/NCM-C65/')
#
##Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_Co', folder='XAS/2021/2021_03/NCM-C65/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_F-Fe', folder='XAS/2021/2021_03/NCM-C65/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_Mn', folder='XAS/2021/2021_03/NCM-C65/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_O', folder='XAS/2021/2021_03/NCM-C65/')
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NCM-C65_C', folder='XAS/2021/2021_03/NCM-C65/')
#
#
#time.sleep(1)
#
#
#
######Sample SL40
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL40/")
#open_vg13()
#
#TRY.write(-0.75)
#TRZ.write(29.45)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_Survey', folder='XAS/2021/2021_03/SL40/')
#
##Nickel L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_Ni', folder='XAS/2021/2021_03/SL40/')
#
##Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_Co', folder='XAS/2021/2021_03/SL40/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_F-Fe', folder='XAS/2021/2021_03/SL40/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_Mn', folder='XAS/2021/2021_03/SL40/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_O', folder='XAS/2021/2021_03/SL40/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL40_C', folder='XAS/2021/2021_03/SL40/')
#
#
#time.sleep(1)
#
#
#
#
#
#
######Sample SL47
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL47/")
#open_vg13()
#
#TRY.write(-6.75)
#TRZ.write(29.20)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_Survey', folder='XAS/2021/2021_03/SL47/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_Ni', folder='XAS/2021/2021_03/SL47/')
#
##Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_Co', folder='XAS/2021/2021_03/SL47/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_F-Fe', folder='XAS/2021/2021_03/SL47/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_Mn', folder='XAS/2021/2021_03/SL47/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_O', folder='XAS/2021/2021_03/SL47/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL47_C', folder='XAS/2021/2021_03/SL47/')
#
#
#time.sleep(1)
#
#
#
#
#
#
#####Sample SL25
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL25/")
#open_vg13()
#
#TRY.write(-12.0)
#TRZ.write(30.20)
#
#
#time.sleep(1)
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_Survey', folder='XAS/2021/2021_03/SL25/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_Ni', folder='XAS/2021/2021_03/SL25/')
#
##Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_Co', folder='XAS/2021/2021_03/SL25/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_F-Fe', folder='XAS/2021/2021_03/SL25/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_Mn', folder='XAS/2021/2021_03/SL25/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_O', folder='XAS/2021/2021_03/SL25/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25_C', folder='XAS/2021/2021_03/SL25/')
#
#
#time.sleep(1)
#
#
#
#
#
#
######Sample SL38
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL38/")
#open_vg13()
#
#TRY.write(-10.0)
#TRZ.write(41.0)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_Survey', folder='XAS/2021/2021_03/SL38/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_Ni', folder='XAS/2021/2021_03/SL38/')
#
##Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_Co', folder='XAS/2021/2021_03/SL38/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_F-Fe', folder='XAS/2021/2021_03/SL38/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_Mn', folder='XAS/2021/2021_03/SL38/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_O', folder='XAS/2021/2021_03/SL38/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL38_C', folder='XAS/2021/2021_03/SL38/')
#
#
#time.sleep(1)
##
#
#
#
#
#
######Sample SL39
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL39/")
#open_vg13()
#
#TRY.write(-8.25)
#TRZ.write(35.25)
#
#
#time.sleep(1)
#
#
###Survey
##nr_loops=2
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 9)
## otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_Survey', folder='XAS/2021/2021_03/SL39/')
##
###Nickel L edge
##nr_loops=3
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 10)
## otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_Ni', folder='XAS/2021/2021_03/SL39/')
##
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_Co', folder='XAS/2021/2021_03/SL39/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_F-Fe', folder='XAS/2021/2021_03/SL39/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_Mn', folder='XAS/2021/2021_03/SL39/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_O', folder='XAS/2021/2021_03/SL39/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL39_C', folder='XAS/2021/2021_03/SL39/')
#
#
#time.sleep(1)
#
#
#
#
#
#####Sample SL42
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL42/")
open_vg13()
TRY.write(-4.25)
TRZ.write(39.25)
time.sleep(1)
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_Survey', folder='XAS/2021/2021_03/SL42/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_Ni', folder='XAS/2021/2021_03/SL42/')
#
##Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_Co', folder='XAS/2021/2021_03/SL42/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_F-Fe', folder='XAS/2021/2021_03/SL42/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_Mn', folder='XAS/2021/2021_03/SL42/')
##
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_O', folder='XAS/2021/2021_03/SL42/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL42_C', folder='XAS/2021/2021_03/SL42/')
#
#
#time.sleep(1)
#
#
#
#
#
######Sample SL49
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL49/")
#open_vg13()
#
#TRY.write(2.0)
#TRZ.write(42.0)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_Survey', folder='XAS/2021/2021_03/SL49/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_Ni', folder='XAS/2021/2021_03/SL49/')
#
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_Co', folder='XAS/2021/2021_03/SL49/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_F-Fe', folder='XAS/2021/2021_03/SL49/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_Mn', folder='XAS/2021/2021_03/SL49/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_O', folder='XAS/2021/2021_03/SL49/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL49_C', folder='XAS/2021/2021_03/SL49/')
#
#
#time.sleep(1)
#
#
#####Sample NEIbeta
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/NEIbeta/")
open_vg13()
TRY.write(8.5)
TRZ.write(40.0)
time.sleep(1)
#Survey
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_Survey', folder='XAS/2021/2021_03/NEIbeta/')
#Nickel L edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_Ni', folder='XAS/2021/2021_03/NEIbeta/')
#Cobalt L edge
nr_loops=5
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_Co', folder='XAS/2021/2021_03/NEIbeta/')
#Fluor + Fe edges
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_F-Fe', folder='XAS/2021/2021_03/NEIbeta/')
#Manganese L edge
nr_loops=4
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_Mn', folder='XAS/2021/2021_03/NEIbeta/')
#Oxygen K edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_O', folder='XAS/2021/2021_03/NEIbeta/')
#Carbon K edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='NEIbeta_C', folder='XAS/2021/2021_03/NEIbeta/')
time.sleep(1)
#####Sample SL37
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL37/")
open_vg13()
TRY.write(1.5)
TRZ.write(37.0)
time.sleep(1)
#Survey
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_Survey', folder='XAS/2021/2021_03/SL37/')
#Nickel L edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_Ni', folder='XAS/2021/2021_03/SL37/')
#Cobalt L edge
nr_loops=5
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_Co', folder='XAS/2021/2021_03/SL37/')
#Fluor + Fe edges
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_F-Fe', folder='XAS/2021/2021_03/SL37/')
#Manganese L edge
nr_loops=4
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_Mn', folder='XAS/2021/2021_03/SL37/')
#Oxygen K edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_O', folder='XAS/2021/2021_03/SL37/')
#Carbon K edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL37_C', folder='XAS/2021/2021_03/SL37/')
time.sleep(1)
#####Sample SL45
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL45/")
open_vg13()
TRY.write(5.0)
TRZ.write(31.5)
time.sleep(1)
#Survey
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_Survey', folder='XAS/2021/2021_03/SL45/')
#Nickel L edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_Ni', folder='XAS/2021/2021_03/SL45/')
#Cobalt L edge
nr_loops=5
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_Co', folder='XAS/2021/2021_03/SL45/')
#Fluor + Fe edges
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_F-Fe', folder='XAS/2021/2021_03/SL45/')
#Manganese L edge
nr_loops=4
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_Mn', folder='XAS/2021/2021_03/SL45/')
#Oxygen K edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_O', folder='XAS/2021/2021_03/SL45/')
#Carbon K edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL45_C', folder='XAS/2021/2021_03/SL45/')
time.sleep(1)
close_vg13()
+675
View File
@@ -0,0 +1,675 @@
####Sample SL30
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL30/")
#open_vg13()
#
#TRY.write(1.75)
#TRZ.write(27.1)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30_Survey', folder='XAS/2021/2021_03/SL30/')
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30_Ni', folder='XAS/2021/2021_03/SL30/')
#
##Cobalt L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30_Co', folder='XAS/2021/2021_03/SL30/')
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30_F-Fe', folder='XAS/2021/2021_03/SL30/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30_Mn', folder='XAS/2021/2021_03/SL30/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30_O', folder='XAS/2021/2021_03/SL30/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30_C', folder='XAS/2021/2021_03/SL30/')
#
#
#time.sleep(1)
##
##
#
#
#####Sample SL46
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL46/")
#open_vg13()
#
#TRY.write(-1.35)
#TRZ.write(31.70)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46_Survey', folder='XAS/2021/2021_03/SL46/')
#
##Nickel L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46_Ni', folder='XAS/2021/2021_03/SL46/')
#
###Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46_Co', folder='XAS/2021/2021_03/SL46/')
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46_F-Fe', folder='XAS/2021/2021_03/SL46/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46_Mn', folder='XAS/2021/2021_03/SL46/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46_O', folder='XAS/2021/2021_03/SL46/')
##
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46_C', folder='XAS/2021/2021_03/SL46/')
#
#
#time.sleep(1)
######Sample SL29
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL29/")
#open_vg13()
#
#TRY.write(-5.50)
#TRZ.write(28.95)
#
#
#time.sleep(1)
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29_Survey', folder='XAS/2021/2021_03/SL29/')
#
##Nickel L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29_Ni', folder='XAS/2021/2021_03/SL29/')
#
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29_Co', folder='XAS/2021/2021_03/SL29/')
#
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29_F-Fe', folder='XAS/2021/2021_03/SL29/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29_Mn', folder='XAS/2021/2021_03/SL29/')
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29_O', folder='XAS/2021/2021_03/SL29/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29_C', folder='XAS/2021/2021_03/SL29/')
#
#
#time.sleep(1)
#
#
######Sample SL48
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL48/")
#open_vg13()
#
#TRY.write(-8.2)
#TRZ.write(32.75)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL48_Survey', folder='XAS/2021/2021_03/SL48/')
#
##Nickel L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL48_Ni', folder='XAS/2021/2021_03/SL48/')
#
###Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL48_Co', folder='XAS/2021/2021_03/SL48/')
#
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL48_F-Fe', folder='XAS/2021/2021_03/SL48/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL48_Mn', folder='XAS/2021/2021_03/SL48/')
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL48_O', folder='XAS/2021/2021_03/SL48/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL48_C', folder='XAS/2021/2021_03/SL48/')
#
#
#time.sleep(1)
#
#
#
#
#####Sample SL31
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL31/")
#open_vg13()
#
#TRY.write(-12.00)
#TRZ.write(29.70)
#
#
#time.sleep(1)
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL31_Survey', folder='XAS/2021/2021_03/SL31/')
#
##Nickel L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL31_Ni', folder='XAS/2021/2021_03/SL31/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL31_Co', folder='XAS/2021/2021_03/SL31/')
#
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL31_F-Fe', folder='XAS/2021/2021_03/SL31/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL31_Mn', folder='XAS/2021/2021_03/SL31/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL31_O', folder='XAS/2021/2021_03/SL31/')
##
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL31_C', folder='XAS/2021/2021_03/SL31/')
#
#
#time.sleep(1)
#
#
#
#
#
#
######Sample SL32
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL32/")
#open_vg13()
#
#TRY.write(-10.35)
#TRZ.write(43.20)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32_Survey', folder='XAS/2021/2021_03/SL32/')
#
##Nickel L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32_Ni', folder='XAS/2021/2021_03/SL32/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32_Co', folder='XAS/2021/2021_03/SL32/')
#
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32_F-Fe', folder='XAS/2021/2021_03/SL32/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32_Mn', folder='XAS/2021/2021_03/SL32/')
#
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32_O', folder='XAS/2021/2021_03/SL32/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32_C', folder='XAS/2021/2021_03/SL32/')
#
#
#time.sleep(1)
##
#
######Sample SL43
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL43/")
#open_vg13()
#
#TRY.write(-7.35)
#TRZ.write(38.45)
#
#
#time.sleep(1)
##
#
###Survey
##nr_loops=2
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 9)
## otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL43_Survey', folder='XAS/2021/2021_03/SL43/')
##
###Nickel L edge
##nr_loops=4
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 10)
## otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL43_Ni', folder='XAS/2021/2021_03/SL43/')
##
##Cobalt L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL43_Co', folder='XAS/2021/2021_03/SL43/')
##
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL43_F-Fe', folder='XAS/2021/2021_03/SL43/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL43_Mn', folder='XAS/2021/2021_03/SL43/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL43_O', folder='XAS/2021/2021_03/SL43/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL43_C', folder='XAS/2021/2021_03/SL43/')
#
##
#time.sleep(1)
######Sample SL27
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL27/")
#open_vg13()
#
#TRY.write(-2.65)
#TRZ.write(37.45)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL27_Survey', folder='XAS/2021/2021_03/SL27/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 9)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL27_Ni', folder='XAS/2021/2021_03/SL27/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL27_Co', folder='XAS/2021/2021_03/SL27/')
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL27_F-Fe', folder='XAS/2021/2021_03/SL27/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL27_Mn', folder='XAS/2021/2021_03/SL27/')
##
##Oxygen K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL27_O', folder='XAS/2021/2021_03/SL27/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL27_C', folder='XAS/2021/2021_03/SL27/')
#
#
#time.sleep(1)
#####Sample SL33
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL33/")
open_vg13()
TRY.write(4.10)
TRZ.write(37.70)
time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33_Survey', folder='XAS/2021/2021_03/SL33/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33_Ni', folder='XAS/2021/2021_03/SL33/')
#
#Cobalt L edge
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33_Co', folder='XAS/2021/2021_03/SL33/')
#
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33_F-Fe', folder='XAS/2021/2021_03/SL33/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33_Mn', folder='XAS/2021/2021_03/SL33/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33_O', folder='XAS/2021/2021_03/SL33/')
#
##Carbon K edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33_C', folder='XAS/2021/2021_03/SL33/')
#
#
#time.sleep(1)
close_vg13()
+808
View File
@@ -0,0 +1,808 @@
####Sample SL24
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL24/")
#open_vg13()
#
#TRY.write(-8.5)
#TRZ.write(41.45)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL24_Survey', folder='XAS/2021/2021_03/SL24/')
#
##Nickel L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL24_Ni', folder='XAS/2021/2021_03/SL24/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL24_Co', folder='XAS/2021/2021_03/SL24/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL24_F-Fe', folder='XAS/2021/2021_03/SL24/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL24_Mn', folder='XAS/2021/2021_03/SL24/')
##Oxygen K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL24_O', folder='XAS/2021/2021_03/SL24/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL24_C', folder='XAS/2021/2021_03/SL24/')
#
#
#time.sleep(1)
#####Sample SL46-REP
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL46-REP/")
#open_vg13()
#
#TRY.write(-2.75)
#TRZ.write(38.45)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46-REP_Survey', folder='XAS/2021/2021_03/SL46-REP/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46-REP_Ni', folder='XAS/2021/2021_03/SL46-REP/')
#
##Cobalt L edge
#nr_loops=6
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46-REP_Co', folder='XAS/2021/2021_03/SL46-REP/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46-REP_F-Fe', folder='XAS/2021/2021_03/SL46-REP/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46-REP_Mn', folder='XAS/2021/2021_03/SL46-REP/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46-REP_O', folder='XAS/2021/2021_03/SL46-REP/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL46-REP_C', folder='XAS/2021/2021_03/SL46-REP/')
#
#
#time.sleep(1)
######Sample SL44
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL44/")
#open_vg13()
#
#TRY.write(-1.0)
#TRZ.write(42.45)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL44_Survey', folder='XAS/2021/2021_03/SL44/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL44_Ni', folder='XAS/2021/2021_03/SL44/')
#
##Cobalt L edge
#nr_loops=6
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL44_Co', folder='XAS/2021/2021_03/SL44/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL44_F-Fe', folder='XAS/2021/2021_03/SL44/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL44_Mn', folder='XAS/2021/2021_03/SL44/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL44_O', folder='XAS/2021/2021_03/SL44/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL44_C', folder='XAS/2021/2021_03/SL44/')
#
#
#time.sleep(1)
######Sample SL34
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL34/")
#open_vg13()
#
#TRY.write(3.75)
#TRZ.write(37.95)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL34_Survey', folder='XAS/2021/2021_03/SL34/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL34_Ni', folder='XAS/2021/2021_03/SL34/')
#
##Cobalt L edge
#nr_loops=5
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL34_Co', folder='XAS/2021/2021_03/SL34/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL34_F-Fe', folder='XAS/2021/2021_03/SL34/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL34_Mn', folder='XAS/2021/2021_03/SL34/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL34_O', folder='XAS/2021/2021_03/SL34/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL34_C', folder='XAS/2021/2021_03/SL34/')
#
#
#time.sleep(1)
#####Sample SL28
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL28/")
#open_vg13()
#
#TRY.write(8.5)
#TRZ.write(41.2)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL28_Survey', folder='XAS/2021/2021_03/SL28/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL28_Ni', folder='XAS/2021/2021_03/SL28/')
##Cobalt L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL28_Co', folder='XAS/2021/2021_03/SL28/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL28_F-Fe', folder='XAS/2021/2021_03/SL28/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL28_Mn', folder='XAS/2021/2021_03/SL28/')
##Oxygen K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL28_O', folder='XAS/2021/2021_03/SL28/')
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL28_C', folder='XAS/2021/2021_03/SL28/')
#time.sleep(1)
#
#
#
#
#
##
######Sample SL25-REP
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL25-REP/")
#open_vg13()
#
#TRY.write(9.75)
#TRZ.write(32.7)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25-REP_Survey', folder='XAS/2021/2021_03/SL25-REP/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25-REP_Ni', folder='XAS/2021/2021_03/SL25-REP/')
#
##Cobalt L edge
#nr_loops=6
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25-REP_Co', folder='XAS/2021/2021_03/SL25-REP/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25-REP_F-Fe', folder='XAS/2021/2021_03/SL25-REP/')
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25-REP_Mn', folder='XAS/2021/2021_03/SL25-REP/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25-REP_O', folder='XAS/2021/2021_03/SL25-REP/')
##Carbon K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL25-REP_C', folder='XAS/2021/2021_03/SL25-REP/')
#
#
#time.sleep(1)
#
#
#
#
######Sample SL35
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL35/")
#open_vg13()
#
#TRY.write(3.25)
#TRZ.write(31.95)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL35_Survey', folder='XAS/2021/2021_03/SL35/')
##Nickel L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL35_Ni', folder='XAS/2021/2021_03/SL35/')
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
#caput('X11MA-KEI10:RANGE', 7)
#caput('X11MA-KEI11:RANGE', 8)
#caput('X11MA-KEI12:RANGE', 9)
#otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL35_Co', folder='XAS/2021/2021_03/SL35/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
#caput('X11MA-KEI10:RANGE', 7)
#caput('X11MA-KEI11:RANGE', 8)
#caput('X11MA-KEI12:RANGE', 9)
#otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL35_F-Fe', folder='XAS/2021/2021_03/SL35/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
#caput('X11MA-KEI10:RANGE', 7)
#caput('X11MA-KEI11:RANGE', 8)
#caput('X11MA-KEI12:RANGE', 9)
#otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL35_Mn', folder='XAS/2021/2021_03/SL35/')
#
##Oxygen K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL35_O', folder='XAS/2021/2021_03/SL35/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL35_C', folder='XAS/2021/2021_03/SL35/')
#
#
#time.sleep(1)
#
#
#
#
#
#
#
#####Sample SL23
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL23/")
#open_vg13()
#
#TRY.write(3.25)
#TRZ.write(26.2)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL23_Survey', folder='XAS/2021/2021_03/SL23/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL23_Ni', folder='XAS/2021/2021_03/SL23/')
#
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL23_Co', folder='XAS/2021/2021_03/SL23/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL23_F-Fe', folder='XAS/2021/2021_03/SL23/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL23_Mn', folder='XAS/2021/2021_03/SL23/')
##
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL23_O', folder='XAS/2021/2021_03/SL23/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL23_C', folder='XAS/2021/2021_03/SL23/')
#
#
#time.sleep(1)
#
#
#
######Sample SL36
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL36/")
#open_vg13()
#
#TRY.write(-1.0)
#TRZ.write(28.45)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL36_Survey', folder='XAS/2021/2021_03/SL36/')
#
##Nickel L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL36_Ni', folder='XAS/2021/2021_03/SL36/')
##Cobalt L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL36_Co', folder='XAS/2021/2021_03/SL36/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL36_F-Fe', folder='XAS/2021/2021_03/SL36/')
#
##Manganese L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL36_Mn', folder='XAS/2021/2021_03/SL36/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL36_O', folder='XAS/2021/2021_03/SL36/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL36_C', folder='XAS/2021/2021_03/SL36/')
#
#
#time.sleep(1)
#
######Sample LH1-NMC-LONG
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/LH1-NMC-LONG/")
#open_vg13()
#
#TRY.write(-5.5)
#TRZ.write(25.45)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH1-NMC-LONG_Survey', folder='XAS/2021/2021_03/LH1-NMC-LONG/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH1-NMC-LONG_Ni', folder='XAS/2021/2021_03/LH1-NMC-LONG/')
#
##Cobalt L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH1-NMC-LONG_Co', folder='XAS/2021/2021_03/LH1-NMC-LONG/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH1-NMC-LONG_Mn', folder='XAS/2021/2021_03/LH1-NMC-LONG/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH1-NMC-LONG_O', folder='XAS/2021/2021_03/LH1-NMC-LONG/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH1-NMC-LONG_C', folder='XAS/2021/2021_03/LH1-NMC-LONG/')
#
#
#time.sleep(1)
#####Sample LH2-NMC111-C
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/LH2-NMC111-C/")
open_vg13()
TRY.write(-6.75)
TRZ.write(32.20)
time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 8)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH2-NMC111-C_Survey', folder='XAS/2021/2021_03/LH2-NMC111-C/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH2-NMC111-C_Ni', folder='XAS/2021/2021_03/LH2-NMC111-C/')
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH2-NMC111-C_Co', folder='XAS/2021/2021_03/LH2-NMC111-C/')
#Manganese L edge
nr_loops=3
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 8)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH2-NMC111-C_Mn', folder='XAS/2021/2021_03/LH2-NMC111-C/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 7)
caput('X11MA-KEI12:RANGE', 8)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH2-NMC111-C_O', folder='XAS/2021/2021_03/LH2-NMC111-C/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='LH2-NMC111-C_C', folder='XAS/2021/2021_03/LH2-NMC111-C/')
time.sleep(1)
close_vg13()
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+887
View File
@@ -0,0 +1,887 @@
#
#
#####Sample JBF1-BW-1D
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF1-BW-1D/")
#open_vg13()
#
#TRY.write(6.6)
#TRZ.write(25.8)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-1D_Survey', folder='XAS/2021/2021_03/JBF1-BW-1D/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-1D_Mn', folder='XAS/2021/2021_03/JBF1-BW-1D/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-1D_O', folder='XAS/2021/2021_03/JBF1-BW-1D/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-1D_C', folder='XAS/2021/2021_03/JBF1-BW-1D/')
#
##
#time.sleep(1)
#
#
#
#
#####Sample JBF2-BW-1D
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF2-BW-1D/")
#open_vg13()
#
#TRY.write(2.85)
#TRZ.write(25.8)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-1D_Survey', folder='XAS/2021/2021_03/JBF2-BW-1D/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-1D_Mn', folder='XAS/2021/2021_03/JBF2-BW-1D/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-1D_O', folder='XAS/2021/2021_03/JBF2-BW-1D/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-1D_C', folder='XAS/2021/2021_03/JBF2-BW-1D/')
##
#time.sleep(1)
#
#
#
#
#
#####Sample JBF5-BW-1D
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF5-BW-1D/")
#open_vg13()
#
#TRY.write(-0.9)
#TRZ.write(25.3)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-1D_Survey', folder='XAS/2021/2021_03/JBF5-BW-1D/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-1D_Mn', folder='XAS/2021/2021_03/JBF5-BW-1D/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-1D_O', folder='XAS/2021/2021_03/JBF5-BW-1D/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-1D_C', folder='XAS/2021/2021_03/JBF5-BW-1D/')
#
##
#time.sleep(1)
#####Sample JBF1-BW-2C
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF1-BW-2C/")
#open_vg13()
#
#TRY.write(-4.65)
#TRZ.write(24.8)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-2C_Survey', folder='XAS/2021/2021_03/JBF1-BW-2C/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-2C_Mn', folder='XAS/2021/2021_03/JBF1-BW-2C/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-2C_O', folder='XAS/2021/2021_03/JBF1-BW-2C/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-2C_C', folder='XAS/2021/2021_03/JBF1-BW-2C/')
#
##
#time.sleep(1)
#####Sample JBF2-BW-2C
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF2-BW-2C/")
#open_vg13()
#
#TRY.write(-8.65)
#TRZ.write(24.80)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-2C_Survey', folder='XAS/2021/2021_03/JBF2-BW-2C/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-2C_Mn', folder='XAS/2021/2021_03/JBF2-BW-2C/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-2C_O', folder='XAS/2021/2021_03/JBF2-BW-2C/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-2C_C', folder='XAS/2021/2021_03/JBF2-BW-2C/')
#
##
#time.sleep(1)
#
#####Sample JBF5-BW-2C
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF5-BW-2C/")
#open_vg13()
#
#TRY.write(10.35)
#TRZ.write(31.3)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-2C_Survey', folder='XAS/2021/2021_03/JBF5-BW-2C/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-2C_Mn', folder='XAS/2021/2021_03/JBF5-BW-2C/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-2C_O', folder='XAS/2021/2021_03/JBF5-BW-2C/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-2C_C', folder='XAS/2021/2021_03/JBF5-BW-2C/')
#
##
#time.sleep(1)
#
#
#####Sample JBF1-BW-10c-D
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF1-BW-10c-D/")
#open_vg13()
#
#TRY.write(6.1)
#TRZ.write(31.3)
#
#
#time.sleep(1)
#
#
###Survey
##nr_loops=1
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 9)
## otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-10c-D_Survey', folder='XAS/2021/2021_03/JBF1-BW-10c-D/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-10c-D_Mn', folder='XAS/2021/2021_03/JBF1-BW-10c-D/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-10c-D_O', folder='XAS/2021/2021_03/JBF1-BW-10c-D/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-10c-D_C', folder='XAS/2021/2021_03/JBF1-BW-10c-D/')
#
##
#time.sleep(1)
#
#
#
#
#
#
#####Sample JBF2-BW-10c-D
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF2-BW-10c-D/")
#open_vg13()
#
#TRY.write(0.35)
#TRZ.write(29.8)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-10c-D_Survey', folder='XAS/2021/2021_03/JBF2-BW-10c-D/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-10c-D_Mn', folder='XAS/2021/2021_03/JBF2-BW-10c-D/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-10c-D_O', folder='XAS/2021/2021_03/JBF2-BW-10c-D/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-10c-D_C', folder='XAS/2021/2021_03/JBF2-BW-10c-D/')
#
##
#time.sleep(1)
#
#
#
#
#####Sample JBF5-BW-10c-D
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF5-BW-10c-D/")
#open_vg13()
#
#TRY.write(-4.65)
#TRZ.write(30.30)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-10c-D_Survey', folder='XAS/2021/2021_03/JBF5-BW-10c-D/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-10c-D_Mn', folder='XAS/2021/2021_03/JBF5-BW-10c-D/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-10c-D_O', folder='XAS/2021/2021_03/JBF5-BW-10c-D/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-10c-D_C', folder='XAS/2021/2021_03/JBF5-BW-10c-D/')
#
##
#time.sleep(1)
#
#####Sample JBF1-BW-10c-C
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF1-BW-10c-C/")
#open_vg13()
#
#TRY.write(-8.4)
#TRZ.write(30.30)
#
#
#time.sleep(1)
#
#
###Survey
##nr_loops=1
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 9)
## otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-10c-C_Survey', folder='XAS/2021/2021_03/JBF1-BW-10c-C/')
##
###Manganese L edge
##nr_loops=2
##for i in range(nr_loops):
## caput('X11MA-KEI10:RANGE', 7)
## caput('X11MA-KEI11:RANGE', 8)
## caput('X11MA-KEI12:RANGE', 9)
## otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-10c-C_Mn', folder='XAS/2021/2021_03/JBF1-BW-10c-C/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-10c-C_O', folder='XAS/2021/2021_03/JBF1-BW-10c-C/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-BW-10c-C_C', folder='XAS/2021/2021_03/JBF1-BW-10c-C/')
#
##
#time.sleep(1)
#
#
#
#
#####Sample JBF2-BW-10c-C
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF2-BW-10c-C/")
#open_vg13()
#
#TRY.write(10.85)
#TRZ.write(37.30)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-10c-C_Survey', folder='XAS/2021/2021_03/JBF2-BW-10c-C/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-10c-C_Mn', folder='XAS/2021/2021_03/JBF2-BW-10c-C/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-10c-C_O', folder='XAS/2021/2021_03/JBF2-BW-10c-C/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-BW-10c-C_C', folder='XAS/2021/2021_03/JBF2-BW-10c-C/')
#
##
#time.sleep(1)
#
#
#
#
#
#
#
#####Sample JBF5-BW-10c-C
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF5-BW-10c-C/")
#open_vg13()
#
#TRY.write(6.1)
#TRZ.write(37.30)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-10c-C_Survey', folder='XAS/2021/2021_03/JBF5-BW-10c-C/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-10c-C_Mn', folder='XAS/2021/2021_03/JBF5-BW-10c-C/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-10c-C_O', folder='XAS/2021/2021_03/JBF5-BW-10c-C/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-BW-10c-C_C', folder='XAS/2021/2021_03/JBF5-BW-10c-C/')
#
##
#time.sleep(1)
#####Sample JBF1-LC350
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF1-LC350/")
#open_vg13()
#
#TRY.write(0.6)
#TRZ.write(38.05)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-LC350_Survey', folder='XAS/2021/2021_03/JBF1-LC350/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-LC350_Mn', folder='XAS/2021/2021_03/JBF1-LC350/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-LC350_O', folder='XAS/2021/2021_03/JBF1-LC350/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF1-LC350_C', folder='XAS/2021/2021_03/JBF1-LC350/')
#
##
#time.sleep(1)
#
####Sample JBF2-LC350
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF2-LC350/")
open_vg13()
TRY.write(-4.15)
TRZ.write(36.8)
time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-LC350_Survey', folder='XAS/2021/2021_03/JBF2-LC350/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-LC350_Mn', folder='XAS/2021/2021_03/JBF2-LC350/')
#
#
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-LC350_O', folder='XAS/2021/2021_03/JBF2-LC350/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF2-LC350_C', folder='XAS/2021/2021_03/JBF2-LC350/')
#
##
#time.sleep(1)
#
#
#####Sample JBF3-LC350
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF3-LC350/")
#open_vg13()
#
#TRY.write(-8.15)
#TRZ.write(36.8)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF3-LC350_Survey', folder='XAS/2021/2021_03/JBF3-LC350/')
#
##Cobalt L edge
#nr_loops=10
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF3-LC350_Co', folder='XAS/2021/2021_03/JBF3-LC350/')
#
#
##Manganese L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF3-LC350_Mn', folder='XAS/2021/2021_03/JBF3-LC350/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF3-LC350_O', folder='XAS/2021/2021_03/JBF3-LC350/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF3-LC350_C', folder='XAS/2021/2021_03/JBF3-LC350/')
#
#
#time.sleep(1)
#####Sample JBF4-LC350
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF4-LC350/")
#open_vg13()
#
#TRY.write(6.6)
#TRZ.write(42.8)
#
#
#time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF4-LC350_Survey', folder='XAS/2021/2021_03/JBF4-LC350/')
##Nickel L edge
#nr_loops=10
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF4-LC350_Ni', folder='XAS/2021/2021_03/JBF4-LC350/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF4-LC350_Mn', folder='XAS/2021/2021_03/JBF4-LC350/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF4-LC350_O', folder='XAS/2021/2021_03/JBF4-LC350/')
#
##Carbon K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF4-LC350_C', folder='XAS/2021/2021_03/JBF4-LC350/')
#
#
#time.sleep(1)
#####Sample JBF5-LC350
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF5-LC350/")
#open_vg13()
#
#TRY.write(2.85)
#TRZ.write(42.8)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-LC350_Survey', folder='XAS/2021/2021_03/JBF5-LC350/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 7)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-LC350_Mn', folder='XAS/2021/2021_03/JBF5-LC350/')
#
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-LC350_O', folder='XAS/2021/2021_03/JBF5-LC350/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='JBF5-LC350_C', folder='XAS/2021/2021_03/JBF5-LC350/')
#
##
#time.sleep(1)
close_vg13()
+742
View File
@@ -0,0 +1,742 @@
####Sample DB53
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB53/")
open_vg13()
TRY.write(3.0)
TRZ.write(41.25)
time.sleep(1)
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB53_Na', folder='XAS/2021/2021_03/DB53/')
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB53_Survey', folder='XAS/2021/2021_03/DB53/')
#Fluor + Fe edges
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB53_F-Fe', folder='XAS/2021/2021_03/DB53/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB53_Mn', folder='XAS/2021/2021_03/DB53/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB53_O', folder='XAS/2021/2021_03/DB53/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB53_C', folder='XAS/2021/2021_03/DB53/')
time.sleep(1)
####Sample DB44
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB44/")
open_vg13()
TRY.write(-1.5)
TRZ.write(26.0)
#
#
time.sleep(1)
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB44_Na', folder='XAS/2021/2021_03/DB44/')
#
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB44_Survey', folder='XAS/2021/2021_03/DB44/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB44_F-Fe', folder='XAS/2021/2021_03/DB44/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB44_Mn', folder='XAS/2021/2021_03/DB44/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB44_O', folder='XAS/2021/2021_03/DB44/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB44_C', folder='XAS/2021/2021_03/DB44/')
time.sleep(1)
####Sample DB45
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB45/")
open_vg13()
TRY.write(3.5)
TRZ.write(26.0)
#
#
time.sleep(1)
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB45_Na', folder='XAS/2021/2021_03/DB45/')
#
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB45_Survey', folder='XAS/2021/2021_03/DB45/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB45_F-Fe', folder='XAS/2021/2021_03/DB45/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB45_Mn', folder='XAS/2021/2021_03/DB45/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB45_O', folder='XAS/2021/2021_03/DB45/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB45_C', folder='XAS/2021/2021_03/DB45/')
time.sleep(1)
####Sample DB46
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB46/")
open_vg13()
TRY.write(8.75)
TRZ.write(25.0)
#
#
time.sleep(1)
#
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB46_Na', folder='XAS/2021/2021_03/DB46/')
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB46_Survey', folder='XAS/2021/2021_03/DB46/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB46_F-Fe', folder='XAS/2021/2021_03/DB46/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB46_Mn', folder='XAS/2021/2021_03/DB46/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB46_O', folder='XAS/2021/2021_03/DB46/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB46_C', folder='XAS/2021/2021_03/DB46/')
time.sleep(1)
####Sample DB47
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB47/")
open_vg13()
TRY.write(11.0)
TRZ.write(30.25)
#
#
time.sleep(1)
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB47_Na', folder='XAS/2021/2021_03/DB47/')
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB47_Survey', folder='XAS/2021/2021_03/DB47/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB47_F-Fe', folder='XAS/2021/2021_03/DB47/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB47_Mn', folder='XAS/2021/2021_03/DB47/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB47_O', folder='XAS/2021/2021_03/DB47/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB47_C', folder='XAS/2021/2021_03/DB47/')
time.sleep(1)
####Sample DB48
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB48/")
open_vg13()
TRY.write(6.25)
TRZ.write(31.75)
#
#
time.sleep(1)
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB48_Na', folder='XAS/2021/2021_03/DB48/')
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB48_Survey', folder='XAS/2021/2021_03/DB48/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB48_F-Fe', folder='XAS/2021/2021_03/DB48/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB48_Mn', folder='XAS/2021/2021_03/DB48/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB48_O', folder='XAS/2021/2021_03/DB48/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB48_C', folder='XAS/2021/2021_03/DB48/')
time.sleep(1)
####Sample DB49
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB49/")
open_vg13()
TRY.write(0.75)
TRZ.write(30.5)
#
#
time.sleep(1)
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB49_Na', folder='XAS/2021/2021_03/DB49')
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB49_Survey', folder='XAS/2021/2021_03/DB49/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB49_F-Fe', folder='XAS/2021/2021_03/DB49/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB49_Mn', folder='XAS/2021/2021_03/DB49/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB49_O', folder='XAS/2021/2021_03/DB49/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB49_C', folder='XAS/2021/2021_03/DB49/')
time.sleep(1)
####Sample DB50
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB50/")
open_vg13()
TRY.write(9.5)
TRZ.write(36.75)
#
#
time.sleep(1)
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB50_Na', folder='XAS/2021/2021_03/DB50/')
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB50_Survey', folder='XAS/2021/2021_03/DB50/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB50_F-Fe', folder='XAS/2021/2021_03/DB50/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB50_Mn', folder='XAS/2021/2021_03/DB50/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB50_O', folder='XAS/2021/2021_03/DB50/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB50_C', folder='XAS/2021/2021_03/DB50/')
time.sleep(1)
####Sample DB51
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB51/")
open_vg13()
TRY.write(5.5)
TRZ.write(36.75)
#
time.sleep(1)
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB51_Na', folder='XAS/2021/2021_03/DB51/')
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB51_Survey', folder='XAS/2021/2021_03/DB51/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB51_F-Fe', folder='XAS/2021/2021_03/DB51/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB51_Mn', folder='XAS/2021/2021_03/DB51/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB51_O', folder='XAS/2021/2021_03/DB51/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB51_C', folder='XAS/2021/2021_03/DB51/')
time.sleep(1)
####Sample DB52
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB52/")
open_vg13()
TRY.write(7.5)
TRZ.write(42.25)
#
#
time.sleep(1)
#
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB52_Na', folder='XAS/2021/2021_03/DB52/')
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB52_Survey', folder='XAS/2021/2021_03/DB52/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB52_F-Fe', folder='XAS/2021/2021_03/DB52/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB52_Mn', folder='XAS/2021/2021_03/DB52/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB52_O', folder='XAS/2021/2021_03/DB52/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB52_C', folder='XAS/2021/2021_03/DB52/')
time.sleep(1)
####Sample DB43
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/DB43/")
open_vg13()
TRY.write(-6.5)
TRZ.write(26.0)
#
time.sleep(1)
##Sodium K edge ***requires 3rd Harmonic***
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=1070, end=1110, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB43_Na', folder='XAS/2021/2021_03/DB43/')
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB43_Survey', folder='XAS/2021/2021_03/DB43/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB43_F-Fe', folder='XAS/2021/2021_03/DB43/')
#Manganese L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB43_Mn', folder='XAS/2021/2021_03/DB43/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB43_O', folder='XAS/2021/2021_03/DB43/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='DB43_C', folder='XAS/2021/2021_03/DB43/')
time.sleep(1)
close_vg13()
+898
View File
@@ -0,0 +1,898 @@
##
####Sample SL29-REP-H8
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL29-REP-H8/")
#open_vg13()
#
#TRY.write(5.95)
#TRZ.write(43.50)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29-REP-H8_Survey', folder='XAS/2021/2021_03/SL29-REP-H8/')
#
##Nickel L edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29-REP-H8_Ni', folder='XAS/2021/2021_03/SL29-REP-H8/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29-REP-H8_Co', folder='XAS/2021/2021_03/SL29-REP-H8/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29-REP-H8_F-Fe', folder='XAS/2021/2021_03/SL29-REP-H8/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29-REP-H8_Mn', folder='XAS/2021/2021_03/SL29-REP-H8/')
#
##Oxygen K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29-REP-H8_O', folder='XAS/2021/2021_03/SL29-REP-H8/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL29-REP-H8_C', folder='XAS/2021/2021_03/SL29-REP-H8/')
#
time.sleep(1)
####Sample SL33-REP-H8
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL33-REP-H8/")
#open_vg13()
#
#TRY.write(5.95)
#TRZ.write(37.25)
#
#
#time.sleep(1)
#
#
###Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33-REP-H8_Survey', folder='XAS/2021/2021_03/SL33-REP-H8/')
#
##Nickel L edge
#nr_loops=4
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33-REP-H8_Ni', folder='XAS/2021/2021_03/SL33-REP-H8/')
#
###Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33-REP-H8_Co', folder='XAS/2021/2021_03/SL33-REP-H8/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33-REP-H8_F-Fe', folder='XAS/2021/2021_03/SL33-REP-H8/')
#
##Manganese L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33-REP-H8_Mn', folder='XAS/2021/2021_03/SL33-REP-H8/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33-REP-H8_O', folder='XAS/2021/2021_03/SL33-REP-H8/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL33-REP-H8_C', folder='XAS/2021/2021_03/SL33-REP-H8/')
#
#
#time.sleep(1)
#
#
#
####Sample SL30-REP-H8
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL30-REP-H8/")
#open_vg13()
#
#TRY.write(0.2)
#TRZ.write(43.5)
#
#
#time.sleep(1)
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30-REP-H8_Survey', folder='XAS/2021/2021_03/SL30-REP-H8/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30-REP-H8_Ni', folder='XAS/2021/2021_03/SL30-REP-H8/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30-REP-H8_Co', folder='XAS/2021/2021_03/SL30-REP-H8/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30-REP-H8_F-Fe', folder='XAS/2021/2021_03/SL30-REP-H8/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30-REP-H8_Mn', folder='XAS/2021/2021_03/SL30-REP-H8/')
#
##Oxygen K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30-REP-H8_O', folder='XAS/2021/2021_03/SL30-REP-H8/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL30-REP-H8_C', folder='XAS/2021/2021_03/SL30-REP-H8/')
#
#
#time.sleep(1)
#
#
#
####Sample SL32-REP-H8
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL32-REP-H8/")
#open_vg13()
#
#TRY.write(-7.05)
#TRZ.write(43.75)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32-REP-H8_Survey', folder='XAS/2021/2021_03/SL32-REP-H8/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32-REP-H8_Ni', folder='XAS/2021/2021_03/SL32-REP-H8/')
#
##Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32-REP-H8_Co', folder='XAS/2021/2021_03/SL32-REP-H8/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32-REP-H8_F-Fe', folder='XAS/2021/2021_03/SL32-REP-H8/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32-REP-H8_Mn', folder='XAS/2021/2021_03/SL32-REP-H8/')
#
##Oxygen K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32-REP-H8_O', folder='XAS/2021/2021_03/SL32-REP-H8/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL32-REP-H8_C', folder='XAS/2021/2021_03/SL32-REP-H8/')
#
#
#time.sleep(1)
#
####Sample SL1YR
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/SL1YR/")
#open_vg13()
#
#TRY.write(-7.05)
#TRZ.write(37.75)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL1YR_Survey', folder='XAS/2021/2021_03/SL1YR/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL1YR_Ni', folder='XAS/2021/2021_03/SL1YR/')
#
###Cobalt L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL1YR_Co', folder='XAS/2021/2021_03/SL1YR/')
#
##Fluor + Fe edges
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL1YR_F-Fe', folder='XAS/2021/2021_03/SL1YR/')
#
##Manganese L edge
#nr_loops=3
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL1YR_Mn', folder='XAS/2021/2021_03/SL1YR/')
#
##Oxygen K edge
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL1YR_O', folder='XAS/2021/2021_03/SL1YR/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL1YR_C', folder='XAS/2021/2021_03/SL1YR/')
#
#
#time.sleep(1)
#
#
#
#####Sample AS29-3V-DC
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS29-3V-DC/")
#open_vg13()
#
#TRY.write(-5.05)
#TRZ.write(32.0)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3V-DC_Survey', folder='XAS/2021/2021_03/AS29-3V-DC/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3V-DC_Ni', folder='XAS/2021/2021_03/AS29-3V-DC/')
##
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3V-DC_Co', folder='XAS/2021/2021_03/AS29-3V-DC/')
#
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3V-DC_F-Fe', folder='XAS/2021/2021_03/AS29-3V-DC/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3V-DC_O', folder='XAS/2021/2021_03/AS29-3V-DC/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3V-DC_C', folder='XAS/2021/2021_03/AS29-3V-DC/')
#
#
#time.sleep(1)
#
#
#
#####Sample AS27-3V-DC
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS27-3V-DC/")
#open_vg13()
#
#TRY.write(-6.55)
#TRZ.write(26.75)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3V-DC_Survey', folder='XAS/2021/2021_03/AS27-3V-DC/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3V-DC_Ni', folder='XAS/2021/2021_03/AS27-3V-DC/')
##
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3V-DC_Co', folder='XAS/2021/2021_03/AS27-3V-DC/')
#
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3V-DC_F-Fe', folder='XAS/2021/2021_03/AS27-3V-DC/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3V-DC_O', folder='XAS/2021/2021_03/AS27-3V-DC/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3V-DC_C', folder='XAS/2021/2021_03/AS27-3V-DC/')
#
#
#time.sleep(1)
#
#
#####Sample AS29-3.7V-DC
#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS29-3.7V-DC/")
#open_vg13()
#
#TRY.write(-0.3)
#TRZ.write(33.0)
#
#
#time.sleep(1)
#
#
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3.7V-DC_Survey', folder='XAS/2021/2021_03/AS29-3.7V-DC/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3.7V-DC_Ni', folder='XAS/2021/2021_03/AS29-3.7V-DC/')
##
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3.7V-DC_Co', folder='XAS/2021/2021_03/AS29-3.7V-DC/')
#
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3.7V-DC_F-Fe', folder='XAS/2021/2021_03/AS29-3.7V-DC/')
#
##Oxygen K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3.7V-DC_O', folder='XAS/2021/2021_03/AS29-3.7V-DC/')
#
##Carbon K edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 10)
# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-3.7V-DC_C', folder='XAS/2021/2021_03/AS29-3.7V-DC/')
#
#
#time.sleep(1)
#
#
####Sample AS27-3.7V-DC
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS27-3.7V-DC/")
open_vg13()
TRY.write(-3.05)
TRZ.write(26.5)
time.sleep(1)
##Survey
#nr_loops=1
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3.7V-DC_Survey', folder='XAS/2021/2021_03/AS27-3.7V-DC/')
#
##Nickel L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3.7V-DC_Ni', folder='XAS/2021/2021_03/AS27-3.7V-DC/')
##
##Cobalt L edge
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3.7V-DC_Co', folder='XAS/2021/2021_03/AS27-3.7V-DC/')
#
##Fluor + Fe edges
#nr_loops=2
#for i in range(nr_loops):
# caput('X11MA-KEI10:RANGE', 7)
# caput('X11MA-KEI11:RANGE', 8)
# caput('X11MA-KEI12:RANGE', 9)
# otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3.7V-DC_F-Fe', folder='XAS/2021/2021_03/AS27-3.7V-DC/')
#
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3.7V-DC_O', folder='XAS/2021/2021_03/AS27-3.7V-DC/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-3.7V-DC_C', folder='XAS/2021/2021_03/AS27-3.7V-DC/')
time.sleep(1)
####Sample AS29-4.3V-CH
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS29-4.3V-CH/")
open_vg13()
TRY.write(4.95)
TRZ.write(31.5)
time.sleep(1)
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4.3V-CH_Survey', folder='XAS/2021/2021_03/AS29-4.3V-CH/')
#Nickel L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4.3V-CH_Ni', folder='XAS/2021/2021_03/AS29-4.3V-CH/')
#
#Cobalt L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4.3V-CH_Co', folder='XAS/2021/2021_03/AS29-4.3V-CH/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4.3V-CH_F-Fe', folder='XAS/2021/2021_03/AS29-4.3V-CH/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4.3V-CH_O', folder='XAS/2021/2021_03/AS29-4.3V-CH/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4.3V-CH_C', folder='XAS/2021/2021_03/AS29-4.3V-CH/')
time.sleep(1)
####Sample AS27-4.3V-CH
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS27-4.3V-CH/")
open_vg13()
TRY.write(0.95)
TRZ.write(26.0)
time.sleep(1)
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4.3V-CH_Survey', folder='XAS/2021/2021_03/AS27-4.3V-CH/')
#Nickel L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4.3V-CH_Ni', folder='XAS/2021/2021_03/AS27-4.3V-CH/')
#
#Cobalt L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4.3V-CH_Co', folder='XAS/2021/2021_03/AS27-4.3V-CH/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4.3V-CH-Fe', folder='XAS/2021/2021_03/AS27-4.3V-CH/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4.3V-CH_O', folder='XAS/2021/2021_03/AS27-4.3V-CH/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4.3V-CH_C', folder='XAS/2021/2021_03/AS27-4.3V-CH/')
time.sleep(1)
####Sample AS29-4V-CH
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS29-4V-CH/")
open_vg13()
TRY.write(9.7)
TRZ.write(31.25)
time.sleep(1)
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4V-CH_Survey', folder='XAS/2021/2021_03/AS29-4V-CH/')
#Nickel L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4V-CH_Ni', folder='XAS/2021/2021_03/AS29-4V-CH/')
#
#Cobalt L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4V-CH_Co', folder='XAS/2021/2021_03/AS29-4V-CH/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4V-CH_F-Fe', folder='XAS/2021/2021_03/AS29-4V-CH/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4V-CH_O', folder='XAS/2021/2021_03/AS29-4V-CH/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS29-4V-CH_C', folder='XAS/2021/2021_03/AS29-4V-CH/')
time.sleep(1)
####Sample AS27-4V-CH
set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS27-4V-CH/")
open_vg13()
TRY.write(5.7)
TRZ.write(25.75)
time.sleep(1)
#Survey
nr_loops=1
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4V-CH_Survey', folder='XAS/2021/2021_03/AS27-4V-CH/')
#Nickel L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=845, end=885, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4V-CH_Ni', folder='XAS/2021/2021_03/AS27-4V-CH/')
#
#Cobalt L edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4V-CH_Co', folder='XAS/2021/2021_03/AS27-4V-CH/')
#Fluor + Fe edges
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=680, end=735, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4V-CH_F-Fe', folder='XAS/2021/2021_03/AS27-4V-CH/')
#Oxygen K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 9)
otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4V-CH_O', folder='XAS/2021/2021_03/AS27-4V-CH/')
#Carbon K edge
nr_loops=2
for i in range(nr_loops):
caput('X11MA-KEI10:RANGE', 7)
caput('X11MA-KEI11:RANGE', 8)
caput('X11MA-KEI12:RANGE', 10)
otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-4V-CH_C', folder='XAS/2021/2021_03/AS27-4V-CH/')
time.sleep(1)
close_vg13()
+5 -3
View File
@@ -251,9 +251,11 @@ def stop_eiger():
eiger.grabMode=eiger.GrabMode.Single
eiger.stop()
eiger.waitReady(5000)
time.sleep(0.1)
#if eiger.acquire.read() >0:
# raise Exception("Error stopping Eiger")
else:
eiger.grabMode=eiger.GrabMode.Single
time.sleep(0.1)
#if eiger.acquire.read() >0:
# raise Exception("Error stopping Eiger")
chrono_eiger = Chrono()
+7
View File
@@ -233,6 +233,13 @@ def otf(start, end, time, delay = 0.0, mode = None, offset = None, alpha = None,
#folder = get_context().setup.expandPath("{year}_{month}/{date}");
run("templates/EnergyScan", {"E1":start, "E2":end, "TIME":time, "DELAY":float(delay), "MODE":mode, "OFFSET":(offset), "FOLDER":folder, "FILE":name, "ALPHA":float(alpha) if alpha is not None else None})
def otf2(start, end, time, delay = 0.0, mode = None, offset = None, alpha = None, name = None, folder = 'TEST'):
"""
"""
if name is None:
name = get_exec_pars().name
#folder = get_context().setup.expandPath("{year}_{month}/{date}");
run("templates/EnergyScan_v2", {"E1":start, "E2":end, "TIME":time, "DELAY":float(delay), "MODE":mode, "OFFSET":(offset), "FOLDER":folder, "FILE":name, "ALPHA":float(alpha) if alpha is not None else None})
###################################################################################################
#Devices
+9 -2
View File
@@ -41,8 +41,6 @@ set_exec_pars(name=METHOD, path = data_path, format="txt", layout="table", open=
#data_path = get_exec_pars().path
#get_context().incrementFileSequentialNumber()
run_index = get_context().getDaySequentialNumber()
def get_image_file_name(cycle=-1, frame_index=0, short_name=False):
@@ -98,6 +96,10 @@ def save_image_file(frame, cycle=-1, frame_index=0):
# log("SV:"+Format(startvoltage,"0.000")+" OB:"+Format(objective,"0.00")+" ST:"+Format(LEEMtemp,"0.0"))
init_eiger(exposure=EXPOSURE)
run_index = get_context().getDaySequentialNumber()
print " ---- Run index : %d" %(run_index,)
max_index=0
#print "Startup time: " + str(time.time() - start)
try:
@@ -195,6 +197,11 @@ try:
imageinfo("I")
save_image_file(av, cycle, i)
"""
#TODO: This is a workaround to handle 2-Images, should be removed
run_index = run_index + 1
if scan>0:
max_index=max_index+1
print " ---- New un index : %d" %(run_index,)
finally:
for i in range(max_index):
+119
View File
@@ -0,0 +1,119 @@
#Parameters
if get_exec_pars().source == CommandSource.ui:
E1 = 800
E2 = 820
TIME = 1 #min
DELAY = 0.1 #s
FOLDER = get_context().setup.expandPath("{year}_{month}/{date}")
FILE = 'ImageOTF'
ROI = {"Region1": [286, 86, 79, 70], "Region2": [153, 279, 95, 82]}
SAVE_IMAGES=True
SAVE_DIAGS = True
print "\nStart image energy scan..."
print E1,"eV ->",E2,"eV,",TIME,"min duration,",DELAY,"sec delay"
print "ROIs: ", ROI
#set_exec_pars(format="h5", layout="default")
folder = os.path.expanduser("~/Data1/") + FOLDER + "/";
set_exec_pars(name=FILE)
rois = create_roi_devices(ROI)
class NormROI(Readable):
def __init__(self, roi):
self.roi = roi
def read(self):
return float(self.roi.take())/float(CADC1.take())
def getName(self):
return self.roi.name + " norm"
#sensors = [Ecrbk, eiger.getDataMatrix().getCache(), CADC1]
sensors = [Ecrbk, eiger.getImageCounter().getCache(), CADC1]
for roi in rois:
sensors.append(roi)
sensors.append(NormROI(roi))
#Pre-actions
#if NO_BEAM_CHECK == False:
# print "Wait beam"
# wait_beam()
"""
if MODE is not None:
pol_mode.write(MODE)
if MODE == 'LINEAR':
if ALPHA is not None:
pol_angle.write(ALPHA)
time.sleep(0.5)
if OFFSET is not None:
pol_offset.write(OFFSET)
wait_device(pol_done, "DONE")
"""
energy.write(float(E1))
time.sleep(0.5)
wait_channel(ALL_DONE, 1, type = 'i')
caput('E1', E1)
caput('E2', E2)
caput('TIME', TIME)
caput('FOLDER', FOLDER)
caput('FILE', FILE)
time.sleep(DELAY)
caput('START', '1')
#Pseudo-devices
class Time(Readable):
def __init__(self):
self.start = time.time()
def read(self):
return time.time()-self.start
scan_completed = False
try:
caput('START', '1')
#av = create_averager(CADC1, -1, -1)
def monitoring_task():
global scan_completed
time.sleep(1.0)
wait_channel('START', 'STOP', type = 's')
scan_completed = True
get_exec_pars().currentScan.abort()
ret = fork(monitoring_task)
def before_read():
pass
def after_read():
if SAVE_DIAGS:
index = eiger.getImageCounter().take()
filename = get_exec_pars().path + "/" + str(index) + ".tif"
save_as_tiff(image.data, filename, check=False, parallel=True, metadata=(get_diags() if SAVE_DIAGS else {}))
print "Scanning...",
try:
CADC1.alias = "I0"
mscan(image.trigger, sensors, -1, None, async = False, range="auto", domain_axis="Ecrbk", before_read=before_read, after_read=after_read)
finally:
CADC1.alias = None
ret[0].cancel(True)
print "Finished Energy scan."
except:
if not scan_completed:
print sys.exc_info()
print("Aborting...")
while caget('START') == 'START':
caput('START', '0')
time.sleep(0.1)
raise
after_sample() #To call check_id_error()
+101
View File
@@ -0,0 +1,101 @@
#Parameters
"""
E1 = 800
E2 = 820
TIME = 1 #min
DELAY = 0.1 #s
MODE = 'LINEAR'
OFFSET = 0.0
FOLDER = 'XAS/2020/11/SL-IN/'
FILE = 'test'
ALPHA=0.0
"""
print "\nStart energy scan..."
#print E1,E2,TIME,DELAY,str(MODE) ,str(OFFSET) ,str(FOLDER) ,str(FILE) ,str(ALPHA)
if MODE == "LINEAR":
print E1,"eV ->",E2,"eV,",TIME,"min duration,",DELAY,"sec delay,",str(MODE),str(ALPHA),"deg"
else:
print E1,"eV ->",E2,"eV,",TIME,"min duration,",DELAY,"sec delay,",str(MODE)
folder = os.path.expanduser("~/Data1/") + FOLDER + "/";
set_exec_pars(name= FILE)
#Pre-actions
#if NO_BEAM_CHECK == False:
# print "Wait beam"
# wait_beam()
if MODE is not None:
pol_mode.write(MODE)
if MODE == 'LINEAR':
if ALPHA is not None:
pol_angle.write(ALPHA)
time.sleep(0.5)
if OFFSET is not None:
pol_offset.write(OFFSET)
wait_device(pol_done, "DONE")
energy.write(float(E1))
wait_channel(ALL_DONE, 1, type = 'i')
caput('E1', E1)
caput('E2', E2)
caput('TIME', TIME)
caput('FOLDER', FOLDER)
caput('FILE', FILE)
time.sleep(DELAY)
caput('START', '1')
#Pseudo-devices
class Time(Readable):
def __init__(self):
self.start = time.time()
def read(self):
return time.time()-self.start
class NORMtey(Readable):
def read(self):
return float(CADC2.take())/float(CADC1.take())
class NORMdiode(Readable):
def read(self):
return float(CADC3.take())/float(CADC1.take())
scan_completed = False
try:
caput('START', '1')
sensors = [Ecrbk, CADC1, CADC2, CADC3, NORMtey(), NORMdiode()]
def monitoring_task():
global scan_completed
time.sleep(1.0)
try:
plot_titles = [ "I0", "TEYraw", "TFYraw", "TEY", "TFY"]
for index, title in enumerate(plot_titles, start=0): get_plots()[index].title = title
except:
pass
wait_channel('START', 'STOP', type = 's')
scan_completed = True
get_exec_pars().currentScan.abort()
ret = fork(monitoring_task)
print "Scanning...",
try:
mscan(Ecrbk, sensors, -1, None, range="auto", domain_axis="Ecrbk", enabled_plots = ["NORMtey", "NORMdiode", CADC1,CADC3, CADC2], )
finally:
ret[0].cancel(True)
print "Finished Energy scan."
except:
if not scan_completed:
print sys.exc_info()
print("Aborting...")
while caget('START') == 'START':
caput('START', '0')
time.sleep(0.1)
raise
after_sample() #To call check_id_error()
+11
View File
@@ -0,0 +1,11 @@
nr_loops=1
#for i in range(nr_loops):
while True:
#caput('X11MA-KEI10:RANGE', 7)
#caput('X11MA-KEI11:RANGE', 8)
#caput('X11MA-KEI12:RANGE', 10)
otf2(start=800, end=840, time=2, delay=0, mode='LINEAR', alpha = 0.0, offset=0.0, name='SL-IN_C', folder='XAS/2020/11/SL-IN/')
+2 -2
View File
@@ -1,8 +1,8 @@
init_eiger(exposure=0.2)
for i in range (4):
for e in (20,):
for i in range (1):
for e in (20,2, 2, 20, 20):
start = time.time()
average_eiger_frames(e, wait_next=True)
print "Samples: " + str(e) + " Time:" + str (time.time()-start)