lemAutoRun  1.0
Macros | Functions
PLemAutoRun.cpp File Reference
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <string.h>
#include <QCoreApplication>
#include <QFile>
#include <QFileInfo>
#include <QDateTime>
#include <QStringList>
#include <QMapIterator>
#include "lemAutoRun.h"
#include "PLemAutoRun.h"
Include dependency graph for PLemAutoRun.cpp:

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 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 LS340_CTRL_PID   1
 LS340 in manual PID mode. More...
 
#define LS340_CTRL_ZONE   2
 LS340 in table driven PID mode. 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 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)
 

Macro Definition Documentation

#define BEAMLINE_KV61_DEMAND_CH   26

ODB Index of the KV61 demand channel.

Definition at line 156 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::WarmUp().

#define BEAMLINE_KV62_DEMAND_CH   28

ODB Index of the KV62 demand channel.

Definition at line 157 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::WarmUp().

#define BH_INPUT_FLOW   0

ODB Offset for the measured flow value.

Definition at line 106 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 107 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SampleTempConsiderNeedleValve().

#define BH_OUTPUT_FLOW   0
#define BPV_CLOSE   3

closing command for BPVX/Y

Definition at line 56 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 57 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetBPV(), PLemAutoRun::SetTemp(), and PLemAutoRun::SetTempOvenOmega().

#define BPV_STATE_CLOSED   3072

BPVX/Y closed.

Definition at line 65 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::GetBPV(), PLemAutoRun::RunStart(), and PLemAutoRun::SetBPV().

#define BPV_STATE_OPEN   5120
#define BPVX   0
#define BPVX_ENABLED   0

ODB offset for BPVX enabled flag (output)

Definition at line 58 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetBPV().

#define BPVX_SET   1

ODB offset for BPVX set cmd (output)

Definition at line 59 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetBPV().

#define BPVX_STATE   25

ODB offset for BPVX state (input)

Definition at line 62 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::GetBPV(), and PLemAutoRun::SetBPV().

#define BPVY   1

BPVY label.

Definition at line 55 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 60 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetBPV().

#define BPVY_SET   3

ODB offset for BPVY set cmd (output)

Definition at line 61 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetBPV().

#define BPVY_STATE   26

ODB offset for BPVY state (input)

Definition at line 63 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::GetBPV(), and PLemAutoRun::SetBPV().

#define CRYO_KONTI   0
#define CRYO_LOWTEMP   1

LowTemp cryo in use.

Definition at line 46 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ReadSampleCryoXML(), and PLemAutoRun::SetTemp().

#define CRYO_NO   -1

no cryo in use

Definition at line 44 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 47 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 114 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 116 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::DegaussDanfysik(), and PLemAutoRun::SetFieldDanfysik().

#define FOM_BATTERY   2

ODB Index of the FOM battery.

Definition at line 151 of file PLemAutoRun.cpp.

#define FOM_CURRENT_DEMAND   0

ODB Index of the FOM current setpoint.

Definition at line 153 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetFOM().

#define FOM_CURRENT_MEASURED   0

ODB Index of the FOM current reading.

Definition at line 149 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetFOM().

#define FOM_STANDBY   1

ODB Index of the FOM stanby flag.

Definition at line 154 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetFOM().

#define FOM_VOLTAGE_MEASURED   1

ODB Index of the FOM voltage reading.

Definition at line 150 of file PLemAutoRun.cpp.

#define HTML_ABORTED   4
#define HTML_ALARM   5

html alarm tag

Definition at line 165 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 169 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::UpdateWebPage().

#define HTML_LOAD   0

html load tag

Definition at line 160 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::UpdateWebPage().

#define HTML_PARSE_ERROR   8
#define HTML_RUNNING   2

html running tag

Definition at line 162 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun().

#define HTML_START   1

html start tag

Definition at line 161 of file PLemAutoRun.cpp.

#define HTML_STOP   3

html stop tag

Definition at line 163 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::UpdateWebPage().

#define HTML_STRANGE   7

html strange autorun starting condition tag

Definition at line 167 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::UpdateWebPage().

#define HTML_WARMUP   6

html warmup tag

Definition at line 166 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::UpdateWebPage(), and PLemAutoRun::WarmUp().

#define HV_FUG_CHS   16
#define HV_FUG_LEFT_PLATE   2

ODB Offset for the FUG HV of the left plate of the spin rotator.

Definition at line 133 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 132 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 137 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 138 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetHvOff().

#define HV_FUG_MAX_TRY   5
#define HV_FUG_MIRROR   8

ODB Offset for the FUG HV of the mirror.

Definition at line 136 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 135 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 142 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
#define HV_FUG_RAR   12

ODB Offset for the FUG HV of the right ring anode.

Definition at line 140 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 141 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 134 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 131 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 143 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 147 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 145 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 146 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetHvOff().

#define LAR_TT_ABORTED   2

Definition at line 185 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun().

#define LAR_TT_FINISHED   1

Definition at line 184 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun().

#define LAR_TT_IDLE   0

Definition at line 183 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun(), and PLemAutoRun::FeedLiveDataErrors().

#define LAR_TT_WARMUP   3

Definition at line 186 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun().

#define LS340_CTRL_PID   1

LS340 in manual PID mode.

Definition at line 71 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340Mode().

#define LS340_CTRL_ZONE   2

LS340 in table driven PID mode.

Definition at line 72 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340Mode().

#define LS340_INPUT_CF1   0

ODB Offset for the cold finger 1 sensor.

Definition at line 74 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::GetAllKeys().

#define LS340_INPUT_CF2   1

ODB Offset for the cold finger 2 sensor.

Definition at line 75 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::GetAllKeys().

