This commit is contained in:
gobbo_a
2025-01-14 16:18:27 +01:00
parent 8beeb7dbc7
commit 7a0da7c48c
80 changed files with 1697 additions and 589 deletions
+169 -76
View File
@@ -23,36 +23,49 @@
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Component id="panelOutput" max="32767" attributes="0"/>
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="buttonPrepare" alignment="0" min="-2" max="-2" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<Component id="buttonStart" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="buttonAbort" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="panelScanPars" min="-2" max="-2" attributes="0"/>
<Component id="buttonPrepare" alignment="0" min="-2" max="-2" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<Component id="buttonStart" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="buttonAbort" min="-2" max="-2" attributes="0"/>
</Group>
<Component id="buttonRestore" alignment="0" min="-2" max="-2" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="buttonSetPhase" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
<Component id="spinnerPhase" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="55" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="labelUserCalib" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jRadioButtonUserCalib" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
</Group>
<Component id="panelScanPars" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="plot21" pref="475" max="32767" attributes="0"/>
<Component id="plot11" max="32767" attributes="0"/>
<Component id="spinnerPhase" min="-2" pref="92" max="-2" attributes="0"/>
<Component id="spinnerUserCalib" min="-2" pref="92" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="plot12" pref="438" max="32767" attributes="0"/>
<Component id="plot11" pref="390" max="32767" attributes="0"/>
<Component id="plot21" max="32767" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="plot12" pref="390" max="32767" attributes="0"/>
<Component id="plot22" max="32767" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="28" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="panelOutput" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="483" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -61,36 +74,48 @@
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="panelScanPars" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="buttonPrepare" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="buttonSetPhase" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="spinnerPhase" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="buttonStart" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="buttonAbort" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="1" max="-2" attributes="0">
<Component id="plot11" max="32767" attributes="0"/>
<Component id="plot12" max="32767" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="plot22" max="32767" attributes="0"/>
<Component id="plot21" max="32767" attributes="0"/>
</Group>
<EmptySpace min="0" pref="3" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="panelScanPars" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Group type="102" attributes="0">
<Component id="buttonPrepare" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="buttonSetPhase" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="spinnerPhase" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="buttonStart" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="buttonAbort" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="buttonRestore" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="labelUserCalib" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="spinnerUserCalib" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<Component id="jRadioButtonUserCalib" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="panelOutput" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="19" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -111,42 +136,71 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="labelStop" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="labelStart" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="labelSamples" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="labelStep" alignment="1" min="-2" max="-2" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="1" attributes="0">
<Component id="labelThreshold" min="-2" max="-2" attributes="0"/>
<Component id="labelLatency" min="-2" max="-2" attributes="0"/>
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="labelStation" min="-2" max="-2" attributes="0"/>
<Component id="labelBunch" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="labelScreen" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="spinnerStation" max="32767" attributes="0"/>
<Component id="spinnerBunch" max="32767" attributes="0"/>
<Component id="spinnerScreen" alignment="0" max="32767" attributes="0"/>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="labelSamples" alignment="1" min="-2" max="-2" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="1" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="labelStop" min="-2" max="-2" attributes="0"/>
<Component id="labelStart" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
<Component id="labelStep" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="labelLatency" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="labelThreshold" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="124" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="spinnerLatency" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerSamples" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerStep" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerStop" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerStart" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerThreshold" alignment="1" max="32767" attributes="0"/>
</Group>
</Group>
<Component id="labelStation" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="labelBunch" alignment="1" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="spinnerStart" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerStation" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerBunch" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerThreshold" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerLatency" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerSamples" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerStep" alignment="0" max="32767" attributes="0"/>
<Component id="spinnerStop" alignment="0" max="32767" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="spinnerStation" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="labelStation" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="11" max="32767" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="spinnerBunch" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="labelBunch" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="spinnerScreen" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="labelScreen" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="spinnerStart" alignment="3" min="-2" max="-2" attributes="0"/>
@@ -178,15 +232,6 @@
<Component id="spinnerThreshold" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="spinnerStation" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="labelStation" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="spinnerBunch" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="labelBunch" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
</DimensionLayout>
@@ -229,7 +274,7 @@
<Component class="javax.swing.JSpinner" name="spinnerSamples">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="10" maximum="100" minimum="1" numberType="java.lang.Integer" stepSize="1" type="number"/>
<SpinnerModel initial="5" maximum="100" minimum="1" numberType="java.lang.Integer" stepSize="1" type="number"/>
</Property>
</Properties>
</Component>
@@ -260,7 +305,7 @@
<Component class="javax.swing.JSpinner" name="spinnerThreshold">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="7000" maximum="50000" minimum="0" numberType="java.lang.Integer" stepSize="1" type="number"/>
<SpinnerModel initial="250" maximum="50000" minimum="0" numberType="java.lang.Integer" stepSize="1" type="number"/>
</Property>
</Properties>
</Component>
@@ -279,6 +324,9 @@
</SpinnerModel>
</Property>
</Properties>
<Events>
<EventHandler event="stateChanged" listener="javax.swing.event.ChangeListener" parameters="javax.swing.event.ChangeEvent" handler="spinnerStationStateChanged"/>
</Events>
</Component>
<Component class="javax.swing.JSpinner" name="spinnerBunch">
<Properties>
@@ -295,6 +343,25 @@
<Property name="text" type="java.lang.String" value="Bunch:"/>
</Properties>
</Component>
<Component class="javax.swing.JSpinner" name="spinnerScreen">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel type="list">
<ListItem value="SARCL01-DSCR170"/>
<ListItem value="SARCL02-DSCR280"/>
<ListItem value="SATBD01-DSCR120"/>
<ListItem value="SATBD02-DSCR050"/>
<ListItem value="SINDI02-DSCR075"/>
<ListItem value="simulation"/>
</SpinnerModel>
</Property>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="labelScreen">
<Properties>
<Property name="text" type="java.lang.String" value="Screen:"/>
</Properties>
</Component>
</SubComponents>
</Container>
<Component class="ch.psi.pshell.plot.LinePlotJFree" name="plot11">
@@ -355,7 +422,7 @@
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jTextAreaOutput" max="32767" attributes="0"/>
<Component id="jTextAreaOutput" pref="621" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
@@ -363,7 +430,7 @@
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jTextAreaOutput" pref="142" max="32767" attributes="0"/>
<Component id="jTextAreaOutput" pref="134" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
@@ -396,5 +463,31 @@
<Property name="title" type="java.lang.String" value=""/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="buttonRestore">
<Properties>
<Property name="text" type="java.lang.String" value="Restore"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="RestoreActionPerformed"/>
</Events>
<AuxValues>
<AuxValue name="JavaCodeGenerator_SerializeTo" type="java.lang.String" value="BunchLength_buttonRestore"/>
</AuxValues>
</Component>
<Component class="javax.swing.JLabel" name="labelUserCalib">
<Properties>
<Property name="text" type="java.lang.String" value="User calib. (mm/deg):"/>
<Property name="toolTipText" type="java.lang.String" value=""/>
</Properties>
</Component>
<Component class="javax.swing.JRadioButton" name="jRadioButtonUserCalib">
</Component>
<Component class="javax.swing.JSpinner" name="spinnerUserCalib">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="1.0" maximum="100.0" minimum="0.01" numberType="java.lang.Double" stepSize="0.1" type="number"/>
</Property>
</Properties>
</Component>
</SubComponents>
</Form>
+209 -69
View File
@@ -2,6 +2,7 @@
* Copyright (c) 2014-2017 Paul Scherrer Institute. All rights reserved.
*/
import ch.psi.pshell.core.Context;
import ch.psi.pshell.plot.LinePlot;
import ch.psi.pshell.plot.LinePlotSeries;
import ch.psi.pshell.ui.Panel;
@@ -9,7 +10,10 @@ import ch.psi.utils.State;
import ch.psi.utils.swing.SwingUtils;
import java.awt.Color;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.script.ScriptException;
import javax.swing.JSpinner;
/**
@@ -36,6 +40,7 @@ public class BunchLength extends Panel {
buttonAbort.setEnabled(state.isProcessing());
boolean enabled = (state == State.Ready);
buttonPrepare.setEnabled(enabled);
buttonRestore.setEnabled(enabled);
buttonSetPhase.setEnabled(enabled);
buttonStart.setEnabled(enabled);
spinnerStart.setEnabled(enabled);
@@ -46,6 +51,10 @@ public class BunchLength extends Panel {
spinnerThreshold.setEnabled(enabled);
spinnerStation.setEnabled(enabled);
spinnerBunch.setEnabled(enabled);
spinnerScreen.setEnabled(enabled);
spinnerPhase.setEnabled(enabled);
jRadioButtonUserCalib.setEnabled(enabled);
spinnerUserCalib.setEnabled(enabled);
}
@Override
@@ -56,6 +65,43 @@ public class BunchLength extends Panel {
@Override
protected void doUpdate() {
}
void updateDefaults() throws Exception{
this.run("Tools/BunchLengthTDSdata.py", null, true);
String station=spinnerStation.getValue().toString();
Map tdsData = (Map)this.getGlobalVar("tds_data");
Map stationData = (Map)tdsData.get(station);
Map defaults = (Map)stationData.getOrDefault("DEFAULTS", new HashMap());
Number start = (Number)defaults.getOrDefault("Start", null);
Number stop = (Number)defaults.getOrDefault("Stop", null);
Number step = (Number)defaults.getOrDefault("Step", null);
Number nb = (Number)defaults.getOrDefault("Nb", null);
Number lat = (Number)defaults.getOrDefault("Lat", null);
Number thr = (Number)defaults.getOrDefault("Thr", null);
String scr = (String)defaults.getOrDefault("Scr", null);
if (start!=null){
spinnerStart.setValue(start);
}
if (stop!=null){
spinnerStop.setValue(stop);
}
if (step!=null){
spinnerStep.setValue(step);
}
if (nb!=null){
spinnerSamples.setValue(nb);
}
if (lat!=null){
spinnerLatency.setValue(lat);
}
if (thr!=null){
spinnerThreshold.setValue(thr);
}
if (scr!=null){
spinnerScreen.setValue(scr);
}
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
@@ -78,6 +124,8 @@ public class BunchLength extends Panel {
spinnerStation = new javax.swing.JSpinner();
spinnerBunch = new javax.swing.JSpinner();
labelBunch = new javax.swing.JLabel();
spinnerScreen = new javax.swing.JSpinner();
labelScreen = new javax.swing.JLabel();
plot11 = new ch.psi.pshell.plot.LinePlotJFree();
buttonStart = new javax.swing.JButton();
buttonAbort = new javax.swing.JButton();
@@ -89,6 +137,10 @@ public class BunchLength extends Panel {
plot21 = new ch.psi.pshell.plot.LinePlotJFree();
plot12 = new ch.psi.pshell.plot.LinePlotJFree();
plot22 = new ch.psi.pshell.plot.LinePlotJFree();
buttonRestore = new javax.swing.JButton();
labelUserCalib = new javax.swing.JLabel();
jRadioButtonUserCalib = new javax.swing.JRadioButton();
spinnerUserCalib = new javax.swing.JSpinner();
setPreferredSize(new java.awt.Dimension(737, 445));
@@ -106,7 +158,7 @@ public class BunchLength extends Panel {
labelSamples.setText("Nb samples:");
spinnerSamples.setModel(new javax.swing.SpinnerNumberModel(10, 1, 100, 1));
spinnerSamples.setModel(new javax.swing.SpinnerNumberModel(5, 1, 100, 1));
labelLatency.setText("Latency:");
@@ -116,50 +168,80 @@ public class BunchLength extends Panel {
labelThreshold.setText("Threshold:");
spinnerThreshold.setModel(new javax.swing.SpinnerNumberModel(7000, 0, 50000, 1));
spinnerThreshold.setModel(new javax.swing.SpinnerNumberModel(250, 0, 50000, 1));
labelStation.setText("TDS Station:");
spinnerStation.setModel(new javax.swing.SpinnerListModel(new String[] {"S30CB14", "SATMA02", "SINDI01"}));
spinnerStation.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
spinnerStationStateChanged(evt);
}
});
spinnerBunch.setModel(new javax.swing.SpinnerListModel(new String[] {"Bunch1", "Bunch2"}));
labelBunch.setText("Bunch:");
spinnerScreen.setModel(new javax.swing.SpinnerListModel(new String[] {"SARCL01-DSCR170", "SARCL02-DSCR280", "SATBD01-DSCR120", "SATBD02-DSCR050", "SINDI02-DSCR075", "simulation"}));
labelScreen.setText("Screen:");
javax.swing.GroupLayout panelScanParsLayout = new javax.swing.GroupLayout(panelScanPars);
panelScanPars.setLayout(panelScanParsLayout);
panelScanParsLayout.setHorizontalGroup(
panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelScanParsLayout.createSequentialGroup()
.addGap(0, 0, 0)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(labelStop, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(labelStart, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(labelSamples, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(labelStep, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelScanParsLayout.createSequentialGroup()
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(labelThreshold)
.addComponent(labelLatency))
.addGap(2, 2, 2)))
.addComponent(labelStation)
.addComponent(labelBunch, javax.swing.GroupLayout.Alignment.TRAILING))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(spinnerStart)
.addComponent(spinnerStation)
.addComponent(spinnerBunch)
.addComponent(spinnerThreshold)
.addComponent(spinnerLatency)
.addComponent(spinnerSamples)
.addComponent(spinnerStep)
.addComponent(spinnerStop))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(panelScanParsLayout.createSequentialGroup()
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(labelStation)
.addComponent(labelBunch)
.addComponent(labelScreen))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(spinnerStation)
.addComponent(spinnerBunch)
.addComponent(spinnerScreen)))
.addGroup(panelScanParsLayout.createSequentialGroup()
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(labelSamples, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(panelScanParsLayout.createSequentialGroup()
.addGap(1, 1, 1)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(labelStop)
.addComponent(labelStart))))
.addComponent(labelStep)
.addComponent(labelLatency)
.addComponent(labelThreshold))
.addGap(124, 124, 124)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(spinnerLatency)
.addComponent(spinnerSamples)
.addComponent(spinnerStep)
.addComponent(spinnerStop)
.addComponent(spinnerStart)
.addComponent(spinnerThreshold, javax.swing.GroupLayout.Alignment.TRAILING))))
.addGap(0, 0, 0))
);
panelScanParsLayout.setVerticalGroup(
panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelScanParsLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(spinnerStation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(labelStation))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(spinnerBunch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(labelBunch))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(spinnerScreen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(labelScreen))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(spinnerStart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(labelStart))
@@ -183,14 +265,7 @@ public class BunchLength extends Panel {
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(labelThreshold)
.addComponent(spinnerThreshold, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(spinnerStation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(labelStation))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(panelScanParsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(spinnerBunch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(labelBunch)))
.addContainerGap())
);
plot11.setTitle("");
@@ -237,13 +312,13 @@ public class BunchLength extends Panel {
panelOutputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelOutputLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jTextAreaOutput)
.addComponent(jTextAreaOutput, javax.swing.GroupLayout.DEFAULT_SIZE, 621, Short.MAX_VALUE)
.addContainerGap())
);
panelOutputLayout.setVerticalGroup(
panelOutputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelOutputLayout.createSequentialGroup()
.addComponent(jTextAreaOutput, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
.addComponent(jTextAreaOutput, javax.swing.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE)
.addContainerGap())
);
@@ -253,64 +328,95 @@ public class BunchLength extends Panel {
plot22.setTitle("");
buttonRestore.setText("Restore");
buttonRestore.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RestoreActionPerformed(evt);
}
});
labelUserCalib.setText("User calib. (mm/deg):");
labelUserCalib.setToolTipText("");
spinnerUserCalib.setModel(new javax.swing.SpinnerNumberModel(1.0d, 0.01d, 100.0d, 0.1d));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(panelOutput, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(panelScanPars, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(buttonPrepare)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(buttonPrepare)
.addGroup(layout.createSequentialGroup()
.addComponent(buttonStart)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(buttonAbort))
.addComponent(buttonStart)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(buttonAbort))
.addComponent(buttonRestore)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(buttonSetPhase)
.addGap(0, 0, 0)
.addComponent(spinnerPhase, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(panelScanPars, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGap(55, 55, 55))
.addGroup(layout.createSequentialGroup()
.addComponent(labelUserCalib)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jRadioButtonUserCalib)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(plot21, javax.swing.GroupLayout.DEFAULT_SIZE, 475, Short.MAX_VALUE)
.addComponent(plot11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(spinnerPhase, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(spinnerUserCalib, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(plot12, javax.swing.GroupLayout.DEFAULT_SIZE, 438, Short.MAX_VALUE)
.addComponent(plot11, javax.swing.GroupLayout.DEFAULT_SIZE, 390, Short.MAX_VALUE)
.addComponent(plot21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(plot12, javax.swing.GroupLayout.DEFAULT_SIZE, 390, Short.MAX_VALUE)
.addComponent(plot22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(28, 28, 28))
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addComponent(panelOutput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 483, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(panelScanPars, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(buttonPrepare)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buttonSetPhase)
.addComponent(spinnerPhase, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buttonStart)
.addComponent(buttonAbort)))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(plot11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(plot12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGap(0, 0, 0)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(plot22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(plot21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(panelOutput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(19, Short.MAX_VALUE))
.addComponent(plot21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 3, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addComponent(panelScanPars, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(buttonPrepare)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buttonSetPhase)
.addComponent(spinnerPhase, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buttonStart)
.addComponent(buttonAbort))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(buttonRestore)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(labelUserCalib)
.addComponent(spinnerUserCalib, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jRadioButtonUserCalib))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addComponent(panelOutput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
);
panelScanPars.getAccessibleContext().setAccessibleDescription("");
@@ -326,6 +432,9 @@ public class BunchLength extends Panel {
parameters.add(spinnerThreshold.getValue());
parameters.add(spinnerStation.getValue());
parameters.add(spinnerBunch.getValue());
parameters.add(spinnerScreen.getValue());
parameters.add(jRadioButtonUserCalib.isSelected());
parameters.add(spinnerUserCalib.getValue());
parameters.add(plot11);
parameters.add(plot12);
parameters.add(plot21);
@@ -411,20 +520,49 @@ public class BunchLength extends Panel {
}
}//GEN-LAST:event_buttonSetPhaseActionPerformed
private void RestoreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RestoreActionPerformed
ArrayList parameters = new ArrayList();
parameters.add(spinnerStation.getValue());
try {
runAsync("Tools/BunchLengthRestore", parameters).handle((ret, ex) -> {
if (ex != null) {
String message = "Exception executing scan: " + ex;
getLogger().info(message);
showException((Exception) ex);
}
return ret;
});
} catch (Exception ex) {
showException(ex);
}
}//GEN-LAST:event_RestoreActionPerformed
private void spinnerStationStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerStationStateChanged
try {
updateDefaults();
} catch (Exception ex) {
showException(ex);
}
}//GEN-LAST:event_spinnerStationStateChanged
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton buttonAbort;
private javax.swing.JButton buttonPrepare;
private javax.swing.JButton buttonRestore;
private javax.swing.JButton buttonSetPhase;
private javax.swing.JButton buttonStart;
private javax.swing.JRadioButton jRadioButtonUserCalib;
private javax.swing.JTextArea jTextAreaOutput;
private javax.swing.JLabel labelBunch;
private javax.swing.JLabel labelLatency;
private javax.swing.JLabel labelSamples;
private javax.swing.JLabel labelScreen;
private javax.swing.JLabel labelStart;
private javax.swing.JLabel labelStation;
private javax.swing.JLabel labelStep;
private javax.swing.JLabel labelStop;
private javax.swing.JLabel labelThreshold;
private javax.swing.JLabel labelUserCalib;
private javax.swing.JPanel panelOutput;
private javax.swing.JPanel panelScanPars;
private ch.psi.pshell.plot.LinePlotJFree plot11;
@@ -435,10 +573,12 @@ public class BunchLength extends Panel {
private javax.swing.JSpinner spinnerLatency;
private javax.swing.JSpinner spinnerPhase;
private javax.swing.JSpinner spinnerSamples;
private javax.swing.JSpinner spinnerScreen;
private javax.swing.JSpinner spinnerStart;
private javax.swing.JSpinner spinnerStation;
private javax.swing.JSpinner spinnerStep;
private javax.swing.JSpinner spinnerStop;
private javax.swing.JSpinner spinnerThreshold;
private javax.swing.JSpinner spinnerUserCalib;
// End of variables declaration//GEN-END:variables
}
+5 -3
View File
@@ -314,6 +314,7 @@ public class WireScan extends Panel {
}
JDialog dlgRaw;
void showBlmRawData(String blm){
try {
if ((blm==null) || (blm.isEmpty())){
@@ -324,10 +325,11 @@ public class WireScan extends Panel {
//dev.setPolling(1000);
dev.setMonitored(true);
dev.initialize();
DeviceValueChart chart = new DeviceValueChart();
JDialog dlg = SwingUtils.showDialog((Window)this.getTopLevel(), blm, new Dimension(600,400), chart);
DeviceValueChart chart = new DeviceValueChart();
dlgRaw= SwingUtils.showDialog((Window)this.getTopLevel(), blm, new Dimension(600,400), chart);
chart.setDevice(dev);
dlg.addWindowListener(new WindowAdapter() {
chart.setInterval(200);
dlgRaw.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
try {
+59
View File
@@ -0,0 +1,59 @@
javax.script.ScriptException: Exception: Scan didn't conmplete in <script> at line number 471
at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:222)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:59)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:64)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
at ch.psi.pshell.scripting.Interpreter.evalFile(Interpreter.java:139)
at ch.psi.pshell.scripting.ScriptManager.evalFile(ScriptManager.java:248)
at ch.psi.pshell.core.Context.lambda$evalFile$11(Context.java:1906)
at ch.psi.pshell.core.Context.runInInterpreterThread(Context.java:1433)
at ch.psi.pshell.core.Context.evalFile(Context.java:1900)
at ch.psi.pshell.core.Context.evalFile(Context.java:1875)
at ch.psi.pshell.core.Context.lambda$evalFileAsync$5(Context.java:1570)
at ch.psi.utils.Threading.lambda$getFuture$0(Threading.java:207)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:835)
Caused by: Traceback (most recent call last):
File "<script>", line 471, in <module>
File "<script>", line 278, in do_scan
Exception: Scan didn't conmplete
at org.python.core.PyException.doRaise(PyException.java:211)
at org.python.core.Py.makeException(Py.java:1654)
at org.python.core.Py.makeException(Py.java:1658)
at org.python.core.Py.makeException(Py.java:1662)
at org.python.core.Py.makeException(Py.java:1666)
at org.python.pycode._pyx3270.f$0(<script>:515)
at org.python.pycode._pyx3270.call_function(<script>)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1703)
at org.python.core.__builtin__.eval(__builtin__.java:497)
at org.python.core.__builtin__.eval(__builtin__.java:501)
at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:255)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:57)
... 14 more
12/02/24 15:00:37.804 dispatcher.addStream Fine Creating stream from: {"sendBehavior":{"buildChannelConfig":"at-startup","strategy":"complete-all
"},"mapping":{"incomplete":"fill-null"},"streamType":"pub_sub",
"channels":
[{"offset":0,"name":"SINDI01-DWSC090:ENC_1_BS","modulo":10},
{"offset":0,"name":"SINDI02-DBLM085:LOSS_SIGNAL_RAW","modulo":10},
{"offset":0,"name":"SINDI02-DBLM025:B1_LOSS","modulo":10},
{"offset":0,"name":"SINDI01-DBPM060:X1","modulo":10},
{"offset":0,"name":"SINDI01-DBPM060:Y1","modulo":10},
{"offset":0,"name":"SIN-CVME-TIFGUN-EVR0:BUNCH-1-OK","modulo":10},
{"offset":0,"name":"SINDI01-DWSC090:CURR_CYCL","modulo":10}
,{"offset":0,"name":"SINDI02-DBLM085:B1_LOSS","modulo":10},
{"offset":0,"name":"SINDI01-DBPM060:Q1","modulo":10},
{"offset":0,"name":"SINDI02-DBPM010:Y1","modulo":10},{"offset":0,"name":"SINDI02-DBPM010:X1","modulo":10},{"offset":0,"name":"SINDI02-DBPM010:Q1","modulo":10},{"offset":0,"name":"SINDI02-DBLM025:LOSS_SIGNAL_RAW","modulo":10},{"offset":0,"name":" ","modulo":10},{"offset":0,"name":"SINDI02-DBLM025:WS_RUNNING","modulo":10}],"channelValidation":{"inconsistency":"adjust-global"}}
run ("Tools/dispatcher")
get_dispatcher_channel_info("SINDI02-DBLM025:B1_LOSS_RAW")