From 3ba3997b5e17dfb929342487d860604c8562639e Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Mon, 12 Apr 2021 14:27:13 +0200 Subject: [PATCH] Image OTF --- .../Fe_L32__Arik_Beck_fine.abs | Bin 0 -> 411 bytes .../Fe_L3__Arik_Beck_fast.abs | Bin 0 -> 359 bytes .../Fe_L3__Arik_Beck_fine.abs | Bin 0 -> 307 bytes .../O1s_for_SV309.6V_Arik_Beck | Bin 0 -> 307 bytes .../O_K__Arik_Beck_medium.abs | Bin 0 -> 359 bytes config/devices.properties | 8 + config/scicat.properties | 2 +- config/session_metadata.properties | 6 +- config/sessions.properties | 5 +- config/settings.properties | 12 +- config/variables.properties | 8 +- devices/image.properties | 6 +- plugins/DataAcquisition.form | 187 +++ plugins/DataAcquisition.java | 235 ++- plugins/Eiger.form | 245 ++- plugins/Eiger.java | 310 +++- script/Users/carlos/test.py | 589 ++++++++ .../Users/steven/March2021_Holder1-FINAL.py | 875 +++++++++++ script/Users/steven/March2021_Holder1.py | 899 +++++++++++ script/Users/steven/March2021_Holder2.py | 675 +++++++++ script/Users/steven/March2021_Holder3.py | 808 ++++++++++ script/Users/steven/March2021_Holder4.py | 1340 +++++++++++++++++ script/Users/steven/March2021_Holder5.py | 1090 ++++++++++++++ script/Users/steven/March2021_Holder6.py | 887 +++++++++++ script/Users/steven/March2021_Holder7.py | 742 +++++++++ script/Users/steven/March2021_Holder8.py | 898 +++++++++++ script/devices/eiger.py | 8 +- script/local.py | 7 + script/templates/Eiger2Img.py | 11 +- script/templates/EnergyScan_img.py | 119 ++ script/templates/EnergyScan_v2.py | 101 ++ script/test/TestOTF2.py | 11 + script/test/test_eiger.py | 4 +- 33 files changed, 9946 insertions(+), 142 deletions(-) create mode 100644 config/AbsortionSpectrum/Fe_L32__Arik_Beck_fine.abs create mode 100644 config/AbsortionSpectrum/Fe_L3__Arik_Beck_fast.abs create mode 100644 config/AbsortionSpectrum/Fe_L3__Arik_Beck_fine.abs create mode 100644 config/AbsortionSpectrum/O1s_for_SV309.6V_Arik_Beck create mode 100644 config/AbsortionSpectrum/O_K__Arik_Beck_medium.abs mode change 100644 => 100755 config/sessions.properties create mode 100644 script/Users/carlos/test.py create mode 100644 script/Users/steven/March2021_Holder1-FINAL.py create mode 100644 script/Users/steven/March2021_Holder1.py create mode 100644 script/Users/steven/March2021_Holder2.py create mode 100644 script/Users/steven/March2021_Holder3.py create mode 100644 script/Users/steven/March2021_Holder4.py create mode 100644 script/Users/steven/March2021_Holder5.py create mode 100644 script/Users/steven/March2021_Holder6.py create mode 100644 script/Users/steven/March2021_Holder7.py create mode 100644 script/Users/steven/March2021_Holder8.py create mode 100644 script/templates/EnergyScan_img.py create mode 100644 script/templates/EnergyScan_v2.py create mode 100644 script/test/TestOTF2.py diff --git a/config/AbsortionSpectrum/Fe_L32__Arik_Beck_fine.abs b/config/AbsortionSpectrum/Fe_L32__Arik_Beck_fine.abs new file mode 100644 index 0000000000000000000000000000000000000000..747cfc0f3167112853587f4a4cdcccf9234d54d3 GIT binary patch literal 411 zcmZ4UmVvdjh(S2oCo8cmQ75_o3=E7wbt2JN z6iV#>9sDHw_9>V`*3v?TI-mvy2Ik@-1_6Y@F8QTNIjIes4|!>3|7KxgV02+%ElbQP zO|3vt=2x1Vlv>obW~warln32lQyp3#fDJ4Lnat|Y`U8n)f7uuekZgsiIs*h}p?cZ^ zkoD}G2?Db)^t6Q_sd8uo`I~_OVuJkxFoywCPXUTOC&0>}dT`ovDh&i+Zu^DAgZT#l DHAr~? literal 0 HcmV?d00001 diff --git a/config/AbsortionSpectrum/Fe_L3__Arik_Beck_fast.abs b/config/AbsortionSpectrum/Fe_L3__Arik_Beck_fast.abs new file mode 100644 index 0000000000000000000000000000000000000000..2bd5a80d38161f14d689f8724c1320c6e518060a GIT binary patch literal 359 zcmZ4UmVvdjh(S2oCo8cmQ75_o3=E7wbt2JN z6iV#>9sDHw_9>V`meN9oI-mvy2Ik@-1_6Y@F8QTNIjIes4|!>3|7KxgV02+%ElbQP zO|3vt=2x1Vlv>obW~warln32lQyp3#fDJ4Lnat|YCV<4VzibQ!NVdXModJTgFg+H? odUnnPfmxV(tdLYWw1pt?>@R>h448T%kW@LeRUq-~A3*c~0BeF@(f|Me literal 0 HcmV?d00001 diff --git a/config/AbsortionSpectrum/Fe_L3__Arik_Beck_fine.abs b/config/AbsortionSpectrum/Fe_L3__Arik_Beck_fine.abs new file mode 100644 index 0000000000000000000000000000000000000000..62a0a7ecf0cd396a8272048bbc00e92f1d143d67 GIT binary patch literal 307 zcmZ4UmVvdjh(S2oCo8cmQ75_o3=E7wbt2JN z6iV#>9sDHw_9>V`=F&ojI-mvy2Ik@-1_6Y@F8QTNIjIes4|!>3|7KxgV02+%ElbQP zO|3vt=2x1Vlv>obW~warln32lQyp3#fDJ4Lnat|Y`U8n)f7uuekZgsiIs*h}p?cZ^ fkoD}G2?Db)^t6Q_sd8uo`I~_OVuJkxFoyvEmP=UX literal 0 HcmV?d00001 diff --git a/config/AbsortionSpectrum/O1s_for_SV309.6V_Arik_Beck b/config/AbsortionSpectrum/O1s_for_SV309.6V_Arik_Beck new file mode 100644 index 0000000000000000000000000000000000000000..9164fdce3a8791593ea64fdb310a27d0cad49c93 GIT binary patch literal 307 zcmZ4UmVvdjh(S2oCo8cmQ75_o3=E7wbt2JN z6iV#>9sDHw_9>V`=F&ojI-mvy2Ik@-1_6Y@F8QTNIjIes4|!>3|7KxgV02+%ElbQP zO|3vt=2x1Vlv>obW~warln32lQysb-zy=nBOlEcHia_Goe*kkBkZi@G%Au8qA literal 0 HcmV?d00001 diff --git a/config/AbsortionSpectrum/O_K__Arik_Beck_medium.abs b/config/AbsortionSpectrum/O_K__Arik_Beck_medium.abs new file mode 100644 index 0000000000000000000000000000000000000000..0d04a97b1e2cb4acea14aa528c4f21840fd0437a GIT binary patch literal 359 zcmZ4UmVvdjh(S2oCo8cmQ75_o3=E7wbt2JN z6iV#>9sDHw_9>V`meN9oI-mvy2Ik@-1_6Y@F8QTNIjIes4|!>3|7KxgV02+%ElbQP zO|3vt=2x1Vlv>obW~warln32lQym&2zy=nBOlEax=s@DxKLB$WkZgsj>YND#vtW8o mAnQ2^lA1XSQ_mSBRSu0DNIabOGzuW8a%e<$sr?7A6axUOFkXoO literal 0 HcmV?d00001 diff --git a/config/devices.properties b/config/devices.properties index aa4cb58..db8e722 100755 --- a/config/devices.properties +++ b/config/devices.properties @@ -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 diff --git a/config/scicat.properties b/config/scicat.properties index 9fd6f4d..3033556 100755 --- a/config/scicat.properties +++ b/config/scicat.properties @@ -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 diff --git a/config/session_metadata.properties b/config/session_metadata.properties index 3fd4bce..e884dd7 100755 --- a/config/session_metadata.properties +++ b/config/session_metadata.properties @@ -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 diff --git a/config/sessions.properties b/config/sessions.properties old mode 100644 new mode 100755 index 18a633c..1ff9dae --- a/config/sessions.properties +++ b/config/sessions.properties @@ -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 diff --git a/config/settings.properties b/config/settings.properties index 48a1437..0855fed 100755 --- a/config/settings.properties +++ b/config/settings.properties @@ -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 diff --git a/config/variables.properties b/config/variables.properties index 24e7a86..75c1e00 100755 --- a/config/variables.properties +++ b/config/variables.properties @@ -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 diff --git a/devices/image.properties b/devices/image.properties index dfc0e39..f5a7639 100755 --- a/devices/image.properties +++ b/devices/image.properties @@ -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 diff --git a/plugins/DataAcquisition.form b/plugins/DataAcquisition.form index 580baa1..489eb52 100755 --- a/plugins/DataAcquisition.form +++ b/plugins/DataAcquisition.form @@ -1491,6 +1491,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/DataAcquisition.java b/plugins/DataAcquisition.java index 39d53c3..1cdef8b 100755 --- a/plugins/DataAcquisition.java +++ b/plugins/DataAcquisition.java @@ -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> getRois(){ + Map> 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> 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") // //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; diff --git a/plugins/Eiger.form b/plugins/Eiger.form index 37a4a69..d365612 100755 --- a/plugins/Eiger.form +++ b/plugins/Eiger.form @@ -16,78 +16,138 @@ - - + + + - - - - + + + - + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - + + - - + + + + + - - + + - + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + - - @@ -97,7 +157,7 @@ - + @@ -126,12 +186,12 @@ - + - + - + @@ -142,10 +202,9 @@ - + - - + @@ -159,7 +218,7 @@ - + @@ -190,7 +249,7 @@ - + @@ -217,5 +276,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/Eiger.java b/plugins/Eiger.java index e77e678..a929d81 100755 --- a/plugins/Eiger.java +++ b/plugins/Eiger.java @@ -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}); }// //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 comboDepth; private javax.swing.JComboBox comboMode; + private javax.swing.JComboBox 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 } diff --git a/script/Users/carlos/test.py b/script/Users/carlos/test.py new file mode 100644 index 0000000..d3fa5fb --- /dev/null +++ b/script/Users/carlos/test.py @@ -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() + + diff --git a/script/Users/steven/March2021_Holder1-FINAL.py b/script/Users/steven/March2021_Holder1-FINAL.py new file mode 100644 index 0000000..f1ec6a8 --- /dev/null +++ b/script/Users/steven/March2021_Holder1-FINAL.py @@ -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() + + diff --git a/script/Users/steven/March2021_Holder1.py b/script/Users/steven/March2021_Holder1.py new file mode 100644 index 0000000..13cc93c --- /dev/null +++ b/script/Users/steven/March2021_Holder1.py @@ -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() + + diff --git a/script/Users/steven/March2021_Holder2.py b/script/Users/steven/March2021_Holder2.py new file mode 100644 index 0000000..0e262f9 --- /dev/null +++ b/script/Users/steven/March2021_Holder2.py @@ -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() + + diff --git a/script/Users/steven/March2021_Holder3.py b/script/Users/steven/March2021_Holder3.py new file mode 100644 index 0000000..2b614ea --- /dev/null +++ b/script/Users/steven/March2021_Holder3.py @@ -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() + + diff --git a/script/Users/steven/March2021_Holder4.py b/script/Users/steven/March2021_Holder4.py new file mode 100644 index 0000000..3ead75e --- /dev/null +++ b/script/Users/steven/March2021_Holder4.py @@ -0,0 +1,1340 @@ + +#####Sample AS22-F +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS22-F/") +#open_vg13() +# +#TRY.write(-7.834) +#TRZ.write(26.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='AS22-F_Survey', folder='XAS/2021/2021_03/AS22-F/') +# +##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='AS22-F_Ni', folder='XAS/2021/2021_03/AS22-F/') +## +##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='AS22-F_Co', folder='XAS/2021/2021_03/AS22-F/') +# +##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='AS22-F_F-Fe', folder='XAS/2021/2021_03/AS22-F/') +# +##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='AS22-F_O', folder='XAS/2021/2021_03/AS22-F/') +# +##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='AS22-F_C', folder='XAS/2021/2021_03/AS22-F/') +# +# +#time.sleep(1) +# +# +# +# +# +#####Sample Pris-F-Rep +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/Pris-F-Rep/") +#open_vg13() +# +#TRY.write(-4.084) +#TRZ.write(26.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='Pris-F-Rep_Survey', folder='XAS/2021/2021_03/Pris-F-Rep/') +# +##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='Pris-F-Rep_Ni', folder='XAS/2021/2021_03/Pris-F-Rep/') +# +##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='Pris-F-Rep_Co', folder='XAS/2021/2021_03/Pris-F-Rep/') +# +##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='Pris-F-Rep_F-Fe', folder='XAS/2021/2021_03/Pris-F-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='Pris-F-Rep_O', folder='XAS/2021/2021_03/Pris-F-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='Pris-F-Rep_C', folder='XAS/2021/2021_03/Pris-F-Rep/') +# +# +#time.sleep(1) +# +# +# +## +## +## +######Sample Pristine-Rep +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/Pristine-Rep/") +#open_vg13() +# +#TRY.write(-0.334) +#TRZ.write(26.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='Pristine-Rep_Survey', folder='XAS/2021/2021_03/Pristine-Rep/') +# +##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='Pristine-Rep_Ni', folder='XAS/2021/2021_03/Pristine-Rep/') +# +##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='Pristine-Rep_Co', folder='XAS/2021/2021_03/Pristine-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='Pristine-Rep_F-Fe', folder='XAS/2021/2021_03/Pristine-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='Pristine-Rep_O', folder='XAS/2021/2021_03/Pristine-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='Pristine-Rep_C', folder='XAS/2021/2021_03/Pristine-Rep/') +# +# +#time.sleep(1) +# +# +# +# +## +# +######Sample AS9-F +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS9-F/") +#open_vg13() +# +#TRY.write(3.666) +#TRZ.write(26.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='AS9-F_Survey', folder='XAS/2021/2021_03/AS9-F/') +# +##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='AS9-F_Ni', folder='XAS/2021/2021_03/AS9-F/') +# +##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='AS9-F_Co', folder='XAS/2021/2021_03/AS9-F/') +# +##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='AS9-F_F-Fe', folder='XAS/2021/2021_03/AS9-F/') +# +##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='AS9-F_O', folder='XAS/2021/2021_03/AS9-F/') +# +##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='AS9-F_C', folder='XAS/2021/2021_03/AS9-F/') +# +# +#time.sleep(1) + + + + + + +####Sample AS9 +set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS9/") +open_vg13() + +TRY.write(7.416) +TRZ.write(26.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='AS9_Survey', folder='XAS/2021/2021_03/AS9/') +# +##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='AS9_Ni', folder='XAS/2021/2021_03/AS9/') +# +##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='AS9_Co', folder='XAS/2021/2021_03/AS9/') +# +#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='AS9_F-Fe', folder='XAS/2021/2021_03/AS9/') + +##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='AS9_O', folder='XAS/2021/2021_03/AS9/') +# +##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='AS9_C', folder='XAS/2021/2021_03/AS9/') +# +# +time.sleep(1) +# +# +# +# +# +######Sample AS22-CH-F +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS22-CH-F/") +#open_vg13() +# +#TRY.write(9.666) +#TRZ.write(31.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='AS22-CH-F_Survey', folder='XAS/2021/2021_03/AS22-CH-F/') +# +##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='AS22-CH-F_Ni', folder='XAS/2021/2021_03/AS22-CH-F/') +# +##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='AS22-CH-F_Co', folder='XAS/2021/2021_03/AS22-CH-F/') +# +##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='AS22-CH-F_F-Fe', folder='XAS/2021/2021_03/AS22-CH-F/') +# +##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='AS22-CH-F_O', folder='XAS/2021/2021_03/AS22-CH-F/') +# +##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='AS22-CH-F_C', folder='XAS/2021/2021_03/AS22-CH-F/') +# +# +#time.sleep(1) +## +# +# +# +# +# +######Sample AS23 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS23/") +#open_vg13() +# +#TRY.write(5.166) +#TRZ.write(31.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='AS23_Survey', folder='XAS/2021/2021_03/AS23/') +# +##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='AS23_Ni', folder='XAS/2021/2021_03/AS23/') +# +##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='AS23_Co', folder='XAS/2021/2021_03/AS23/') +# +##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='AS23_F-Fe', folder='XAS/2021/2021_03/AS23/') +# +##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='AS23_O', folder='XAS/2021/2021_03/AS23/') +# +##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='AS23_C', folder='XAS/2021/2021_03/AS23/') +# +# +#time.sleep(1) +# +# +# +# +# +# +# +#####Sample AS23-CH +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS23-CH/") +#open_vg13() +# +#TRY.write(0.166) +#TRZ.write(31.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='AS23-CH_Survey', folder='XAS/2021/2021_03/AS23-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='AS23-CH_Ni', folder='XAS/2021/2021_03/AS23-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='AS23-CH_Co', folder='XAS/2021/2021_03/AS23-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='AS23-CH_F-Fe', folder='XAS/2021/2021_03/AS23-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='AS23-CH_O', folder='XAS/2021/2021_03/AS23-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', 9) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS23-CH_C', folder='XAS/2021/2021_03/AS23-CH/') +# +# +#time.sleep(1) +# +# +# +# +# +# +######Sample AS24 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS24/") +#open_vg13() +# +#TRY.write(-4.584) +#TRZ.write(31.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='AS24_Survey', folder='XAS/2021/2021_03/AS24/') +# +##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='AS24_Ni', folder='XAS/2021/2021_03/AS24/') +# +##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='AS24_Co', folder='XAS/2021/2021_03/AS24/') +# +##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='AS24_F-Fe', folder='XAS/2021/2021_03/AS24/') +# +##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='AS24_O', folder='XAS/2021/2021_03/AS24/') +# +##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='AS24_C', folder='XAS/2021/2021_03/AS24/') +# +# +#time.sleep(1) +# +# +# +# +# +# +######Sample AS24-CH +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS24-CH/") +#open_vg13() +# +#TRY.write(-8.334) +#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='AS24-CH_Survey', folder='XAS/2021/2021_03/AS24-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='AS24-CH_Ni', folder='XAS/2021/2021_03/AS24-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='AS24-CH_Co', folder='XAS/2021/2021_03/AS24-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='AS24-CH_F-Fe', folder='XAS/2021/2021_03/AS24-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='AS24-CH_O', folder='XAS/2021/2021_03/AS24-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', 9) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS24-CH_C', folder='XAS/2021/2021_03/AS24-CH/') +# +# +#time.sleep(1) +# +# +# +# +# +# +######Sample AS27 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS27/") +#open_vg13() +# +#TRY.write(-8.334) +#TRZ.write(38.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='AS27_Survey', folder='XAS/2021/2021_03/AS27/') +# +##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_Ni', folder='XAS/2021/2021_03/AS27/') +# +##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_Co', folder='XAS/2021/2021_03/AS27/') +# +##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_F-Fe', folder='XAS/2021/2021_03/AS27/') +# +##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_O', folder='XAS/2021/2021_03/AS27/') +# +##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='AS27_C', folder='XAS/2021/2021_03/AS27/') +# +# +#time.sleep(1) +# +# +# +# +# +# +######Sample AS26-CH +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS26-CH/") +#open_vg13() +# +#TRY.write(-4.584) +#TRZ.write(38.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='AS26-CH_Survey', folder='XAS/2021/2021_03/AS26-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='AS26-CH_Ni', folder='XAS/2021/2021_03/AS26-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='AS26-CH_Co', folder='XAS/2021/2021_03/AS26-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='AS26-CH_F-Fe', folder='XAS/2021/2021_03/AS26-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='AS26-CH_O', folder='XAS/2021/2021_03/AS26-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', 9) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS26-CH_C', folder='XAS/2021/2021_03/AS26-CH/') +# +# +#time.sleep(1) +# +# +# +# +# +######Sample AS26 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS26/") +#open_vg13() +# +#TRY.write(-0.334) +#TRZ.write(38.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='AS26_Survey', folder='XAS/2021/2021_03/AS26/') +# +##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='AS26_Ni', folder='XAS/2021/2021_03/AS26/') +# +##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='AS26_Co', folder='XAS/2021/2021_03/AS26/') +# +##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='AS26_F-Fe', folder='XAS/2021/2021_03/AS26/') +# +##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, t######Sample AS30-CH +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS30-CH/") +#open_vg13() +# +#TRY.write(-8.084) +#TRZ.write(43.8) +# +# +#time.sleep(1)ime=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS26_O', folder='XAS/2021/2021_03/AS26/') +# +##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='AS26_C', folder='XAS/2021/2021_03/AS26/') +# +# +#time.sleep(1) + + + + + +######Sample AS25-CH +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS25-CH/") +#open_vg13() +# +#TRY.write(4.666) +#TRZ.write(38.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='AS25-CH_Survey', folder='XAS/2021/2021_03/AS25-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='AS25-CH_Ni', folder='XAS/2021/2021_03/AS25-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='AS25-CH_Co', folder='XAS/2021/2021_03/AS25-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='AS25-CH_F-Fe', folder='XAS/2021/2021_03/AS25-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='AS25-CH_O', folder='XAS/2021/2021_03/AS25-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', 9) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS25-CH_C', folder='XAS/2021/2021_03/AS25-CH/') +# +# +#time.sleep(1) + + + + + +######Sample AS25 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS25/") +#open_vg13() +# +#TRY.write(9.166) +#TRZ.write(38.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='AS25_Survey', folder='XAS/2021/2021_03/AS25/') +# +##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='AS25_Ni', folder='XAS/2021/2021_03/AS25/') +# +##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='AS25_Co', folder='XAS/2021/2021_03/AS25/') +# +##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='AS25_F-Fe', folder='XAS/2021/2021_03/AS25/') +# +##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='AS25_O', folder='XAS/2021/2021_03/AS25/') +# +##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='AS25_C', folder='XAS/2021/2021_03/AS25/') +# +# +#time.sleep(1) +# +# +# +# +# +# +######Sample AS27-CH +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS27-CH/") +#open_vg13() +# +#TRY.write(7.166) +#TRZ.write(43.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='AS27-CH_Survey', folder='XAS/2021/2021_03/AS27-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-CH_Ni', folder='XAS/2021/2021_03/AS27-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-CH_Co', folder='XAS/2021/2021_03/AS27-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-CH_F-Fe', folder='XAS/2021/2021_03/AS27-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-CH_O', folder='XAS/2021/2021_03/AS27-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', 9) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS27-CH_C', folder='XAS/2021/2021_03/AS27-CH/') +# +# +#time.sleep(1) +# +# +# +# +# +######Sample AS29 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS29/") +#open_vg13() +# +#TRY.write(3.916) +#TRZ.write(43.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='AS29_Survey', folder='XAS/2021/2021_03/AS29/') +# +##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_Ni', folder='XAS/2021/2021_03/AS29/') +# +##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_Co', folder='XAS/2021/2021_03/AS29/') +# +##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_F-Fe', folder='XAS/2021/2021_03/AS29/') +# +##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_O', folder='XAS/2021/2021_03/AS29/') +# +##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='AS29_C', folder='XAS/2021/2021_03/AS29/') +# +# +#time.sleep(1) +# +# +# +# +# +######Sample AS29-CH +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS29-CH/") +#open_vg13() +# +#TRY.write(-0.584) +#TRZ.write(43.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='AS29-CH_Survey', folder='XAS/2021/2021_03/AS29-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-CH_Ni', folder='XAS/2021/2021_03/AS29-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-CH_Co', folder='XAS/2021/2021_03/AS29-CH/') + +##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='AS29-CH_F-Fe', folder='XAS/2021/2021_03/AS29-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-CH_O', folder='XAS/2021/2021_03/AS29-CH/') +# +##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='AS29-CH_C', folder='XAS/2021/2021_03/AS29-CH/') +# +# +#time.sleep(1) +# +# +# +# + +######Sample AS30 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS30/") +#open_vg13() +# +#TRY.write(-4.834) +#TRZ.write(43.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='AS30_Survey', folder='XAS/2021/2021_03/AS30/') +# +##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='AS30_Ni', folder='XAS/2021/2021_03/AS30/') +# +##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='AS30_Co', folder='XAS/2021/2021_03/AS30/') +# +##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='AS30_F-Fe', folder='XAS/2021/2021_03/AS30/') +# +##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='AS30_O', folder='XAS/2021/2021_03/AS30/') +# +##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='AS30_C', folder='XAS/2021/2021_03/AS30/') +# +# +#time.sleep(1) +# + + + + + +######Sample AS30-CH +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS30-CH/") +#open_vg13() +# +#TRY.write(-8.084) +#TRZ.write(43.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='AS30-CH_Survey', folder='XAS/2021/2021_03/AS30-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='AS30-CH_Ni', folder='XAS/2021/2021_03/AS30-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='AS30-CH_Co', folder='XAS/2021/2021_03/AS30-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='AS30-CH_F-Fe', folder='XAS/2021/2021_03/AS30-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='AS30-CH_O', folder='XAS/2021/2021_03/AS30-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', 9) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS30-CH_C', folder='XAS/2021/2021_03/AS30-CH/') +# +# +#time.sleep(1) + +close_vg13() + + diff --git a/script/Users/steven/March2021_Holder5.py b/script/Users/steven/March2021_Holder5.py new file mode 100644 index 0000000..34a1910 --- /dev/null +++ b/script/Users/steven/March2021_Holder5.py @@ -0,0 +1,1090 @@ + +#####Sample AS1-F-Rep +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS1-F-Rep/") +#open_vg13() +# +#TRY.write(7.2) +#TRZ.write(25.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='AS1-F-Rep_Survey', folder='XAS/2021/2021_03/AS1-F-Rep/') +# +##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='AS1-F-Rep_Ni', folder='XAS/2021/2021_03/AS1-F-Rep/') +## +##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='AS1-F-Rep_Co', folder='XAS/2021/2021_03/AS1-F-Rep/') +# +##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='AS1-F-Rep_F-Fe', folder='XAS/2021/2021_03/AS1-F-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='AS1-F-Rep_O', folder='XAS/2021/2021_03/AS1-F-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', 10) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS1-F-Rep_C', folder='XAS/2021/2021_03/AS1-F-Rep/') +# +# +#time.sleep(1) +# +# +# +# +# +# +#####Sample AS2-F-Rep +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS2-F-Rep/") +#open_vg13() +# +#TRY.write(3.2) +#TRZ.write(26.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='AS2-F-Rep_Survey', folder='XAS/2021/2021_03/AS2-F-Rep/') +# +##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='AS2-F-Rep_Ni', folder='XAS/2021/2021_03/AS2-F-Rep/') +## +##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='AS2-F-Rep_Co', folder='XAS/2021/2021_03/AS2-F-Rep/') +# +##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='AS2-F-Rep_F-Fe', folder='XAS/2021/2021_03/AS2-F-Rep/') +# +##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='AS2-F-Rep_O', folder='XAS/2021/2021_03/AS2-F-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', 10) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS2-F-Rep_C', folder='XAS/2021/2021_03/AS2-F-Rep/') +# +# +#time.sleep(1) +# +# +# +# +# +# +#####Sample AS3-F-Rep +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS3-F-Rep/") +#open_vg13() +# +#TRY.write(-0.8) +#TRZ.write(26.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='AS3-F-Rep_Survey', folder='XAS/2021/2021_03/AS3-F-Rep/') +# +##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='AS3-F-Rep_Ni', folder='XAS/2021/2021_03/AS3-F-Rep/') +## +##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='AS3-F-Rep_Co', folder='XAS/2021/2021_03/AS3-F-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='AS3-F-Rep_F-Fe', folder='XAS/2021/2021_03/AS3-F-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='AS3-F-Rep_O', folder='XAS/2021/2021_03/AS3-F-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', 10) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS3-F-Rep_C', folder='XAS/2021/2021_03/AS3-F-Rep/') +# +# +#time.sleep(1) +# +# +# +# +# +#####Sample AS4-F-Rep +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS4-F-Rep/") +#open_vg13() +# +#TRY.write(-4.3) +#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='AS4-F-Rep_Survey', folder='XAS/2021/2021_03/AS4-F-Rep/') +# +##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='AS4-F-Rep_Ni', folder='XAS/2021/2021_03/AS4-F-Rep/') +## +##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='AS4-F-Rep_Co', folder='XAS/2021/2021_03/AS4-F-Rep/') +# +##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='AS4-F-Rep_F-Fe', folder='XAS/2021/2021_03/AS4-F-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='AS4-F-Rep_O', folder='XAS/2021/2021_03/AS4-F-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', 10) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS4-F-Rep_C', folder='XAS/2021/2021_03/AS4-F-Rep/') +# +# +#time.sleep(1) +# +# +# +# +# +#####Sample AS5-F-Rep +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS5-F-Rep/") +#open_vg13() +# +#TRY.write(-7.8) +#TRZ.write(26.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='AS5-F-Rep_Survey', folder='XAS/2021/2021_03/AS5-F-Rep/') +# +##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='AS5-F-Rep_Ni', folder='XAS/2021/2021_03/AS5-F-Rep/') +## +##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='AS5-F-Rep_Co', folder='XAS/2021/2021_03/AS5-F-Rep/') +# +##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='AS5-F-Rep_F-Fe', folder='XAS/2021/2021_03/AS5-F-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='AS5-F-Rep_O', folder='XAS/2021/2021_03/AS5-F-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', 10) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS5-F-Rep_C', folder='XAS/2021/2021_03/AS5-F-Rep/') +# +# +#time.sleep(1) +# +# +# +# + + +#####Sample AS6-F-Rep +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS6-F-Rep/") +#open_vg13() +# +#TRY.write(9.2) +#TRZ.write(30.85) +# +# +#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='AS6-F-Rep_Survey', folder='XAS/2021/2021_03/AS6-F-Rep/') +# +##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='AS6-F-Rep_Ni', folder='XAS/2021/2021_03/AS6-F-Rep/') +## +##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='AS6-F-Rep_Co', folder='XAS/2021/2021_03/AS6-F-Rep/') +# +##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='AS6-F-Rep_F-Fe', folder='XAS/2021/2021_03/AS6-F-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='AS6-F-Rep_O', folder='XAS/2021/2021_03/AS6-F-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', 10) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS6-F-Rep_C', folder='XAS/2021/2021_03/AS6-F-Rep/') +# +# +#time.sleep(1) + + + + + + +#####Sample AS7-F-Rep +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/AS7-F-Rep/") +#open_vg13() +# +#TRY.write(4.7) +#TRZ.write(30.85) +# +# +#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='AS7-F-Rep_Survey', folder='XAS/2021/2021_03/AS7-F-Rep/') +# +##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='AS7-F-Rep_Ni', folder='XAS/2021/2021_03/AS7-F-Rep/') +## +##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='AS7-F-Rep_Co', folder='XAS/2021/2021_03/AS7-F-Rep/') + +##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='AS7-F-Rep_F-Fe', folder='XAS/2021/2021_03/AS7-F-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='AS7-F-Rep_O', folder='XAS/2021/2021_03/AS7-F-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', 10) +# otf(start=270, end=320, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='AS7-F-Rep_C', folder='XAS/2021/2021_03/AS7-F-Rep/') +# +# +#time.sleep(1) + + + + + + + +#####Sample REF-LiMnO2 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/REF-LiMnO2/") +#open_vg13() +# +#TRY.write(-4.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='REF-LiMnO2_Survey', folder='XAS/2021/2021_03/REF-LiMnO2/') +# +##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='REF-LiMnO2_Mn', folder='XAS/2021/2021_03/REF-LiMnO2/') +# +# +##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='REF-LiMnO2_O', folder='XAS/2021/2021_03/REF-LiMnO2/') +# +# +#time.sleep(1) +# + + + + + +#####Sample REF-LiMn2O4 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/REF-LiMn2O4/") +#open_vg13() +# +#TRY.write(-8.05) +#TRZ.write(37.35) +# +# +#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='REF-LiMn2O4_Survey', folder='XAS/2021/2021_03/REF-LiMn2O4/') + +##Manganese 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=630, end=670, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='REF-LiMn2O4_Mn', folder='XAS/2021/2021_03/REF-LiMn2O4/') +# +# +##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='REF-LiMn2O4_O', folder='XAS/2021/2021_03/REF-LiMn2O4/') +# +# +#time.sleep(1) + + + + + + +#####Sample REF-MnO2 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/REF-MnO2/") +#open_vg13() +# +#TRY.write(7.45) +#TRZ.write(42.6) +# +# +#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', 9) +# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='REF-MnO2_Survey', folder='XAS/2021/2021_03/REF-MnO2/') +# +##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='REF-MnO2_Mn', folder='XAS/2021/2021_03/REF-MnO2/') +# +# +##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='REF-MnO2_O', folder='XAS/2021/2021_03/REF-MnO2/') +# +# +#time.sleep(1) +# +# + + + + +#####Sample REF-Mn2O3 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/REF-Mn2O3/") +#open_vg13() +# +#TRY.write(-8.05) +#TRZ.write(42.6) +# +# +#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', 9) +# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='REF-Mn2O3_Survey', folder='XAS/2021/2021_03/REF-Mn2O3/') +# +##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='REF-Mn2O3_Mn', folder='XAS/2021/2021_03/REF-Mn2O3/') +# +# +##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='REF-Mn2O3_O', folder='XAS/2021/2021_03/REF-Mn2O3/') +# +# +#time.sleep(1) +# +# +# + + +#####Sample REF-NiO +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/REF-NiO/") +#open_vg13() +# +#TRY.write(2.7) +#TRZ.write(43.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='REF-NiO_Survey', folder='XAS/2021/2021_03/REF-NiO/') +# +##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='REF-NiO_Ni', folder='XAS/2021/2021_03/REF-NiO/') +# +# +# +##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='REF-NiO_O', folder='XAS/2021/2021_03/REF-NiO/') +# +# +#time.sleep(1) +# +# + + +#####Sample REF-CoO +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/REF-CoO/") +#open_vg13() +# +#TRY.write(-4.3) +#TRZ.write(42.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='REF-CoO_Survey', folder='XAS/2021/2021_03/REF-CoO/') +# +##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='REF-CoO_Co', folder='XAS/2021/2021_03/REF-CoO/') +# +##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='REF-CoO_O', folder='XAS/2021/2021_03/REF-CoO/') +# +# +#time.sleep(1) +# +# +## +#####Sample REF-Co3O4 +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/REF-Co3O4/") +#open_vg13() +# +#TRY.write(-1.05) +#TRZ.write(42.85) +# +# +#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='REF-Co3O4_Survey', folder='XAS/2021/2021_03/REF-Co3O4/') +# +##Cobalt 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=772, end=805, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='REF-Co3O4_Co', folder='XAS/2021/2021_03/REF-Co3O4/') +# +##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='REF-Co3O4_O', folder='XAS/2021/2021_03/REF-Co3O4/') +# +# +#time.sleep(1) +# +# +# +# +# +# +# +#####Sample JBF1-1D-OCP +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF1-1D-OCP/") +#open_vg13() +# +#TRY.write(-4.3) +#TRZ.write(30.85) +# +# +#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-1D-OCP_Survey', folder='XAS/2021/2021_03/JBF1-1D-OCP/') +## +##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-1D-OCP_Mn', folder='XAS/2021/2021_03/JBF1-1D-OCP/') +# +# +##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-1D-OCP_O', folder='XAS/2021/2021_03/JBF1-1D-OCP/') +# +##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-1D-OCP_C', folder='XAS/2021/2021_03/JBF1-1D-OCP/') +# +## +#time.sleep(1) +# +## +## +# + +#####Sample JBF2-1D-OCP +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF2-1D-OCP/") +#open_vg13() +# +#TRY.write(-8.05) +#TRZ.write(30.85) +# +# +#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-1D-OCP_Survey', folder='XAS/2021/2021_03/JBF2-1D-OCP/') +# +##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-1D-OCP_Mn', folder='XAS/2021/2021_03/JBF2-1D-OCP/') +# +# +##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-1D-OCP_O', folder='XAS/2021/2021_03/JBF2-1D-OCP/') +# +##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-1D-OCP_C', folder='XAS/2021/2021_03/JBF2-1D-OCP/') +# +# +#time.sleep(1) +# +# +# +# +# +#####Sample JBF5-1D-OCP +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF5-1D-OCP/") +#open_vg13() +# +#TRY.write(0.95) +#TRZ.write(38.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='JBF5-1D-OCP_Survey', folder='XAS/2021/2021_03/JBF5-1D-OCP/') +# +##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-1D-OCP_Mn', folder='XAS/2021/2021_03/JBF5-1D-OCP/') +# +# +##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-1D-OCP_O', folder='XAS/2021/2021_03/JBF5-1D-OCP/') +# +##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-1D-OCP_C', folder='XAS/2021/2021_03/JBF5-1D-OCP/') +# +# +#time.sleep(1) +# +# +# +# +# +## +## +#####Sample JBF3-1D-OCP +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF3-1D-OCP/") +#open_vg13() +# +#TRY.write(9.45) +#TRZ.write(37.35) +# +# +#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-1D-OCP_Survey', folder='XAS/2021/2021_03/JBF3-1D-OCP/') +# +###Cobalt L edge +##nr_loops=8 +##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-1D-OCP_Co', folder='XAS/2021/2021_03/JBF3-1D-OCP/') +## +## +##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='JBF3-1D-OCP_Mn', folder='XAS/2021/2021_03/JBF3-1D-OCP/') +# +##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-1D-OCP_O', folder='XAS/2021/2021_03/JBF3-1D-OCP/') +# +##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-1D-OCP_C', folder='XAS/2021/2021_03/JBF3-1D-OCP/') +# +# +#time.sleep(1) +# +# +# +# +#####Sample JBF4-1D-OCP +#set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/JBF4-1D-OCP/") +#open_vg13() +# +#TRY.write(5.2) +#TRZ.write(37.35) +# +# +#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-1D-OCP_Survey', folder='XAS/2021/2021_03/JBF4-1D-OCP/') +# +##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='JBF4-1D-OCP_Ni', folder='XAS/2021/2021_03/JBF4-1D-OCP/') +# +##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='JBF4-1D-OCP_Mn', folder='XAS/2021/2021_03/JBF4-1D-OCP/') +# +# +##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-1D-OCP_O', folder='XAS/2021/2021_03/JBF4-1D-OCP/') +# +##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='JBF4-1D-OCP_C', folder='XAS/2021/2021_03/JBF4-1D-OCP/') +# +# +#time.sleep(1) + + + + + + + +####Sample Au-Ref +set_exec_pars(path="/sls/X11MA/data/X11MA/Data1/XAS/2021/2021_03/Au-Ref/") +open_vg13() + +TRY.write(-0.3) +TRZ.write(30.1) + + +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', 9) +# otf(start=500, end=900, time=3, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='Au-Ref_Survey', folder='XAS/2021/2021_03/Au-Ref/') +# +##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', 9) +# otf(start=520, end=570, time=2, delay=10, mode='LINEAR', alpha = 0.0, offset=0.0, name='Au-Ref_O', folder='XAS/2021/2021_03/Au-Ref/') +# +# +#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='Au-Ref_C', folder='XAS/2021/2021_03/Au-Ref/') + + +time.sleep(1) + + + + +close_vg13() + + diff --git a/script/Users/steven/March2021_Holder6.py b/script/Users/steven/March2021_Holder6.py new file mode 100644 index 0000000..79da2fe --- /dev/null +++ b/script/Users/steven/March2021_Holder6.py @@ -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() + + diff --git a/script/Users/steven/March2021_Holder7.py b/script/Users/steven/March2021_Holder7.py new file mode 100644 index 0000000..2a4f130 --- /dev/null +++ b/script/Users/steven/March2021_Holder7.py @@ -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() + + diff --git a/script/Users/steven/March2021_Holder8.py b/script/Users/steven/March2021_Holder8.py new file mode 100644 index 0000000..249579f --- /dev/null +++ b/script/Users/steven/March2021_Holder8.py @@ -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() + + diff --git a/script/devices/eiger.py b/script/devices/eiger.py index 32037c7..8b9baa5 100755 --- a/script/devices/eiger.py +++ b/script/devices/eiger.py @@ -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() diff --git a/script/local.py b/script/local.py index f8c0c51..687243c 100755 --- a/script/local.py +++ b/script/local.py @@ -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 diff --git a/script/templates/Eiger2Img.py b/script/templates/Eiger2Img.py index 9d452c1..c499cd6 100755 --- a/script/templates/Eiger2Img.py +++ b/script/templates/Eiger2Img.py @@ -41,8 +41,6 @@ set_exec_pars(name=METHOD, path = data_path, format="txt", layout="table", open= #get_context().incrementFileSequentialNumber() -run_index = get_context().getDaySequentialNumber() -max_index=0 def get_image_file_name(cycle=-1, frame_index=0, short_name=False): global max_index @@ -98,6 +96,10 @@ def save_image_file(frame, cycle=-1, frame_index=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: for scan in range(NUMBER_SCANS): @@ -195,6 +197,11 @@ try: 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): get_context().incrementDaySequentialNumber() diff --git a/script/templates/EnergyScan_img.py b/script/templates/EnergyScan_img.py new file mode 100644 index 0000000..898e178 --- /dev/null +++ b/script/templates/EnergyScan_img.py @@ -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() \ No newline at end of file diff --git a/script/templates/EnergyScan_v2.py b/script/templates/EnergyScan_v2.py new file mode 100644 index 0000000..fae0167 --- /dev/null +++ b/script/templates/EnergyScan_v2.py @@ -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() \ No newline at end of file diff --git a/script/test/TestOTF2.py b/script/test/TestOTF2.py new file mode 100644 index 0000000..5dba1be --- /dev/null +++ b/script/test/TestOTF2.py @@ -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/') + + + + diff --git a/script/test/test_eiger.py b/script/test/test_eiger.py index c2a7c1a..0ff292e 100644 --- a/script/test/test_eiger.py +++ b/script/test/test_eiger.py @@ -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)