#define LS340_INPUT_HEATER   7

ODB Offset for the heater read back.

Definition at line 77 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::CheckTempStability(), PLemAutoRun::RawVoltageDump(), and PLemAutoRun::SampleTempAdjustFlow().

#define LS340_INPUT_HEATER_MODE   13

ODB Offset for the heater control mode read back.

Definition at line 83 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340Mode().

#define LS340_INPUT_HEATER_RANGE   12

ODB Offset for the heater range read back.

Definition at line 82 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::RawVoltageDump(), and PLemAutoRun::SampleTempAdjustFlow().

#define LS340_INPUT_PID_D   11

ODB Offset for the D value of the PID (read back)

Definition at line 81 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetTemp().

#define LS340_INPUT_PID_I   10

ODB Offset for the I value of the PID (read back)

Definition at line 80 of file PLemAutoRun.cpp.

#define LS340_INPUT_PID_P   9

ODB Offset for the P value of the PID (read back)

Definition at line 79 of file PLemAutoRun.cpp.

#define LS340_INPUT_PRESSURE   2

ODB Offset for the He pressure before the bronkhorst.

Definition at line 76 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::CheckTempStability(), and PLemAutoRun::RawVoltageDump().

#define LS340_INPUT_RAMP   14

ODB Offset for the demand temperature ramping read back.

Definition at line 84 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetDemandTempRamping(), PLemAutoRun::SetTemp(), and PLemAutoRun::WarmUp().

#define LS340_INPUT_SETPOINT   8
#define LS340_OUTPUT_HEATER_MODE   6

ODB Offset for the heater control mode.

Definition at line 92 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340Mode(), and PLemAutoRun::SetSampleLS340ZoneSettings().

#define LS340_OUTPUT_HEATER_RANGE   5

ODB Offset for the heater range.

Definition at line 91 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340HeaterRangeAndPIDs(), and PLemAutoRun::SetSampleLS340ZoneSettings().

#define LS340_OUTPUT_PID_D   4
#define LS340_OUTPUT_PID_I   3

ODB Offset for I output.

Definition at line 89 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340HeaterRangeAndPIDs(), and PLemAutoRun::SetSampleLS340ZoneSettings().

#define LS340_OUTPUT_PID_P   2

ODB Offset for P output.

Definition at line 88 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340HeaterRangeAndPIDs(), and PLemAutoRun::SetSampleLS340ZoneSettings().

#define LS340_OUTPUT_RAMP   7

ODB Offset for the demand temperature ramping.

Definition at line 93 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetDemandTempRamping(), and PLemAutoRun::WarmUp().

#define LS340_OUTPUT_REMOTE   0

ODB Offset for the remote output flag.

Definition at line 86 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetTemp().

#define LS340_OUTPUT_SETPOINT   1
#define OMEGA_OVEN_INPUT_SETPOINT   6

ODB Offset for the setpoint read back.

Definition at line 96 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetOmegaSetpoint().

#define OMEGA_OVEN_INPUT_TEMP   0

ODB Offset for the temperature read back.

Definition at line 95 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 98 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::CheckTempStabilityOvenOmega(), and PLemAutoRun::SetOmegaSetpoint().

#define RUN_PAUSED   2

MIDAS run paused tag.

Definition at line 51 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::ExecAutoRun().

#define RUN_RUNNING   3

MIDAS run active tag.

Definition at line 52 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 50 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 68 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::WarmUp().

#define SC_VENT_ENABLED   6

ODB offset for SC vent enable flag (output)

Definition at line 67 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 101 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 104 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 103 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 112 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 111 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::DegaussSpinRot(), and PLemAutoRun::SetSpinRot().

#define TEMP_D_PID   7

D (PID) parameter tag.

Definition at line 179 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340HeaterRangeAndPIDs(), and PLemAutoRun::SetLS340Mode().

#define TEMP_DELTA_T   1

delta T parameter tag

Definition at line 173 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetTemp().

#define TEMP_DEMAND_TEMP   0

demand temperature parameter tag

Definition at line 172 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetTemp(), and PLemAutoRun::SetTempOvenOmega().

#define TEMP_FLOW   8

flow parameter tag

Definition at line 180 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetTemp().

#define TEMP_HEATER_RANGE   4

heater range parameter tag

Definition at line 176 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340HeaterRangeAndPIDs(), and PLemAutoRun::SetLS340Mode().

#define TEMP_I_PID   6

I (PID) parameter tag.

Definition at line 178 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340HeaterRangeAndPIDs(), and PLemAutoRun::SetLS340Mode().

#define TEMP_P_PID   5

P (PID) parameter tag.

Definition at line 177 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetLS340HeaterRangeAndPIDs(), and PLemAutoRun::SetLS340Mode().

#define TEMP_RAMP   3

ramping parameter tag

Definition at line 175 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::SetTemp().

#define TEMP_STABILITY_TIMEOUT   2

stability timeout parameter tag

Definition at line 174 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 127 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 121 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 120 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 125 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 126 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 119 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 118 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 123 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 124 of file PLemAutoRun.cpp.

Referenced by PLemAutoRun::DegaussWEW(), PLemAutoRun::SetFieldWEWH(), and PLemAutoRun::SetFieldWEWL().

Function Documentation

void TdHvTripFlagChanged ( HNDLE  ,
HNDLE  ,
void *  info 
)

Called when the TD HV Trip Alarm flag has changed.

Parameters
infopointer to the PLemAutoRun object

Definition at line 11076 of file PLemAutoRun.cpp.

References PLemAutoRun::ErrorMsg(), PLemAutoRun::fHvTripFlag, and LAR_MSG_NO_LINE_NO.