lemAutoRun
1.0
|
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include <QCoreApplication>
#include <QFile>
#include <QFileInfo>
#include <QDateTime>
#include <QStringList>
#include <QMapIterator>
#include <QElapsedTimer>
#include <QXmlStreamAttributes>
#include <QTextStream>
#include "lemAutoRun.h"
#include "PLemAutoRun.h"
Go to the source code of this file.
Macros | |
#define | CRYO_NO -1 |
no cryo in use More... | |
#define | CRYO_KONTI 0 |
Konti cryo in use. More... | |
#define | CRYO_LOWTEMP 1 |
LowTemp cryo in use. More... | |
#define | CRYO_OVEN_OMEGA 2 |
Oven in use, controlled by Omega Controller. More... | |
#define | RUN_STOPPED 1 |
MIDAS run stopped tag. More... | |
#define | RUN_PAUSED 2 |
MIDAS run paused tag. More... | |
#define | RUN_RUNNING 3 |
MIDAS run active tag. More... | |
#define | BPVX 0 |
BPVX label. More... | |
#define | BPVY 1 |
BPVY label. More... | |
#define | BPV_CLOSE 3 |
closing command for BPVX/Y More... | |
#define | BPV_OPEN 2 |
opening command for BPVX/Y More... | |
#define | BPVX_ENABLED 0 |
ODB offset for BPVX enabled flag (output) More... | |
#define | BPVX_SET 1 |
ODB offset for BPVX set cmd (output) More... | |
#define | BPVY_ENABLED 2 |
ODB offset for BPVY enabled flag (output) More... | |
#define | BPVY_SET 3 |
ODB offset for BPVY set cmd (output) More... | |
#define | BPVX_STATE 25 |
ODB offset for BPVX state (input) More... | |
#define | BPVY_STATE 26 |
ODB offset for BPVY state (input) More... | |
#define | BPV_STATE_OPEN 5120 |
BPVX/Y open. More... | |
#define | BPV_STATE_CLOSED 3072 |
BPVX/Y closed. More... | |
#define | BPV_STATE_LOCKED 2048 |
BPVX/Y locked. More... | |
#define | SC_VENT_ENABLED 6 |
ODB offset for SC vent enable flag (output) More... | |
#define | SC_VENT_CMD 7 |
ODB offset for SC vent command tag (output) More... | |
#define | LS_CTRL_PID 1 |
LS340 in manual PID mode or LS336 in closed loop PID mode. More... | |
#define | LS_CTRL_ZONE 2 |
LS340/LS336 in table driven PID mode (zone settings) More... | |
#define | LS340_INPUT_CF1 0 |
ODB Offset for the cold finger 1 sensor. More... | |
#define | LS340_INPUT_CF2 1 |
ODB Offset for the cold finger 2 sensor. More... | |
#define | LS340_INPUT_PRESSURE 2 |
ODB Offset for the He pressure before the bronkhorst. More... | |
#define | LS340_INPUT_HEATER 7 |
ODB Offset for the heater read back. More... | |
#define | LS340_INPUT_SETPOINT 8 |
ODB Offset for the setpoint read back. More... | |
#define | LS340_INPUT_PID_P 9 |
ODB Offset for the P value of the PID (read back) More... | |
#define | LS340_INPUT_PID_I 10 |
ODB Offset for the I value of the PID (read back) More... | |
#define | LS340_INPUT_PID_D 11 |
ODB Offset for the D value of the PID (read back) More... | |
#define | LS340_INPUT_HEATER_RANGE 12 |
ODB Offset for the heater range read back. More... | |
#define | LS340_INPUT_HEATER_MODE 13 |
ODB Offset for the heater control mode read back. More... | |
#define | LS340_INPUT_RAMP 14 |
ODB Offset for the demand temperature ramping read back. More... | |
#define | LS340_OUTPUT_REMOTE 0 |
ODB Offset for the remote output flag. More... | |
#define | LS340_OUTPUT_SETPOINT 1 |
ODB Offset for the setpoint. More... | |
#define | LS340_OUTPUT_PID_P 2 |
ODB Offset for P output. More... | |
#define | LS340_OUTPUT_PID_I 3 |
ODB Offset for I output. More... | |
#define | LS340_OUTPUT_PID_D 4 |
ODB Offset for D output. More... | |
#define | LS340_OUTPUT_HEATER_RANGE 5 |
ODB Offset for the heater range. More... | |
#define | LS340_OUTPUT_HEATER_MODE 6 |
ODB Offset for the heater control mode. More... | |
#define | LS340_OUTPUT_RAMP 7 |
ODB Offset for the demand temperature ramping. More... | |
#define | LS336_INPUT_CF1 0 |
ODB Offset for the cold finger 1 sensor. More... | |
#define | LS336_INPUT_CF2 1 |
ODB Offset for the cold finger 2 sensor. More... | |
#define | LS336_INPUT_PRESSURE 4 |
ODB Offset for the He pressure before the bronkhorst. More... | |
#define | LS336_INPUT_HEATER 8 |
ODB Offset for the heater L1 read back. More... | |
#define | LS336_INPUT_SETPOINT 9 |
ODB Offset for the setpoint L1 read back. More... | |
#define | LS336_INPUT_PID_P 10 |
ODB Offset for the P value of the PID L1 (read back) More... | |
#define | LS336_INPUT_PID_I 11 |
ODB Offset for the I value of the PID L1 (read back) More... | |
#define | LS336_INPUT_PID_D 12 |
ODB Offset for the D value of the PID L1 (read back) More... | |
#define | LS336_INPUT_HEATER_RANGE 13 |
ODB Offset for the heater range read back. More... | |
#define | LS336_INPUT_HEATER_MODE 14 |
ODB Offset for the heater control mode read back. More... | |
#define | LS336_INPUT_RAMP 15 |
ODB Offset for the demand temperature ramping read back. More... | |
#define | LS336_OUTPUT_SETPOINT 0 |
ODB Offset for the setpoint L1. More... | |
#define | LS336_OUTPUT_PID_P 1 |
ODB Offset for P output L1. More... | |
#define | LS336_OUTPUT_PID_I 2 |
ODB Offset for I output L1. More... | |
#define | LS336_OUTPUT_PID_D 3 |
ODB Offset for D output L1. More... | |
#define | LS336_OUTPUT_HEATER_RANGE 4 |
ODB Offset for the heater range L1. More... | |
#define | LS336_OUTPUT_HEATER_MODE 5 |
ODB Offset for the heater control mode L1. More... | |
#define | LS336_OUTPUT_RAMP 6 |
ODB Offset for the demand temperature ramping L1. More... | |
#define | OMEGA_OVEN_INPUT_TEMP 0 |
ODB Offset for the temperature read back. More... | |
#define | OMEGA_OVEN_INPUT_SETPOINT 6 |
ODB Offset for the setpoint read back. More... | |
#define | OMEGA_OVEN_OUTPUT_SETPOINT 0 |
ODB Offset for the setpoint. More... | |
#define | SM_INPUT_NEEDLEVALVE 0 |
ODB offset for the read_back for the needlevalve. More... | |
#define | SM_OUTPUT_NEEDLEVALVE 0 |
ODB offset for the demand value for the needlevalve. More... | |
#define | SM_MODUS_NEEDLEVALVE 1 |
ODB offset for the modus value for the needlevalve. More... | |
#define | BH_INPUT_FLOW 0 |
ODB Offset for the measured flow value. More... | |
#define | BH_INPUT_VALVE 1 |
ODB Offset for the measured BH valve opening. More... | |
#define | BH_OUTPUT_FLOW 0 |
ODB Offset for the demand flow value. More... | |
#define | SPINT_ROT_OUTPUT_CURRENT 2 |
ODB Offset for the demand current of the Spin Rotator Magnet output. More... | |
#define | SPINT_ROT_INPUT_CURRENT 3 |
ODB Offset for the demand current of the Spin Rotator Magnet output. More... | |
#define | DANFYSIK_INPUT_CURRENT 3 |
ODB Offset for the measured current of the danfysik. More... | |
#define | DANFYSIK_OUTPUT_CURRENT 2 |
ODB Offset for the demand current of the danfysik. More... | |
#define | WEWL_INPUT_STATUS 0 |
ODB Offset for the WEWL status. More... | |
#define | WEWL_INPUT_CURRENT 1 |
ODB Offset for the measured current of the WEWL. More... | |
#define | WEWH_INPUT_STATUS 3 |
ODB Offset for the WEWH status. More... | |
#define | WEWH_INPUT_CURRENT 4 |
ODB Offset for the measured current of the WEWH. More... | |
#define | WEWL_OUTPUT_CMD 0 |
ODB Offset for the WEWL cmd (0=off, 1=on, 2=reset, 3=reset-dsp. More... | |
#define | WEWL_OUTPUT_CURRENT 1 |
ODB Offset for the demand current of the WEWL. More... | |
#define | WEWH_OUTPUT_CMD 2 |
ODB Offset for the WEWH cmd (0=off, 1=on, 2=reset, 3=reset-dsp. More... | |
#define | WEWH_OUTPUT_CURRENT 3 |
ODB Offset for the demand current of the WEWH. More... | |
#define | WEW_SSP_LOCK 4 |
ODB Offset for the WEW-SSP lock. More... | |
#define | HV_FUG_MAX_TRY 5 |
number of HV update trials More... | |
#define | HV_FUG_CHS 16 |
number of HV channels More... | |
#define | HV_FUG_RIGHT_RODS 0 |
ODB Offset for the FUG HV of the right rods of the spin rotator. More... | |
#define | HV_FUG_LEFT_RODS 1 |
ODB Offset for the FUG HV of the left rods of the spin rotator. More... | |
#define | HV_FUG_LEFT_PLATE 2 |
ODB Offset for the FUG HV of the left plate of the spin rotator. More... | |
#define | HV_FUG_RIGHT_PLATE 3 |
ODB Offset for the FUG HV of the right plate of the spin rotator. More... | |
#define | HV_FUG_MOD 4 |
ODB Offset for the FUG HV of the moderator. More... | |
#define | HV_FUG_MIRROR 8 |
ODB Offset for the FUG HV of the mirror. More... | |
#define | HV_FUG_LENSE_2 9 |
ODB Offset for the FUG HV of the lense 2. More... | |
#define | HV_FUG_LENSE_3 10 |
ODB Offset for the FUG HV of the lense 3. More... | |
#define | HV_FUG_RAL 11 |
ODB Offset for the FUG HV of the left ring anode. More... | |
#define | HV_FUG_RAR 12 |
ODB Offset for the FUG HV of the right ring anode. More... | |
#define | HV_FUG_RAT 13 |
ODB Offset for the FUG HV of the top ring anode. More... | |
#define | HV_FUG_RAB 14 |
ODB Offset for the FUG HV of the bottom ring anode. More... | |
#define | HV_FUG_SAMPLE 15 |
ODB Offset for the FUG HV of the sample. More... | |
#define | HV_NHQ_TD_FIRST 0 |
ODB Offset for the NHQ HV of the first element of the TD. More... | |
#define | HV_NHQ_TD_LAST 3 |
ODB Offset for the NHQ HV of the last element of the TD. More... | |
#define | HV_NHQ_MCP1 4 |
ODB Offset for the NHQ HV of the MCP1. More... | |
#define | FOM_CURRENT_MEASURED 0 |
ODB Index of the FOM current reading. More... | |
#define | FOM_VOLTAGE_MEASURED 1 |
ODB Index of the FOM voltage reading. More... | |
#define | FOM_BATTERY 2 |
ODB Index of the FOM battery. More... | |
#define | FOM_CURRENT_DEMAND 0 |
ODB Index of the FOM current setpoint. More... | |
#define | FOM_STANDBY 1 |
ODB Index of the FOM stanby flag. More... | |
#define | BEAMLINE_KV61_DEMAND_CH 26 |
ODB Index of the KV61 demand channel. More... | |
#define | BEAMLINE_KV62_DEMAND_CH 28 |
ODB Index of the KV62 demand channel. More... | |
#define | HTML_LOAD 0 |
html load tag More... | |
#define | HTML_START 1 |
html start tag More... | |
#define | HTML_RUNNING 2 |
html running tag More... | |
#define | HTML_STOP 3 |
html stop tag More... | |
#define | HTML_ABORTED 4 |
html abortion tag More... | |
#define | HTML_ALARM 5 |
html alarm tag More... | |
#define | HTML_WARMUP 6 |
html warmup tag More... | |
#define | HTML_STRANGE 7 |
html strange autorun starting condition tag More... | |
#define | HTML_PARSE_ERROR 8 |
html autorun script parse error tag More... | |
#define | HTML_FATAL 9 |
html fatal error, e.g. no autorun commands present More... | |
#define | TEMP_DEMAND_TEMP 0 |
demand temperature parameter tag More... | |
#define | TEMP_DELTA_T 1 |
delta T parameter tag More... | |
#define | TEMP_STABILITY_TIMEOUT 2 |
stability timeout parameter tag More... | |
#define | TEMP_RAMP 3 |
ramping parameter tag More... | |
#define | TEMP_HEATER_RANGE 4 |
heater range parameter tag More... | |
#define | TEMP_P_PID 5 |
P (PID) parameter tag. More... | |
#define | TEMP_I_PID 6 |
I (PID) parameter tag. More... | |
#define | TEMP_D_PID 7 |
D (PID) parameter tag. More... | |
#define | TEMP_FLOW 8 |
flow parameter tag More... | |
#define | LAR_TT_IDLE 0 |
#define | LAR_TT_FINISHED 1 |
#define | LAR_TT_ABORTED 2 |
#define | LAR_TT_WARMUP 3 |
Functions | |
void | TdHvTripFlagChanged (HNDLE, HNDLE, void *info) |
#define BEAMLINE_KV61_DEMAND_CH 26 |
ODB Index of the KV61 demand channel.
Definition at line 181 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::WarmUp().
#define BEAMLINE_KV62_DEMAND_CH 28 |
ODB Index of the KV62 demand channel.
Definition at line 182 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::WarmUp().
#define BH_INPUT_FLOW 0 |
ODB Offset for the measured flow value.
Definition at line 131 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::CheckTempStability(), and PLemAutoRun::RawVoltageDump().
#define BH_INPUT_VALVE 1 |
ODB Offset for the measured BH valve opening.
Definition at line 132 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SampleTempConsiderNeedleValve().
#define BH_OUTPUT_FLOW 0 |
ODB Offset for the demand flow value.
Definition at line 134 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SampleTempAdjustFlow(), PLemAutoRun::SampleTempConsiderFlow(), PLemAutoRun::SampleTempConsiderNeedleValve(), PLemAutoRun::SetFlow(), PLemAutoRun::SetFlowAndNeedleValve(), PLemAutoRun::SetFlowTweak(), PLemAutoRun::SetTemp(), and PLemAutoRun::WarmUp().
#define BPV_CLOSE 3 |
closing command for BPVX/Y
Definition at line 59 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetBPV(), PLemAutoRun::SetTemp(), PLemAutoRun::SetTempOvenOmega(), and PLemAutoRun::WarmUp().
#define BPV_OPEN 2 |
opening command for BPVX/Y
Definition at line 60 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetBPV(), PLemAutoRun::SetTemp(), and PLemAutoRun::SetTempOvenOmega().
#define BPV_STATE_CLOSED 3072 |
BPVX/Y closed.
Definition at line 68 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::GetBPV(), PLemAutoRun::RunStart(), and PLemAutoRun::SetBPV().
#define BPV_STATE_LOCKED 2048 |
BPVX/Y locked.
Definition at line 69 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::GetBPV(), and PLemAutoRun::SetBPV().
#define BPV_STATE_OPEN 5120 |
BPVX/Y open.
Definition at line 67 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::GetBPV(), PLemAutoRun::SetBPV(), PLemAutoRun::SetTemp(), and PLemAutoRun::SetTempOvenOmega().
#define BPVX 0 |
BPVX label.
Definition at line 57 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::GetBPV(), PLemAutoRun::RunStart(), PLemAutoRun::SetBPV(), PLemAutoRun::SetTemp(), PLemAutoRun::SetTempOvenOmega(), and PLemAutoRun::WarmUp().
#define BPVX_ENABLED 0 |
ODB offset for BPVX enabled flag (output)
Definition at line 61 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetBPV().
#define BPVX_SET 1 |
ODB offset for BPVX set cmd (output)
Definition at line 62 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetBPV().
#define BPVX_STATE 25 |
ODB offset for BPVX state (input)
Definition at line 65 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::GetBPV(), and PLemAutoRun::SetBPV().
#define BPVY 1 |
BPVY label.
Definition at line 58 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::GetBPV(), PLemAutoRun::RunStart(), PLemAutoRun::SetBPV(), and PLemAutoRun::WarmUp().
#define BPVY_ENABLED 2 |
ODB offset for BPVY enabled flag (output)
Definition at line 63 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetBPV().
#define BPVY_SET 3 |
ODB offset for BPVY set cmd (output)
Definition at line 64 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetBPV().
#define BPVY_STATE 26 |
ODB offset for BPVY state (input)
Definition at line 66 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::GetBPV(), and PLemAutoRun::SetBPV().
#define CRYO_KONTI 0 |
Konti cryo in use.
Definition at line 48 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun(), PLemAutoRun::ReadSampleCryoXML(), PLemAutoRun::SetTemp(), and PLemAutoRun::SetWait().
#define CRYO_LOWTEMP 1 |
LowTemp cryo in use.
Definition at line 49 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ReadSampleCryoXML(), and PLemAutoRun::SetTemp().
#define CRYO_NO -1 |
no cryo in use
Definition at line 47 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::PLemAutoRun(), and PLemAutoRun::ReadSampleCryoXML().
#define CRYO_OVEN_OMEGA 2 |
Oven in use, controlled by Omega Controller.
Definition at line 50 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun(), PLemAutoRun::ReadSampleCryoXML(), and PLemAutoRun::SetWait().
#define DANFYSIK_INPUT_CURRENT 3 |
ODB Offset for the measured current of the danfysik.
Definition at line 139 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetFieldDanfysik(), and PLemAutoRun::SetTitle().
#define DANFYSIK_OUTPUT_CURRENT 2 |
ODB Offset for the demand current of the danfysik.
Definition at line 141 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussDanfysik(), and PLemAutoRun::SetFieldDanfysik().
#define FOM_BATTERY 2 |
ODB Index of the FOM battery.
Definition at line 176 of file PLemAutoRun.cpp.
#define FOM_CURRENT_DEMAND 0 |
ODB Index of the FOM current setpoint.
Definition at line 178 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetFOM().
#define FOM_CURRENT_MEASURED 0 |
ODB Index of the FOM current reading.
Definition at line 174 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetFOM().
#define FOM_STANDBY 1 |
ODB Index of the FOM stanby flag.
Definition at line 179 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetFOM().
#define FOM_VOLTAGE_MEASURED 1 |
ODB Index of the FOM voltage reading.
Definition at line 175 of file PLemAutoRun.cpp.
#define HTML_ABORTED 4 |
html abortion tag
Definition at line 189 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ChangeSampleChamberHV(), PLemAutoRun::DegaussDanfysik(), PLemAutoRun::DegaussSpinRot(), PLemAutoRun::DegaussWEW(), PLemAutoRun::ExecAutoRun(), PLemAutoRun::GetDemandHVSampleChamber(), PLemAutoRun::ReceivedShutdownCmd(), PLemAutoRun::RunStart(), PLemAutoRun::RunStop(), PLemAutoRun::RunStopCheck(), PLemAutoRun::SetFieldDanfysik(), PLemAutoRun::SetFieldWEWH(), PLemAutoRun::SetFieldWEWL(), PLemAutoRun::SetLSSetpoint(), PLemAutoRun::SetOmegaSetpoint(), PLemAutoRun::SetRA_HV(), PLemAutoRun::SetSampleHV(), PLemAutoRun::SetSpinRot(), PLemAutoRun::SetTemp(), PLemAutoRun::SetTempOvenOmega(), PLemAutoRun::SetTfl(), and PLemAutoRun::UpdateWebPage().
#define HTML_ALARM 5 |
html alarm tag
Definition at line 190 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::CheckMidasAlarms(), and PLemAutoRun::UpdateWebPage().
#define HTML_FATAL 9 |
html fatal error, e.g. no autorun commands present
Definition at line 194 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::UpdateWebPage().
#define HTML_LOAD 0 |
html load tag
Definition at line 185 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::UpdateWebPage().
#define HTML_PARSE_ERROR 8 |
html autorun script parse error tag
Definition at line 193 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::CheckForTransportHvCmd(), PLemAutoRun::ExecAutoRun(), PLemAutoRun::HandleParseError(), PLemAutoRun::LoadHvSettings(), and PLemAutoRun::UpdateWebPage().
#define HTML_RUNNING 2 |
html running tag
Definition at line 187 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun().
#define HTML_START 1 |
html start tag
Definition at line 186 of file PLemAutoRun.cpp.
#define HTML_STOP 3 |
html stop tag
Definition at line 188 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::UpdateWebPage().
#define HTML_STRANGE 7 |
html strange autorun starting condition tag
Definition at line 192 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::UpdateWebPage().
#define HTML_WARMUP 6 |
html warmup tag
Definition at line 191 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::UpdateWebPage(), and PLemAutoRun::WarmUp().
#define HV_FUG_CHS 16 |
number of HV channels
Definition at line 155 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ChangeSampleChamberHV(), PLemAutoRun::DegaussSpinRot(), PLemAutoRun::GetDemandHVSampleChamber(), PLemAutoRun::SetSpinRot(), and PLemAutoRun::WarmUp().
#define HV_FUG_LEFT_PLATE 2 |
ODB Offset for the FUG HV of the left plate of the spin rotator.
Definition at line 158 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussSpinRot(), and PLemAutoRun::SetSpinRot().
#define HV_FUG_LEFT_RODS 1 |
ODB Offset for the FUG HV of the left rods of the spin rotator.
Definition at line 157 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussSpinRot(), and PLemAutoRun::SetSpinRot().
#define HV_FUG_LENSE_2 9 |
ODB Offset for the FUG HV of the lense 2.
Definition at line 162 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetHvOff().
#define HV_FUG_LENSE_3 10 |
ODB Offset for the FUG HV of the lense 3.
Definition at line 163 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetHvOff().
#define HV_FUG_MAX_TRY 5 |
number of HV update trials
Definition at line 154 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ChangeSampleChamberHV(), PLemAutoRun::DegaussSpinRot(), PLemAutoRun::SetRA_HV(), PLemAutoRun::SetSampleHV(), PLemAutoRun::SetSpinRot(), and PLemAutoRun::WarmUp().
#define HV_FUG_MIRROR 8 |
ODB Offset for the FUG HV of the mirror.
Definition at line 161 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetHvOff().
#define HV_FUG_MOD 4 |
ODB Offset for the FUG HV of the moderator.
Definition at line 160 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetHvOff(), and PLemAutoRun::SetTitle().
#define HV_FUG_RAB 14 |
ODB Offset for the FUG HV of the bottom ring anode.
Definition at line 167 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::RunStart(), PLemAutoRun::SetFieldWEWH(), PLemAutoRun::SetFieldWEWL(), PLemAutoRun::SetRA_HV(), and PLemAutoRun::SetTitle().
#define HV_FUG_RAL 11 |
ODB Offset for the FUG HV of the left ring anode.
Definition at line 164 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ChangeSampleChamberHV(), PLemAutoRun::DegaussWEW(), PLemAutoRun::GetDemandHVSampleChamber(), PLemAutoRun::RunStart(), PLemAutoRun::SetFieldWEWH(), PLemAutoRun::SetFieldWEWL(), PLemAutoRun::SetHvOff(), PLemAutoRun::SetRA_HV(), and PLemAutoRun::SetTitle().
#define HV_FUG_RAR 12 |
ODB Offset for the FUG HV of the right ring anode.
Definition at line 165 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::SetRA_HV(), and PLemAutoRun::SetTitle().
#define HV_FUG_RAT 13 |
ODB Offset for the FUG HV of the top ring anode.
Definition at line 166 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::SetRA_HV(), and PLemAutoRun::SetTitle().
#define HV_FUG_RIGHT_PLATE 3 |
ODB Offset for the FUG HV of the right plate of the spin rotator.
Definition at line 159 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussSpinRot(), PLemAutoRun::SetHvOff(), and PLemAutoRun::SetSpinRot().
#define HV_FUG_RIGHT_RODS 0 |
ODB Offset for the FUG HV of the right rods of the spin rotator.
Definition at line 156 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussSpinRot(), PLemAutoRun::SetHvOff(), and PLemAutoRun::SetSpinRot().
#define HV_FUG_SAMPLE 15 |
ODB Offset for the FUG HV of the sample.
Definition at line 168 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::SetHvOff(), PLemAutoRun::SetSampleHV(), and PLemAutoRun::SetTitle().
#define HV_NHQ_MCP1 4 |
ODB Offset for the NHQ HV of the MCP1.
Definition at line 172 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetHvOff().
#define HV_NHQ_TD_FIRST 0 |
ODB Offset for the NHQ HV of the first element of the TD.
Definition at line 170 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetHvOff().
#define HV_NHQ_TD_LAST 3 |
ODB Offset for the NHQ HV of the last element of the TD.
Definition at line 171 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetHvOff().
#define LAR_TT_ABORTED 2 |
Definition at line 210 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun().
#define LAR_TT_FINISHED 1 |
Definition at line 209 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun().
#define LAR_TT_IDLE 0 |
Definition at line 208 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::FeedLiveDataErrors().
#define LAR_TT_WARMUP 3 |
Definition at line 211 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun().
#define LS336_INPUT_CF1 0 |
ODB Offset for the cold finger 1 sensor.
Definition at line 99 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::GetAllKeys().
#define LS336_INPUT_CF2 1 |
ODB Offset for the cold finger 2 sensor.
Definition at line 100 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::GetAllKeys().
#define LS336_INPUT_HEATER 8 |
ODB Offset for the heater L1 read back.
Definition at line 102 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::CheckTempStability(), PLemAutoRun::RawVoltageDump(), and PLemAutoRun::SampleTempAdjustFlow().
#define LS336_INPUT_HEATER_MODE 14 |
ODB Offset for the heater control mode read back.
Definition at line 108 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSMode().
#define LS336_INPUT_HEATER_RANGE 13 |
ODB Offset for the heater range read back.
Definition at line 107 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::RawVoltageDump(), and PLemAutoRun::SampleTempAdjustFlow().
#define LS336_INPUT_PID_D 12 |
ODB Offset for the D value of the PID L1 (read back)
Definition at line 106 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetTemp().
#define LS336_INPUT_PID_I 11 |
ODB Offset for the I value of the PID L1 (read back)
Definition at line 105 of file PLemAutoRun.cpp.
#define LS336_INPUT_PID_P 10 |
ODB Offset for the P value of the PID L1 (read back)
Definition at line 104 of file PLemAutoRun.cpp.
#define LS336_INPUT_PRESSURE 4 |
ODB Offset for the He pressure before the bronkhorst.
Definition at line 101 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::CheckTempStability(), and PLemAutoRun::RawVoltageDump().
#define LS336_INPUT_RAMP 15 |
ODB Offset for the demand temperature ramping read back.
Definition at line 109 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetDemandTempRamping(), PLemAutoRun::SetTemp(), and PLemAutoRun::WarmUp().
#define LS336_INPUT_SETPOINT 9 |
ODB Offset for the setpoint L1 read back.
Definition at line 103 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::CheckTempStability(), PLemAutoRun::RawVoltageDump(), PLemAutoRun::SampleTempConsiderFlow(), PLemAutoRun::SampleTempStable(), PLemAutoRun::SetFlowAndNeedleValve(), PLemAutoRun::SetLSSetpoint(), and PLemAutoRun::SetTemp().
#define LS336_OUTPUT_HEATER_MODE 5 |
ODB Offset for the heater control mode L1.
Definition at line 116 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSMode(), and PLemAutoRun::SetSampleLSZoneSettings().
#define LS336_OUTPUT_HEATER_RANGE 4 |
ODB Offset for the heater range L1.
Definition at line 115 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSHeaterRangeAndPIDs(), and PLemAutoRun::SetSampleLSZoneSettings().
#define LS336_OUTPUT_PID_D 3 |
ODB Offset for D output L1.
Definition at line 114 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSHeaterRangeAndPIDs(), PLemAutoRun::SetSampleLSZoneSettings(), and PLemAutoRun::SetTemp().
#define LS336_OUTPUT_PID_I 2 |
ODB Offset for I output L1.
Definition at line 113 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSHeaterRangeAndPIDs(), and PLemAutoRun::SetSampleLSZoneSettings().
#define LS336_OUTPUT_PID_P 1 |
ODB Offset for P output L1.
Definition at line 112 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSHeaterRangeAndPIDs(), and PLemAutoRun::SetSampleLSZoneSettings().
#define LS336_OUTPUT_RAMP 6 |
ODB Offset for the demand temperature ramping L1.
Definition at line 117 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetDemandTempRamping(), and PLemAutoRun::WarmUp().
#define LS336_OUTPUT_SETPOINT 0 |
ODB Offset for the setpoint L1.
Definition at line 111 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SampleTempAdjustFlow(), PLemAutoRun::SampleTempPrefHeaterOutput(), PLemAutoRun::SampleTempSetNeedleValve(), PLemAutoRun::SampleTempStable(), PLemAutoRun::SetLSSetpoint(), PLemAutoRun::SetSampleLSZoneSettings(), PLemAutoRun::SetTemp(), and PLemAutoRun::WarmUp().
#define LS340_INPUT_CF1 0 |
ODB Offset for the cold finger 1 sensor.
Definition at line 78 of file PLemAutoRun.cpp.
#define LS340_INPUT_CF2 1 |
ODB Offset for the cold finger 2 sensor.
Definition at line 79 of file PLemAutoRun.cpp.
#define LS340_INPUT_HEATER 7 |
ODB Offset for the heater read back.
Definition at line 81 of file PLemAutoRun.cpp.
#define LS340_INPUT_HEATER_MODE 13 |
ODB Offset for the heater control mode read back.
Definition at line 87 of file PLemAutoRun.cpp.
#define LS340_INPUT_HEATER_RANGE 12 |
ODB Offset for the heater range read back.
Definition at line 86 of file PLemAutoRun.cpp.
#define LS340_INPUT_PID_D 11 |
ODB Offset for the D value of the PID (read back)
Definition at line 85 of file PLemAutoRun.cpp.
#define LS340_INPUT_PID_I 10 |
ODB Offset for the I value of the PID (read back)
Definition at line 84 of file PLemAutoRun.cpp.
#define LS340_INPUT_PID_P 9 |
ODB Offset for the P value of the PID (read back)
Definition at line 83 of file PLemAutoRun.cpp.
#define LS340_INPUT_PRESSURE 2 |
ODB Offset for the He pressure before the bronkhorst.
Definition at line 80 of file PLemAutoRun.cpp.
#define LS340_INPUT_RAMP 14 |
ODB Offset for the demand temperature ramping read back.
Definition at line 88 of file PLemAutoRun.cpp.
#define LS340_INPUT_SETPOINT 8 |
ODB Offset for the setpoint read back.
Definition at line 82 of file PLemAutoRun.cpp.
#define LS340_OUTPUT_HEATER_MODE 6 |
ODB Offset for the heater control mode.
Definition at line 96 of file PLemAutoRun.cpp.
#define LS340_OUTPUT_HEATER_RANGE 5 |
ODB Offset for the heater range.
Definition at line 95 of file PLemAutoRun.cpp.
#define LS340_OUTPUT_PID_D 4 |
ODB Offset for D output.
Definition at line 94 of file PLemAutoRun.cpp.
#define LS340_OUTPUT_PID_I 3 |
ODB Offset for I output.
Definition at line 93 of file PLemAutoRun.cpp.
#define LS340_OUTPUT_PID_P 2 |
ODB Offset for P output.
Definition at line 92 of file PLemAutoRun.cpp.
#define LS340_OUTPUT_RAMP 7 |
ODB Offset for the demand temperature ramping.
Definition at line 97 of file PLemAutoRun.cpp.
#define LS340_OUTPUT_REMOTE 0 |
ODB Offset for the remote output flag.
Definition at line 90 of file PLemAutoRun.cpp.
#define LS340_OUTPUT_SETPOINT 1 |
ODB Offset for the setpoint.
Definition at line 91 of file PLemAutoRun.cpp.
#define LS_CTRL_PID 1 |
LS340 in manual PID mode or LS336 in closed loop PID mode.
Definition at line 75 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSMode().
#define LS_CTRL_ZONE 2 |
LS340/LS336 in table driven PID mode (zone settings)
Definition at line 76 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSMode().
#define OMEGA_OVEN_INPUT_SETPOINT 6 |
ODB Offset for the setpoint read back.
Definition at line 121 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetOmegaSetpoint().
#define OMEGA_OVEN_INPUT_TEMP 0 |
ODB Offset for the temperature read back.
Definition at line 120 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::CheckTempStabilityOvenOmega(), PLemAutoRun::SetTempOvenOmega(), and PLemAutoRun::SetTitle().
#define OMEGA_OVEN_OUTPUT_SETPOINT 0 |
ODB Offset for the setpoint.
Definition at line 123 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::CheckTempStabilityOvenOmega(), and PLemAutoRun::SetOmegaSetpoint().
#define RUN_PAUSED 2 |
MIDAS run paused tag.
Definition at line 54 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun().
#define RUN_RUNNING 3 |
MIDAS run active tag.
Definition at line 55 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun(), PLemAutoRun::RunStart(), PLemAutoRun::RunStopCheck(), and PLemAutoRun::WarmUp().
#define RUN_STOPPED 1 |
MIDAS run stopped tag.
Definition at line 53 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::RunStopCheck().
#define SC_VENT_CMD 7 |
ODB offset for SC vent command tag (output)
Definition at line 72 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::WarmUp().
#define SC_VENT_ENABLED 6 |
ODB offset for SC vent enable flag (output)
Definition at line 71 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::WarmUp().
#define SM_INPUT_NEEDLEVALVE 0 |
ODB offset for the read_back for the needlevalve.
Definition at line 126 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SampleTempConsiderNeedleValve().
#define SM_MODUS_NEEDLEVALVE 1 |
ODB offset for the modus value for the needlevalve.
Definition at line 129 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SampleTempConsiderNeedleValve(), PLemAutoRun::SampleTempSetNeedleValve(), and PLemAutoRun::SetTfl().
#define SM_OUTPUT_NEEDLEVALVE 0 |
ODB offset for the demand value for the needlevalve.
Definition at line 128 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SampleTempConsiderNeedleValve(), PLemAutoRun::SampleTempSetNeedleValve(), and PLemAutoRun::SetTfl().
#define SPINT_ROT_INPUT_CURRENT 3 |
ODB Offset for the demand current of the Spin Rotator Magnet output.
Definition at line 137 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussSpinRot(), and PLemAutoRun::SetSpinRot().
#define SPINT_ROT_OUTPUT_CURRENT 2 |
ODB Offset for the demand current of the Spin Rotator Magnet output.
Definition at line 136 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussSpinRot(), and PLemAutoRun::SetSpinRot().
#define TEMP_D_PID 7 |
D (PID) parameter tag.
Definition at line 204 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSHeaterRangeAndPIDs(), and PLemAutoRun::SetLSMode().
#define TEMP_DELTA_T 1 |
delta T parameter tag
Definition at line 198 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetTemp().
#define TEMP_DEMAND_TEMP 0 |
demand temperature parameter tag
Definition at line 197 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetTemp(), and PLemAutoRun::SetTempOvenOmega().
#define TEMP_FLOW 8 |
flow parameter tag
Definition at line 205 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetTemp().
#define TEMP_HEATER_RANGE 4 |
heater range parameter tag
Definition at line 201 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSHeaterRangeAndPIDs(), and PLemAutoRun::SetLSMode().
#define TEMP_I_PID 6 |
I (PID) parameter tag.
Definition at line 203 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSHeaterRangeAndPIDs(), and PLemAutoRun::SetLSMode().
#define TEMP_P_PID 5 |
P (PID) parameter tag.
Definition at line 202 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetLSHeaterRangeAndPIDs(), and PLemAutoRun::SetLSMode().
#define TEMP_RAMP 3 |
ramping parameter tag
Definition at line 200 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetTemp().
#define TEMP_STABILITY_TIMEOUT 2 |
stability timeout parameter tag
Definition at line 199 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::SetTemp(), and PLemAutoRun::SetTempOvenOmega().
#define WEW_SSP_LOCK 4 |
ODB Offset for the WEW-SSP lock.
Definition at line 152 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW().
#define WEWH_INPUT_CURRENT 4 |
ODB Offset for the measured current of the WEWH.
Definition at line 146 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::RunStart(), PLemAutoRun::SetFieldWEWH(), PLemAutoRun::SetFieldWEWL(), and PLemAutoRun::SetTitle().
#define WEWH_INPUT_STATUS 3 |
ODB Offset for the WEWH status.
Definition at line 145 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), and PLemAutoRun::SetFieldWEWL().
#define WEWH_OUTPUT_CMD 2 |
ODB Offset for the WEWH cmd (0=off, 1=on, 2=reset, 3=reset-dsp.
Definition at line 150 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::SetFieldWEWH(), and PLemAutoRun::SetFieldWEWL().
#define WEWH_OUTPUT_CURRENT 3 |
ODB Offset for the demand current of the WEWH.
Definition at line 151 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::SetFieldWEWH(), and PLemAutoRun::SetFieldWEWL().
#define WEWL_INPUT_CURRENT 1 |
ODB Offset for the measured current of the WEWL.
Definition at line 144 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::RunStart(), PLemAutoRun::SetFieldWEWH(), PLemAutoRun::SetFieldWEWL(), and PLemAutoRun::SetTitle().
#define WEWL_INPUT_STATUS 0 |
ODB Offset for the WEWL status.
Definition at line 143 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::RunStart(), PLemAutoRun::SetFieldWEWH(), and PLemAutoRun::SetTitle().
#define WEWL_OUTPUT_CMD 0 |
ODB Offset for the WEWL cmd (0=off, 1=on, 2=reset, 3=reset-dsp.
Definition at line 148 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::SetFieldWEWH(), and PLemAutoRun::SetFieldWEWL().
#define WEWL_OUTPUT_CURRENT 1 |
ODB Offset for the demand current of the WEWL.
Definition at line 149 of file PLemAutoRun.cpp.
Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::SetFieldWEWH(), and PLemAutoRun::SetFieldWEWL().
void TdHvTripFlagChanged | ( | HNDLE | , |
HNDLE | , | ||
void * | info | ||
) |
Called when the TD HV Trip Alarm flag has changed.
info | pointer to the PLemAutoRun object |
Definition at line 11242 of file PLemAutoRun.cpp.
References PLemAutoRun::ErrorMsg(), PLemAutoRun::fHvTripFlag, and LAR_MSG_NO_LINE_NO.