ICP
1
|
#include <ISISinstrumentControl.h>
Public Member Functions | |
DAEstatus & | getStatusReporter () |
int | createLastrunFile (const CRPTProxy &crpt, DAEstatus &status) |
int | writeISISRAWasync (const CRPTProxy &crpt, const char *filename, DAEstatus &dstatus) |
int | waitForAsync () |
int | doneAsync () |
called by async worker thread when it has completed its work More... | |
int | beginRun (DAEstatus &status) |
int | beginRunEx (bool start_paused, bool delayed_start, long period, DAEstatus &status) |
int | endRun (DAEstatus &status) |
int | requestEndRunAfterNextSequenceCompletes (DAEstatus &status) |
bool | isFinalSequenceComplete (DAEstatus &status) |
int | pauseRun (DAEstatus &status) |
int | resumeRun (DAEstatus &status) |
int | abortRun (DAEstatus &status) |
int | saveRun (DAEstatus &status) |
int | updateCRPTWithDAE (CRPTProxy &crpt, bool pause_collection, DAEstatus &status) |
int | updateCRPTWithDAE (bool pause_collection, DAEstatus &status) |
int | storeCRPT (DAEstatus &status) |
int | storeCRPT (CRPTProxy &crpt, DAEstatus &status) |
int | snapshotCRPT (const char *filename, bool do_update, bool do_pause, DAEstatus &status) |
int | saveCRPTToFile (const CRPTProxy &crpt, const std::string &raw_filename, const std::string &nexus_filename, const seblock_map_t &blocks, const std::string &events_nxfile, DAEstatus &dstatus) |
int | updateCRPTWithSEandSaveToFile (CRPTProxy &crpt, const std::string &raw_filename, const std::string &nexus_filename, DAEstatus &dstatus) |
int | startSEWait (DAEstatus &dstatus) |
int | endSEWait (DAEstatus &dstatus) |
int | changePeriod (int period, DAEstatus &status) |
int | changePeriodWhileRunning (int period, bool pause_first, DAEstatus &status) |
int | readTables (const char *wiring, const char *detector, const char *spectra, DAEstatus &status) |
int | setLinearTimeChannelRange (int range_number, float start, float end, float step, DAEstatus &status) |
int | setLogTimeChannelRange (int range_number, float start, float end, float step, DAEstatus &status) |
int | setVeto (const std::string &name, long enable, DAEstatus &status) |
bool | isRunning () |
bool | isWaiting () |
int | getRunState () |
int | getRunNumber () |
int | getSpectrum (long spectrum_number, long period, double *time_array, double *signal_array, double *error_array, bool as_histogram, bool as_distribution, long &sum, DAEstatus &status) |
int | getSpectrumIntegral (long spec_no, long period, float t_low, float t_high, long &integral, long &max_val, DAEstatus &status) |
int | getMonitorIntegral (long monitor, long period, float t_low, float t_high, long &integral, DAEstatus &status) |
int | getSpectrumIntegral (long n, const long spec_no[], long period, const float t_low[], const float t_high[], long integral[], long max_val[], DAEstatus &status) |
int | getMonitorIntegral (long n, const long monitor[], long period, const float t_low[], const float t_high[], long integral[], DAEstatus &status) |
int | getTotalCounts (int64_t &counts, DAEstatus &status) |
int | getMEvents (double &mevents, DAEstatus &status) |
int | getMEventsPeriod (double &mevents, int period, DAEstatus &status) |
float | getCountRate (DAEstatus &status) |
int | getCRPTSpectrumIntegral (long spec_no, long period, float t_low, float t_high, long &integral, long &max_val, DAEstatus &status) |
int | getCRPTSpectrumIntegral (long n, const long spec_no[], long period, const float t_low[], const float t_high[], long integral[], long max_val[], DAEstatus &status) |
int | getCRPTSpectrumIntegral (long spec_start, int nspectra, long period, float t_low, float t_high, long integral[], long max_val[], DAEstatus &status) |
int | getCRPTSpectrumIntegral (long spec_start, int nspectra, long period, long integral[], DAEstatus &status) |
float | getBeamCurrent (DAEstatus &status) |
int | getCurrentPeriodNumber (int &period, int &daq_period, DAEstatus &status) |
float | getGoodUAmpH (DAEstatus &status) |
float | getRawUAmpH (DAEstatus &status) |
float | getCurrentPeriodGoodUAmpH (DAEstatus &status) |
float | getCurrentPeriodRawUAmpH (DAEstatus &status) |
float | getDuration (DAEstatus &status) |
int | getFramesAllPeriods (long *good_frames, long *raw_frames, int n, DAEstatus &status) |
int | getUAmpHAllPeriods (float *good_uamph, float *raw_uamph, int n, DAEstatus &status) |
int | getNumberOfTimeChannels (int spectrum, DAEstatus &status) |
int | getNumberOfSpectra (DAEstatus &status) |
int | getSpectrumNumbersForTimeRegime (long tr, long &spec_min, long &spec_max, DAEstatus &status) |
int | getNumberOfPeriods (DAEstatus &status) |
float | getPeriodDuration (DAEstatus &status) |
int | getRawFrames (DAEstatus &status) |
int | getCurrentPeriodRawFrames (DAEstatus &status) |
int | getGoodFrames (DAEstatus &status) |
int | getCurrentPeriodGoodFrames (DAEstatus &status) |
int | RIO (isis32_t bus_addr, isisU16_t &word, DAEstatus &status) |
int | updateStatusXML (std::string &status_xml, DAEstatus &status) |
int | updateTCBXML (const std::string &status_xml, DAEstatus &status) |
int | updateDAEsettingsXML (const std::string &status_xml, DAEstatus &status) |
int | updateSampleXML (const std::string &sample_xml, DAEstatus &status) |
int | updateUserXML (const std::string &user_xml, DAEstatus &status) |
int | updateHardwarePeriodsXML (const std::string &periods_xml, DAEstatus &status) |
int | changeUpdateSettingsXML (const std::string &update_xml, DAEstatus &status) |
int | updateMonitoringXML (const std::string &monitor_xml, DAEstatus &status) |
int | getDAEsettingsXML (const std::string &dae_xml_in, std::string &dae_xml_out, DAEstatus &status) |
int | getHardwarePeriodsXML (const std::string &periods_xml_in, std::string &periods_xml_out, DAEstatus &status) |
int | getTCBXML (const std::string &tcb_xml_in, std::string &tcb_xml_out, DAEstatus &status) |
int | getUpdateSettingsXML (const std::string &update_xml_in, std::string &update_xml_out, DAEstatus &status) |
int | getMonitoringXML (const std::string &monitor_xml_in, std::string &monitor_xml_out, DAEstatus &status) |
ISISinstrumentControl (Poco::Util::Application *pApp, const std::string &icp_service_dir, DAEreport_func_t *func=&DAEstatus::ostreamReportFunction, write_event_log_t *event_func=NULL, void *report_arg=&std::cerr) | |
virtual | ~ISISinstrumentControl () |
int | setRunNumber (long number, DAEstatus &status) |
int | setRunStatus (long number, DAEstatus &status) |
bool | shutdownRequested () |
std::ostream & | printStatus (std::ostream &os, DAEstatus &dstatus) |
int | VMEReadValuesToString (unsigned long card_id, unsigned long card_address, bool sixteen_bit, unsigned long num_values, std::string &values, DAEstatus &status) |
int | VMEWriteValue (unsigned long card_id, unsigned long card_address, bool sixteen_bit, unsigned long value, unsigned long mode, DAEstatus &status) |
int | VMEReadValue (unsigned long card_id, unsigned long card_address, bool sixteen_bit, unsigned long *value, DAEstatus &status) |
int | VMEWriteArray (unsigned long card_id, unsigned long card_address, isisU32_t *values, unsigned long num_values, DAEstatus &status) |
int | VMEReadArray (unsigned long card_id, unsigned long card_address, isisU32_t *values, unsigned long num_values, DAEstatus &status) |
int | sumAllSpectra (long &counts, long &bin0_counts, DAEstatus &status) |
int | sumAllHistogramMemory (long &counts, DAEstatus &status) |
int | importCRPT (const char *filename, DAEstatus &dstatus) |
int | readISISRAW (const char *filename, DAEstatus &dstatus) |
int | getOptions (std::string &options_xml, DAEstatus &status) |
int | setOptions (const std::string &options_xml, DAEstatus &status) |
int | refreshCachedValues (DAEstatus &status) |
int | getPollTime () const |
int | getCharItem (const char *item_name, std::string &cvalue, DAEstatus &status) |
int | getIntItem (const char *item_name, long &lVal, DAEstatus &status) |
int | getRealItem (const char *item_name, double &dblVal, DAEstatus &status) |
int | getIntArrayItemSize (const char *item_name, int *dims_array, int &ndims, DAEstatus &status) |
int | getIntArrayItem (const char *item_name, long *larray, DAEstatus &status) |
int | getRealArrayItemSize (const char *item_name, int *dims_array, int &ndims, DAEstatus &status) |
int | getRealArrayItem (const char *item_name, double *darray, DAEstatus &status) |
int | getIntItem (const char *item_name, long *spec_array, int nspec, long *lVal, DAEstatus &status) |
int | getRealItem (const char *item_name, long *spec_array, int nspec, double *dblVal, DAEstatus &status) |
int | getIntArrayItem (const char *item_name, long *spec_array, int nspec, long *larray, DAEstatus &status) |
int | getRealArrayItem (const char *item_name, long *spec_array, int nspec, double *darray, DAEstatus &status) |
int | notifyICP (long event_id, const char *param, DAEstatus &status) |
int | setSampleParameters (const string_table_t &table, DAEstatus &status) |
int | setBeamlineParameters (const string_table_t &table, DAEstatus &status) |
int | setBlockTable (const string_table_t &table, DAEstatus &status) |
int | setUserParameters (long rbno, const string_table_t &table, DAEstatus &status) |
int | getNPRatio (float *current, float *average, DAEstatus &status) |
void | zeroCRPTRawData () |
void | zeroCRPTRunRawData () |
int | changeNumberOfSoftwarePeriods (long nperiod, DAEstatus &status) |
int | fillWithTestPattern (unsigned long pattern, DAEstatus &status) |
int | checkTestPattern (unsigned long pattern, DAEstatus &status) |
int | getVetoStatus (std::string &veto_text, DAEstatus &status) |
int | whichVeto (std::string &veto_text, DAEstatus &status) |
int | loadDAEWithData (const std::string &file_name, long options, DAEstatus &status) |
int | updateCRPTSpectra (int period, long spec_start, int nspectra, DAEstatus &status) |
int | updateCRPTSpectraAllPeriods (long spec_start, int nspectra, DAEstatus &status) |
int | exitProgram (const std::string &message, bool prompt) |
boost::signals2::connection | registerOnRunStateChange (boost::function< void(BSTR)> func) |
void | fireOnRunStateChange (const char *state) |
_se_translator_function | registerStructuredExceptionHandler () |
this needs to be called per thread More... | |
void | unregisterStructuredExceptionHandler (_se_translator_function old_func) |
Static Public Member Functions | |
static int | allReportFunc (const DAEstatus_message &mess, void *arg) |
static int | updateCRPTwithSE (CRPTProxy &crpt, DAEstatus &dstatus) |
static int | getSE (const CRPTProxy &crpt, seblock_map_t &blocks, DAEstatus &dstatus) |
static int | updateCRPTwithSE (CRPTProxy &crpt, const seblock_map_t &blocks, DAEstatus &dstatus) |
static int | debugReportFunction (const DAEstatus_message &mess, void *arg) |
static int | sqliteReportFunction (const DAEstatus_message &mess, void *arg) |
static int | writeISISRAW (const CRPTProxy &crpt, const char *filename, DAEstatus &dstatus) |
static int | writeISISNeXus (NeXusWriter &nxwriter, const CRPTProxy &crpt, const char *filename, bool logs_only, const seblock_map_t &blocks, const std::string &events_nxfile, DAEstatus &dstatus) |
static int | updateSampleParameters (const CRPTProxy::parameter_map_t &sample_parameters, CRPTProxy &crpt, const seblock_map_t *se_blocks, DAEstatus &status) |
static int | updateBeamlineParameters (const CRPTProxy::parameter_map_t &beamline_parameters, CRPTProxy &crpt, const seblock_map_t *se_blocks, DAEstatus &status) |
static int | ISOtime (time_t time, char *buffer, int len) |
static int | ISOtime (const struct timeb &tb, char *buffer, int len) |
static int | prettyTime (time_t time, char *buffer, int len) |
static int | prettyTime (const struct timeb &tb, char *buffer, int len) |
Protected Types | |
enum | ICPOptions { AutoSave = 0x1, PeriodSequenceAutoEnd = 0x2, PerCycleJournal = 0x4 } |
enum | ICPEvent { UserDetailsChanged = 0, BeamlineParamerersChanged = 1, SampleParametersChanged = 2 } |
typedef std::map< std::string, std::string > | recovery_map_t |
typedef int(ISISinstrumentControl::* | xml_update_func_t )(const std::string &xml, DAEstatus &status) |
Protected Member Functions | |
int | RCretry (const char *name, boost::function< int(ISISinstrumentControl *, DAEstatus &)> func, DAEstatus &status) |
int | updateXML (const char *name, xml_update_func_t func, DAEstatus &dstatus) |
int | writeWinEventLog (int sev, const std::string &message) |
int | allReportFuncMain (const DAEstatus_message &mess) |
int | checkForNoncountingDetectors (const CRPTProxy &crpt, DAEstatus &dstatus) |
the idea here is to look for any module (dim) that has no counts More... | |
void | rerunFailedEnds () |
int | startEventWriter (DAEstatus &status) |
int | stopEventWriter (bool wait, DAEstatus &status) |
int | updateSpecmapsFromDAE (const std::map< int, int > &trcn, DAEstatus &status) |
int | beginRunMain (DAEstatus &status) |
int | beginRunMainEx (bool start_paused, bool delayed_start, long period, DAEstatus &status) |
int | endRunMain (DAEstatus &status) |
int | endRunTask (Poco::SharedPtr< CRPTProxy > crpt, NeXusWriter &nxwriter, bool keep_raw_events, bool keep_crpt, const std::string events_nxfile, DAEstatus &status) |
int | pauseRunMain (bool refresh_cache, DAEstatus &dstatus) |
int | readWiringTable (const char *filename, DAEstatus &status) |
int | readDetectorTable (const char *filename, DAEstatus &status) |
int | readSpectraTable (const char *filename, DAEstatus &status) |
int | tcbcalc (DAEstatus &status) |
int | pausePeriod (PERIOD *p) |
int | setupDAE (int tables_only, DAEstatus &dstatus) |
int | updateFunc (int poll_time, bool only_refresh_cache) |
int | setTimeChannelRange (int range_number, int range_type, float start, float end, float step, DAEstatus &status) |
int | updateStatusLog () |
int | updateMonitoringLog () |
int | loadCRPT () |
int | flushCRPT (DAEstatus &status, bool flush_raw_data=false) |
int | startDataCollection (bool clear_counters, DAEstatus &status) |
int | stopDataCollection (ISISDAE::StopRunMode mode, DAEstatus &status) |
int | readRecoveryFile (DAEstatus &dstatus) |
int | writeRecoveryFile (DAEstatus &dstatus) |
int | readLogFile (const char *filename) |
int | writeAutosaveFile (DAEstatus &dstatus) |
int | getDAQPeriod (int period, DAEstatus &status) |
int | updateCRPTSpectra (int period, long *spectra_list, int nspectra, DAEstatus &status) |
int | updateUserDetailsFromFile (const char *filename, DAEstatus &status) |
int | writeJournal (const CRPTProxy &crpt, seblock_map_t &blocks, DAEstatus &status) |
HANDLE | launchDatasvr (DAEstatus &dstatus) |
int | killDatasvr (DAEstatus &dstatus) |
int | updateCycle (DAEstatus &dstatus) |
int | evaluateExpression (std::map< std::string, double > &values, const std::string &expression, double &result, DAEstatus &status) |
std::string | getPostCommandLogName () |
int | runPostCommand (const char *property_name, const std::string &arg, DAEstatus &status) |
void | beamCurrentTimerCallback (Poco::Timer &t) |
void | updateICPTimeDiffLog () |
int | setRunStatusImp (long number, bool is_start, DAEstatus &status) |
int | loadDAEWithNeXusData (const std::string &file_name, long options, DAEstatus &status) |
int | readDataDaeTable (const char *filename, DAEstatus &status) |
int | sendNagios (int status, const std::string &service, const std::string &message, DAEstatus &dstatus) |
void | readBeamloggerBroadcast () |
bool | beamOn (int minutes=0) const |
bool | muonKickerOK () const |
Protected Member Functions inherited from ISIS::Base | |
Base (const std::string &logger_name="UNKNOWN") | |
void | setLoggerName (const std::string &logger_name) |
virtual | ~Base () |
virtual std::string | loggingPrefix () const |
void | setThisLoggerLevel (int level) |
Static Protected Member Functions | |
static DWORD __stdcall | writeISISRAWthread (void *arg) |
static void | updateThread (void *arg) |
static int | replaceSEparameters (std::string &s, const seblock_map_t *se_blocks, DAEstatus &status) |
static int | setRealParameter (const CRPTProxy::parameter_map_t ¶ms, const seblock_map_t *se_blocks, const char *name, float &crpt_target, DAEstatus &status) |
static int | setStringParameter (const CRPTProxy::parameter_map_t ¶ms, const seblock_map_t *se_blocks, const char *name, char *crpt_target, int size_crpt_target, bool null_terminate, DAEstatus &status) |
static int | logEvent (time_t the_time, const CRPTProxy &crpt, const std::string &event, DAEstatus &status) |
static int | logEvent (const CRPTProxy &crpt, const std::string &event, DAEstatus &status) |
static int | logEventVa (time_t the_time, const CRPTProxy &crpt, DAEstatus &status, const char *event,...) |
static int | logEventVaImp (time_t the_time, const CRPTProxy &crpt, DAEstatus &status, const char *event, va_list ap) |
static int | logEventVa (const CRPTProxy &crpt, DAEstatus &status, const char *event,...) |
static int | spawnCommand (const std::string &program, const std::string &args, bool use_cmd_exe, bool console, HANDLE *suspended_thread_handle, const std::string &std_in_file, const std::string &std_out_file, const std::string &std_error_file, int wait_time, DAEstatus &dstatus) |
static int | updateSampleParametersFromFile (const char *filename, DAEstatus &status) |
static int | updateBeamlineParametersFromFile (const char *filename, DAEstatus &status) |
static int | updateParametersFromFile (CRPTProxy::parameter_map_t ¶m_map, const char *filename, DAEstatus &status) |
static int | stringTableToParameterMap (const string_table_t &string_table, CRPTProxy::parameter_map_t ¶m_map, DAEstatus &status) |
static int | killProcess (const char *process_name, DAEstatus &dstatus) |
static std::string | getProcessName (DWORD processID) |
static int | loadCRPTWithHistogrammedEvents (CRPTProxy &crpt, DAEstatus &dstatus) |
static void | purecallHandler () |
static void | seTransFunction (unsigned int u, EXCEPTION_POINTERS *pExp) |
Static Protected Member Functions inherited from ISIS::Base | |
static void | setAllLoggerLevel (int level) |
Static Protected Attributes | |
static std::string | m_instrument_xml_file = "c:\\data\\instrument.xml" |
static std::string | m_instrument_parameter_map_file = "c:\\data\\instrument_parameter_map.txt" |
Private Member Functions | |
ISISinstrumentControl () | |
Definition at line 60 of file ISISinstrumentControl.h.
|
protected |
Definition at line 111 of file ISISinstrumentControl.h.
|
protected |
Definition at line 125 of file ISISinstrumentControl.h.
|
protected |
Enumerator | |
---|---|
UserDetailsChanged | |
BeamlineParamerersChanged | |
SampleParametersChanged |
Definition at line 127 of file ISISinstrumentControl.h.
|
protected |
Enumerator | |
---|---|
AutoSave | |
PeriodSequenceAutoEnd | |
PerCycleJournal |
Definition at line 118 of file ISISinstrumentControl.h.
ISISinstrumentControl::ISISinstrumentControl | ( | Poco::Util::Application * | pApp, |
const std::string & | icp_service_dir, | ||
DAEreport_func_t * | func = &DAEstatus::ostreamReportFunction , |
||
write_event_log_t * | event_func = NULL , |
||
void * | report_arg = &std::cerr |
||
) |
Definition at line 122 of file ISISinstrumentControl.cpp.
References ISISDAE::addGoodEventCallback(), DAEstatus::addInfo(), DAEstatus::addInfoVa(), ISISCRPT_STRUCT::alert_email, CRPTProxy::assignLogFiles(), AutoSave, beamCurrentTimerCallback(), ISISDAE::check(), ISISCRPT_STRUCT::comp_name, ISISCRPT_STRUCT::compression_block_size, ISISCRPT_STRUCT::compression_level, CRPTProxy::CRPT(), ISISDAE::DAEType_desc, CRPTProxy::debugLog(), diffFileTimesInMilliSec(), ISISCRPT_STRUCT::epics_lastread_iso, ISISCRPT_STRUCT::epics_lastread_nano, exitProgram(), FAC_CRPT, FAC_DAE, DAEstatus::Failure, ISISCRPT_STRUCT::filetime, g_icp_clock, ICPClock::getCurrentTimeAsFiletime(), LabviewXML::getValue(), ICPNotificationHandler::handleNotification(), hash_line80, CRPTProxy::histogramEventsToCRPT(), ISISCRPT_STRUCT::icp_clock, ISISCRPT_STRUCT::icp_version, epics_thread_data_t::inst_name, ISISCRPT_STRUCT::inst_name, ISOtime(), CRPTProxy::isValid(), killDatasvr(), epics_thread_data_t::lastread_iso, epics_thread_data_t::lastread_nano, launchDatasvr(), loadCRPT(), LabviewXML::loadFromFile(), LOG_INFORMATION, logEventVa(), LOGSTR_INFORMATION, m_app, m_async_complete_event, m_beamlog_thread, m_comp_name, m_crpt, m_crpt_cs, m_crpt_run, m_crpt_signals, m_dae, m_dae_type, m_data_dir, m_epics_data, m_http_server, m_http_svs, m_icp_config, m_icp_dir, m_icp_options, m_icp_service_dir, m_icp_start_time, m_icpwriter, m_inst_settings_dir, m_log_dir, m_nexus_files, m_nh, m_nxwriter, m_recovery_file, m_registersetranslator, m_report_arg, m_report_func, m_run_number_digits, m_simulation_mode, m_status, m_task_ph, m_taskmgr, m_use_full_inst_name_for_files, m_vms_raw_files, muon_daes, ISISDAE::MuonDAE2, ISISDAE::MuonDAE3, ISISDAE::NeutronDAE2, ISISDAE::NeutronDAE3, NULL_TERMINATE, ICPProgressHandler::onFinished(), ICPProgressHandler::onProgress(), ISISDAE::open(), ISISDAE::openBackplane(), PerCycleJournal, ISISCRPT_STRUCT::perf_counter, PeriodSequenceAutoEnd, printComputerMemoryStats(), ISISCRPT_STRUCT::proc_freq, purecallHandler(), readBeamloggerBroadcast(), registerStructuredExceptionHandler(), DAEstatus::reportImmediately(), rerunFailedEnds(), DAEstatus::resetSeverityToAtMost(), epics_thread_data_t::run_number, ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::run_status, RUNSTATUS_RUNNING, ISISCRPT_STRUCT::runStatusName(), se_get_errmsg(), se_set_period(), se_set_run_number(), se_start_epics_thread(), se_version(), ISISCRPT_STRUCT::setDAESpecificParameters(), CRPTProxy::setICPStartTime(), ISISCRPT_STRUCT::setInstName(), ISIS::Base::setLoggerName(), ICPClock::setParameters(), DAEstatus::setReportFunction(), NeXusWriter::setRunNumberDigits(), ISISDAE::setUAmpScale(), ICPEventWriter::setup(), setupDAE(), SEV_FATAL, SEV_WARNING, ISISRAW::size_check(), ISISCRPT_STRUCT::software_period, startDataCollection(), ISISDAE::startEventBroadcaster(), startEventWriter(), stopDataCollection(), ISISDAE::StopRunFast, DAEstatus::Success, ISISCRPT_STRUCT::uamp_scale, ICPCritical::unlock(), unregisterStructuredExceptionHandler(), updateThread(), and writeRecoveryFile().
|
virtual |
Definition at line 55 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), FAC_DAE, flushCRPT(), ICPNotificationHandler::handleNotification(), killDatasvr(), m_async_complete_event, m_crpt_cs, m_dae, m_http_server, m_icp_config, m_nh, m_shutdown_requested, m_status, m_task_ph, m_taskmgr, ICPProgressHandler::onFinished(), ICPProgressHandler::onProgress(), se_close(), and se_get_errmsg().
|
inlineprivate |
Definition at line 382 of file ISISinstrumentControl.h.
int ISISinstrumentControl::abortRun | ( | DAEstatus & | status | ) |
Definition at line 1558 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfoVa(), ERRTYPE_OUTOFMEM, FAC_CRPT, DAEstatus::Failure, flushCRPT(), isRunning(), logEvent(), m_crpt, m_crpt_cs, refreshCachedValues(), ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::run_status, RUNSTATUS_SETUP, setRunStatusImp(), SEV_ERROR, ISISCRPT_STRUCT::software_period, stopDataCollection(), ISISDAE::StopRunFast, and DAEstatus::Success.
Referenced by Cdae::abortRun().
|
static |
Definition at line 4357 of file ISISinstrumentControl.cpp.
References allReportFuncMain().
Referenced by Cdae::callICP(), Cdae::checkTestPattern(), Cdae::fillWithTestPattern(), Cdae::getArrayValue(), Cdae::getRunNumber(), Cdae::getRunState(), Cdae::getsect(), Cdae::getSpectraIntegral2(), Cdae::getSpectraIntegralHelper(), Cdae::getSpectraSum(), Cdae::getSpectrum(), Cdae::getSpectrumIntegral(), Cdae::getValue(), Cdae::quit(), Cdae::rio(), Cdae::setICPValueLong(), Cdae::sumAllHistogramMemory(), Cdae::sumAllSpectra(), Cdae::VMEReadArray(), Cdae::VMEReadValue(), Cdae::VMEReadValuesToString(), Cdae::VMEWriteArray(), and Cdae::VMEWriteValue().
|
protected |
Definition at line 4370 of file ISISinstrumentControl.cpp.
References CRPTProxy::debugLog(), debugReportFunction(), debug_report_arg_t::filename, CRPTProxy::isValid(), m_crpt, m_report_arg, m_report_func, debug_report_arg_t::run_number, and ISISCRPT_STRUCT::run_number.
Referenced by allReportFunc().
|
protected |
Definition at line 7540 of file ISISinstrumentControl.cpp.
Referenced by ISISinstrumentControl().
|
protected |
Definition at line 2494 of file ISISinstrumentControl.cpp.
References beamlogger_t::beam_on, beamlogger_t::beam_on_time, ISISCRPT_STRUCT::beamlogger, m_crpt, and beamlogger_t::repr_normal.
Referenced by updateFunc().
int ISISinstrumentControl::beginRun | ( | DAEstatus & | status | ) |
Definition at line 873 of file ISISinstrumentControl.cpp.
References beginRunMain(), and RCretry().
Referenced by _tmain(), and Cdae::beginRun().
int ISISinstrumentControl::beginRunEx | ( | bool | start_paused, |
bool | delayed_start, | ||
long | period, | ||
DAEstatus & | status | ||
) |
Definition at line 878 of file ISISinstrumentControl.cpp.
References beginRunMainEx(), and RCretry().
Referenced by Cdae::beginRunEx().
|
protected |
Definition at line 883 of file ISISinstrumentControl.cpp.
References beginRunMainEx().
Referenced by beginRun().
|
protected |
Definition at line 889 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfoVa(), DAEstatus::addVa(), DAEstatus::addWarningVa(), ISISCRPT_STRUCT::auto_save_last, ISISDAE::clearCounters(), ISISCRPT_STRUCT::data_dae_table, ISISCRPT_STRUCT::detector_table, ISISCRPT_STRUCT::duration, ISISDAE::enableDelayedStart(), ERRTYPE_OUTOFMEM, FAC_CRPT, FAC_DAE, FAC_TCB, DAEstatus::Failure, ISISCRPT_STRUCT::filetime, flushCRPT(), RUNTABLE::fname, g_icp_clock, ISISCRPT_STRUCT::good_frames, ISISCRPT_STRUCT::good_ppp_high, ISISCRPT_STRUCT::good_ppp_low, ISISCRPT_STRUCT::good_uamph, RUNTABLE::hasFileChanged(), ISISCRPT_STRUCT::icp_clock, ICPTimer::info(), ISISCRPT_STRUCT::isInitialised(), ISISCRPT_MAX_PERIOD, ISISCRPT_NUM_VETOS, ISISCRPT_STRUCT::Monitoring::last_gf, ISISCRPT_STRUCT::Monitoring::last_tc, ISISCRPT_STRUCT::Monitoring::last_ua, logEvent(), LOGSTR_DEBUG, m_crpt, m_crpt_cs, m_dae, m_icpwriter, m_period_error, m_run_number_digits, ISISCRPT_STRUCT::monitoring, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nper_daq, ISISCRPT_STRUCT::nperseq, ISISCRPT_STRUCT::ntrg, DAEstatus::OK(), padWithZeros(), ISISCRPT_STRUCT::perf_counter, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, ISISCRPT_STRUCT::proc_freq, refreshCachedValues(), DAEstatus::result(), ISISCRPT_STRUCT::resume_time, ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::run_status, runPostCommand(), RUNSTATUS_PAUSED, RUNSTATUS_RUNNING, RUNSTATUS_SETUP, RUNSTATUS_WAITING, ISISCRPT_STRUCT::se_status, SESTATUS_INRANGE, setRunStatusImp(), setupDAE(), SEV_ERROR, ISISCRPT_STRUCT::software_period, ISISCRPT_STRUCT::spectra_table, ICPEventWriter::start(), ISISCRPT_STRUCT::start_time, startDataCollection(), startEventWriter(), ISISCRPT_STRUCT::stop_time, ISISCRPT_STRUCT::tables_valid, tcbcalc(), TCBRANGE_FILE, ISISCRPT_STRUCT::tcr, ISISCRPT_STRUCT::total_frames, ISISCRPT_STRUCT::total_ppp_high, ISISCRPT_STRUCT::total_ppp_low, ISISCRPT_STRUCT::total_uamph, ISISCRPT_STRUCT::update_good_frames, ISISCRPT_STRUCT::update_good_uamph, ISISCRPT_STRUCT::update_num_polls, ISISCRPT_STRUCT::update_raw_frames, ISISCRPT_STRUCT::update_raw_uamph, ISISCRPT_STRUCT::update_total_counts, updateCycle(), ISISCRPT_STRUCT::vetos, ISISCRPT_STRUCT::wiring_table, zeroCRPTRawData(), and zeroCRPTRunRawData().
Referenced by beginRunEx(), and beginRunMain().
int ISISinstrumentControl::changeNumberOfSoftwarePeriods | ( | long | nperiod, |
DAEstatus & | status | ||
) |
Definition at line 7006 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addVa(), ISISDAE::changeNumberOfPeriods(), ERRTYPE_OUTOFMEM, FAC_CRPT, DAEstatus::Failure, ISISCRPT_STRUCT::getPeriodSize(), ISISCRPT_MAX_PERIOD, m_crpt, m_crpt_cs, m_dae, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nper_daq, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, CRPTProxy::rawDataSizeMax(), DAEstatus::result(), ISISCRPT_STRUCT::run_status, RUNSTATUS_SETUP, and SEV_ERROR.
Referenced by Cdae::changeNumberOfSoftwarePeriods(), and updateHardwarePeriodsXML().
int ISISinstrumentControl::changePeriod | ( | int | period, |
DAEstatus & | status | ||
) |
Definition at line 679 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfoVa(), DAEstatus::addVa(), DAEstatus::addWarningVa(), ISISDAE::changePeriod(), ERRTYPE_OUTOFMEM, FAC_CRPT, FAC_DAE, DAEstatus::Failure, getDAQPeriod(), logEventVa(), m_crpt, m_crpt_cs, m_dae, ISISCRPT_STRUCT::monitoring, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, refreshCachedValues(), ISISCRPT_STRUCT::Monitoring::return_period, ISISCRPT_STRUCT::run_status, RUNSTATUS_PAUSED, RUNSTATUS_SETUP, se_get_errmsg(), se_set_period_async(), SEV_ERROR, ISISCRPT_STRUCT::software_period, and DAEstatus::Success.
Referenced by Cdae::changePeriod(), changePeriodWhileRunning(), and setupDAE().
int ISISinstrumentControl::changePeriodWhileRunning | ( | int | period, |
bool | pause_first, | ||
DAEstatus & | status | ||
) |
Definition at line 662 of file ISISinstrumentControl.cpp.
References changePeriod(), m_crpt, m_crpt_cs, pauseRunMain(), resumeRun(), ISISCRPT_STRUCT::run_status, RUNSTATUS_PAUSED, RUNSTATUS_SETUP, and DAEstatus::Success.
Referenced by Cdae::changePeriodWhileRunning(), and updateFunc().
int ISISinstrumentControl::changeUpdateSettingsXML | ( | const std::string & | update_xml, |
DAEstatus & | status | ||
) |
Definition at line 5058 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addWarning(), ISISCRPT_STRUCT::auto_save_type, ISISCRPT_STRUCT::auto_save_value, ERRTYPE_OUTOFMEM, FAC_CRPT, FAC_DAE, LabviewXML::getValue(), CRPTProxy::isValid(), LabviewXML::loadFromString(), ISISCRPT_STRUCT::lvxml_update, m_crpt, m_crpt_cs, m_recovery_map, NULL_TERMINATE, DAEstatus::result(), SEV_ERROR, and ISISCRPT_STRUCT::update_poll_time.
Referenced by Cdae::changeUpdateSettings(), and readRecoveryFile().
|
protected |
the idea here is to look for any module (dim) that has no counts
Definition at line 1728 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::alert_email, ISISCRPT_STRUCT::comp_name, ISISCRPT_STRUCT::crat, DAE2CardPolicy::CRATE_MOD, getCRPTSpectrumIntegral(), ISISCRPT_STRUCT::good_uamph, LOGSTR_WARNING, ISISCRPT_STRUCT::long_title, m_app, m_status, ISISCRPT_STRUCT::modn, ISISCRPT_STRUCT::ndet, ISISCRPT_STRUCT::run_number, sendEmail(), ISISCRPT_STRUCT::spec, DAEstatus::Success, and ISISCRPT_STRUCT::udet.
Referenced by endRunTask().
int ISISinstrumentControl::checkTestPattern | ( | unsigned long | pattern, |
DAEstatus & | status | ||
) |
Definition at line 7058 of file ISISinstrumentControl.cpp.
References ISISDAE::checkTestPatternAsync(), m_crpt_cs, m_dae, and DAEstatus::result().
Referenced by Cdae::checkTestPattern().
Definition at line 1082 of file ISISinstrumentControl.cpp.
References DAEstatus::addWarningVa(), FAC_DAE, DAEstatus::Failure, ISISCRPT_STRUCT::inst_abrv, ISISCRPT_STRUCT::inst_name, m_app, m_run_number_digits, m_use_full_inst_name_for_files, padWithZeros(), ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::sav_file_count, and DAEstatus::Success.
Referenced by saveCRPTToFile().
|
static |
Definition at line 5662 of file ISISinstrumentControl.cpp.
References appendToFileAsync(), debug_report_arg_t::filename, DAEstatus_message::print(), and DAEstatus::Success.
Referenced by allReportFuncMain().
int ISISinstrumentControl::doneAsync | ( | ) |
called by async worker thread when it has completed its work
Definition at line 5830 of file ISISinstrumentControl.cpp.
References m_async_complete_event, and m_num_async_requests.
Referenced by writeISISRAWthread().
int ISISinstrumentControl::endRun | ( | DAEstatus & | status | ) |
Definition at line 1912 of file ISISinstrumentControl.cpp.
References endRunMain(), and RCretry().
Referenced by Cdae::endRun(), and updateFunc().
|
protected |
Definition at line 2055 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), ISISDAE::addGoodEventCallback(), DAEstatus::addInfoVa(), CRPTProxy::assignLogFiles(), ISISDAE::clearCallbacks(), ISISDAE::closeEventFiles(), endRunTask(), ERRTYPE_OUTOFMEM, FAC_CRPT, FAC_DAE, DAEstatus::Failure, ICPEventWriter::filename(), flushCRPT(), CRPTProxy::histogramEventsToCRPT(), ISISCRPT_STRUCT::icp_start_time, ICPTimer::info(), isRunning(), logEvent(), LOGSTR_INFORMATION, m_crpt, m_crpt_cs, m_crpt_run, m_crpt_signals, m_dae, m_data_dir, m_icpwriter, m_nxwriter, m_run_number_digits, m_status, m_taskmgr, m_use_full_inst_name_for_files, refreshCachedValues(), DAEstatus::result(), ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::run_status, RUNSTATUS_SETUP, ISISCRPT_STRUCT::sav_file_count, se_get_errmsg(), se_set_run_number(), setRunStatusImp(), SEV_ERROR, ISISCRPT_STRUCT::software_period, ICPTimer::start(), ISISCRPT_STRUCT::start_time, ICPEventWriter::stop(), ISISCRPT_STRUCT::stop_time, stopDataCollection(), stopEventWriter(), ISISDAE::StopRunClean, updateCRPTWithDAE(), updateCycle(), and writeRecoveryFile().
Referenced by endRun().
|
protected |
Definition at line 1967 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfoVa(), DAEstatus::addVa(), checkForNoncountingDetectors(), CRPTProxy::CRPT(), EventStore::deleteOutputFile(), ERRTYPE_OUTOFMEM, FAC_CRPT, FAC_DAE, DAEstatus::Failure, ISISCRPT_STRUCT::getPeriodSize(), getSE(), ISISCRPT_STRUCT::icp_start_time, ICPTimer::info(), ISISCRPT_STRUCT::inst_abrv, ISISCRPT_STRUCT::inst_name, loadCRPTWithHistogrammedEvents(), LOGSTR_ERROR, LOGSTR_INFORMATION, m_data_dir, m_run_number_digits, m_use_full_inst_name_for_files, ISISCRPT_STRUCT::nper_daq, DAEstatus::OK(), padWithZeros(), DAEstatus::result(), ISISCRPT_STRUCT::run_number, runPostCommand(), saveCRPTToFile(), se_clear_values(), se_get_errmsg(), SEV_ERROR, ICPTimer::start(), ISISCRPT_STRUCT::start_time, CRPTProxy::unloadCRPT(), updateCRPTwithSE(), and writeJournal().
Referenced by endRunMain(), and rerunFailedEnds().
int ISISinstrumentControl::endSEWait | ( | DAEstatus & | dstatus | ) |
Definition at line 1593 of file ISISinstrumentControl.cpp.
References isWaiting(), logEvent(), LOGSTR_INFORMATION, m_crpt, m_crpt_cs, RUNSTATUS_RUNNING, ISISCRPT_STRUCT::se_status, SESTATUS_INRANGE, setRunStatusImp(), startDataCollection(), and DAEstatus::Success.
Referenced by Cdae::endSEWait().
|
protected |
Definition at line 7316 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, SEV_ERROR, and DAEstatus::Success.
Referenced by updateFunc().
int ISISinstrumentControl::exitProgram | ( | const std::string & | message, |
bool | prompt | ||
) |
Definition at line 5768 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), ERRTYPE_OUTOFMEM, FAC_CRPT, logEvent(), m_crpt, m_status, DAEstatus::reportAll(), and SEV_FATAL.
Referenced by ISISinstrumentControl(), and Cdae::quit().
int ISISinstrumentControl::fillWithTestPattern | ( | unsigned long | pattern, |
DAEstatus & | status | ||
) |
Definition at line 7051 of file ISISinstrumentControl.cpp.
References ISISDAE::fillWithTestPattern(), m_crpt_cs, m_dae, and DAEstatus::result().
Referenced by Cdae::fillWithTestPattern().
void ISISinstrumentControl::fireOnRunStateChange | ( | const char * | state | ) |
Definition at line 7426 of file ISISinstrumentControl.cpp.
References m_state_sig.
|
protected |
Definition at line 655 of file ISISinstrumentControl.cpp.
References CRPTProxy::flushCRPT(), and m_crpt.
Referenced by abortRun(), beginRunMainEx(), endRunMain(), importCRPT(), pauseRunMain(), storeCRPT(), updateFunc(), writeAutosaveFile(), and ~ISISinstrumentControl().
float ISISinstrumentControl::getBeamCurrent | ( | DAEstatus & | status | ) |
Definition at line 3775 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::beam_current, and m_crpt.
int ISISinstrumentControl::getCharItem | ( | const char * | item_name, |
std::string & | cvalue, | ||
DAEstatus & | status | ||
) |
Definition at line 5955 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getCharItem(), and m_crpt.
Referenced by Cdae::getValueMain().
float ISISinstrumentControl::getCountRate | ( | DAEstatus & | status | ) |
Definition at line 5657 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::count_rate, and m_crpt.
int ISISinstrumentControl::getCRPTSpectrumIntegral | ( | long | spec_no, |
long | period, | ||
float | t_low, | ||
float | t_high, | ||
long & | integral, | ||
long & | max_val, | ||
DAEstatus & | status | ||
) |
Definition at line 4849 of file ISISinstrumentControl.cpp.
Referenced by checkForNoncountingDetectors(), Cdae::getCRPTSpectraIntegral(), getCRPTSpectrumIntegral(), Cdae::getSpectraIntegral2(), and updateFunc().
int ISISinstrumentControl::getCRPTSpectrumIntegral | ( | long | n, |
const long | spec_no[], | ||
long | period, | ||
const float | t_low[], | ||
const float | t_high[], | ||
long | integral[], | ||
long | max_val[], | ||
DAEstatus & | status | ||
) |
Definition at line 4867 of file ISISinstrumentControl.cpp.
References getDAQPeriod(), m_crpt, m_crpt_cs, ISISCRPT_STRUCT::ntc, CRPTProxy::rawData(), DAEstatus::result(), ISISCRPT_STRUCT::rtcb, CRPTProxy::spectrumCRPTOffset(), and ISISCRPT_STRUCT::spectrumCRPTTR().
int ISISinstrumentControl::getCRPTSpectrumIntegral | ( | long | spec_start, |
int | nspectra, | ||
long | period, | ||
float | t_low, | ||
float | t_high, | ||
long | integral[], | ||
long | max_val[], | ||
DAEstatus & | status | ||
) |
Definition at line 4854 of file ISISinstrumentControl.cpp.
References getCRPTSpectrumIntegral(), and DAEstatus::result().
int ISISinstrumentControl::getCRPTSpectrumIntegral | ( | long | spec_start, |
int | nspectra, | ||
long | period, | ||
long | integral[], | ||
DAEstatus & | status | ||
) |
Definition at line 4932 of file ISISinstrumentControl.cpp.
References getDAQPeriod(), ISISCRPT_STRUCT::getNumSpectra(), ISISCRPT_STRUCT::isEventSpectrum(), m_crpt, m_crpt_cs, DAEstatus::result(), and CRPTProxy::spectrumIntegrals().
int ISISinstrumentControl::getCurrentPeriodGoodFrames | ( | DAEstatus & | status | ) |
Definition at line 4595 of file ISISinstrumentControl.cpp.
References getCurrentPeriodNumber(), ISISDAE::getGoodFramesPeriod(), m_crpt_cs, and m_dae.
Referenced by Cdae::getGoodFramesPeriod().
float ISISinstrumentControl::getCurrentPeriodGoodUAmpH | ( | DAEstatus & | status | ) |
Definition at line 4577 of file ISISinstrumentControl.cpp.
References getCurrentPeriodNumber(), ISISDAE::getGoodUAmpHoursPeriod(), m_crpt_cs, and m_dae.
Referenced by Cdae::getGoodUAmpHPeriod().
int ISISinstrumentControl::getCurrentPeriodNumber | ( | int & | period, |
int & | daq_period, | ||
DAEstatus & | status | ||
) |
Definition at line 4505 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), DAEstatus::addWarningVa(), FAC_DAE, ISISDAE::getCurrentDAQHardwarePeriod(), ISISDAE::getCurrentHardwarePeriod(), m_crpt, m_crpt_cs, m_dae, m_period_error, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nper_daq, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, ISISCRPT_STRUCT::software_period, and DAEstatus::Success.
Referenced by getCurrentPeriodGoodFrames(), getCurrentPeriodGoodUAmpH(), Cdae::getCurrentPeriodNumber(), getCurrentPeriodRawFrames(), getCurrentPeriodRawUAmpH(), getDAQPeriod(), getFramesAllPeriods(), getUAmpHAllPeriods(), startDataCollection(), stopDataCollection(), and updateFunc().
int ISISinstrumentControl::getCurrentPeriodRawFrames | ( | DAEstatus & | status | ) |
Definition at line 4567 of file ISISinstrumentControl.cpp.
References getCurrentPeriodNumber(), ISISDAE::getRawFramesPeriod(), m_crpt_cs, and m_dae.
float ISISinstrumentControl::getCurrentPeriodRawUAmpH | ( | DAEstatus & | status | ) |
Definition at line 4586 of file ISISinstrumentControl.cpp.
References getCurrentPeriodNumber(), ISISDAE::getRawUAmpHoursPeriod(), m_crpt_cs, and m_dae.
int ISISinstrumentControl::getDAEsettingsXML | ( | const std::string & | dae_xml_in, |
std::string & | dae_xml_out, | ||
DAEstatus & | status | ||
) |
Definition at line 5401 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::detector_table, Ext0Veto, Ext1Veto, Ext2Veto, Ext3Veto, ISISCRPT_STRUCT::fermi_chopper_delay, ISISCRPT_STRUCT::fermi_chopper_width, FermiChopperVeto0, RUNTABLE::fname, ISIS50HzVeto, LabviewXML::loadFromString(), ISISCRPT_STRUCT::lvxml_dae, m_crpt, m_crpt_cs, ISISCRPT_STRUCT::monitor_range, ISISCRPT_STRUCT::monitor_spectrum, ISISCRPT_STRUCT::muon_cerenkov_pulse, DAEstatus::result(), LabviewXML::saveToString(), LabviewXML::setValue(), SMPVeto, ISISCRPT_STRUCT::spectra_table, ISISCRPT_STRUCT::tcb_sync, TS2PulseVeto, LabviewXML::updateFromString(), ISISCRPT_STRUCT::vetos, and ISISCRPT_STRUCT::wiring_table.
Referenced by Cdae::getDAEsettings().
|
protected |
Definition at line 4734 of file ISISinstrumentControl.cpp.
References getCurrentPeriodNumber(), m_crpt, ISISCRPT_STRUCT::nper, and ISISCRPT_STRUCT::period.
Referenced by changePeriod(), getCRPTSpectrumIntegral(), getSpectrum(), getSpectrumIntegral(), and updateCRPTSpectra().
float ISISinstrumentControl::getDuration | ( | DAEstatus & | status | ) |
int ISISinstrumentControl::getFramesAllPeriods | ( | long * | good_frames, |
long * | raw_frames, | ||
int | n, | ||
DAEstatus & | status | ||
) |
Definition at line 7345 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, getCurrentPeriodNumber(), ISISDAE::getGoodFrames(), ISISDAE::getGoodFramesPeriod(), ISISDAE::getRawFrames(), ISISDAE::getRawFramesPeriod(), PERIOD::good_frames, ISISCRPT_STRUCT::good_frames, m_crpt, m_dae, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, SEV_ERROR, PERIOD::total_frames, and ISISCRPT_STRUCT::total_frames.
Referenced by Cdae::getFramesAllPeriods().
int ISISinstrumentControl::getGoodFrames | ( | DAEstatus & | status | ) |
Definition at line 4605 of file ISISinstrumentControl.cpp.
References ISISDAE::getGoodFrames(), m_crpt_cs, and m_dae.
Referenced by Cdae::getGoodFramesTotal(), and startDataCollection().
float ISISinstrumentControl::getGoodUAmpH | ( | DAEstatus & | status | ) |
Definition at line 4545 of file ISISinstrumentControl.cpp.
References ISISDAE::getGoodUAmpHours(), m_crpt_cs, and m_dae.
Referenced by Cdae::getGoodUAmpH(), startDataCollection(), and updateFunc().
int ISISinstrumentControl::getHardwarePeriodsXML | ( | const std::string & | periods_xml_in, |
std::string & | periods_xml_out, | ||
DAEstatus & | status | ||
) |
Definition at line 5222 of file ISISinstrumentControl.cpp.
References LabviewXML::loadFromString(), ISISCRPT_STRUCT::lvxml_periods, m_crpt, m_crpt_cs, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nperseq_request, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_file, ISISCRPT_STRUCT::period_output_delay, ISISCRPT_STRUCT::period_source, ISISCRPT_STRUCT::period_type, PeriodSourceLabview, ISISDAE::PeriodTypeSoftware, DAEstatus::result(), LabviewXML::saveToString(), LabviewXML::setValue(), and LabviewXML::updateFromString().
Referenced by Cdae::getHardwarePeriods().
int ISISinstrumentControl::getIntArrayItem | ( | const char * | item_name, |
long * | larray, | ||
DAEstatus & | status | ||
) |
Definition at line 5985 of file ISISinstrumentControl.cpp.
References CRPTProxy::getIntArrayItem(), getSpectrumNumbersForTimeRegime(), m_crpt, parseSpectraRange(), DAEstatus::Success, updateCRPTSpectra(), and updateCRPTSpectraAllPeriods().
Referenced by Cdae::getArrayValueMain(), and Cdae::getValueMain().
int ISISinstrumentControl::getIntArrayItem | ( | const char * | item_name, |
long * | spec_array, | ||
int | nspec, | ||
long * | larray, | ||
DAEstatus & | status | ||
) |
Definition at line 6013 of file ISISinstrumentControl.cpp.
References CRPTProxy::getIntArrayItem(), getSpectrumNumbersForTimeRegime(), m_crpt, updateCRPTSpectra(), and updateCRPTSpectraAllPeriods().
int ISISinstrumentControl::getIntArrayItemSize | ( | const char * | item_name, |
int * | dims_array, | ||
int & | ndims, | ||
DAEstatus & | status | ||
) |
Definition at line 5980 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getIntArrayItemSize(), and m_crpt.
Referenced by Cdae::getArrayValueMain(), and Cdae::getValueMain().
int ISISinstrumentControl::getIntItem | ( | const char * | item_name, |
long & | lVal, | ||
DAEstatus & | status | ||
) |
Definition at line 5960 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getIntItem(), and m_crpt.
Referenced by Cdae::getArrayValueMain(), and Cdae::getValueMain().
int ISISinstrumentControl::getIntItem | ( | const char * | item_name, |
long * | spec_array, | ||
int | nspec, | ||
long * | lVal, | ||
DAEstatus & | status | ||
) |
Definition at line 5965 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getIntItem(), and m_crpt.
int ISISinstrumentControl::getMEvents | ( | double & | mevents, |
DAEstatus & | status | ||
) |
Definition at line 5608 of file ISISinstrumentControl.cpp.
References getTotalCounts(), and DAEstatus::result().
Referenced by Cdae::getMEvents().
int ISISinstrumentControl::getMEventsPeriod | ( | double & | mevents, |
int | period, | ||
DAEstatus & | status | ||
) |
Definition at line 5616 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getHighestSpectrumNumber(), getSpectrumIntegral(), m_crpt, and DAEstatus::result().
Referenced by Cdae::getMEventsPeriod().
int ISISinstrumentControl::getMonitoringXML | ( | const std::string & | monitor_xml_in, |
std::string & | monitor_xml_out, | ||
DAEstatus & | status | ||
) |
Definition at line 5503 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::Monitoring::action, ISISCRPT_STRUCT::Monitoring::action_period, ISISCRPT_STRUCT::Monitoring::alerts, ISISCRPT_STRUCT::Monitoring::calc_freq, ISISCRPT_STRUCT::Monitoring::enabled, ISISCRPT_STRUCT::Monitoring::expression, ISISCRPT_STRUCT::Monitoring::file, LabviewXML::loadFromString(), ISISCRPT_STRUCT::Monitoring::log_freq, ISISCRPT_STRUCT::lvxml_monitoring, m_crpt, m_crpt_cs, ISISCRPT_STRUCT::monitoring, ISISCRPT_STRUCT::Monitoring::n, DAEstatus::result(), LabviewXML::saveToString(), LabviewXML::setValue(), LabviewXML::updateFromString(), ISISCRPT_STRUCT::Monitoring::v, ISISCRPT_STRUCT::Monitoring::valid_high, and ISISCRPT_STRUCT::Monitoring::valid_low.
Referenced by Cdae::getMonitoringSettings().
int ISISinstrumentControl::getMonitorIntegral | ( | long | monitor, |
long | period, | ||
float | t_low, | ||
float | t_high, | ||
long & | integral, | ||
DAEstatus & | status | ||
) |
Definition at line 5010 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, getSpectrumIntegral(), m_crpt, ISISCRPT_STRUCT::mdet, DAEstatus::result(), SEV_ERROR, and ISISCRPT_STRUCT::spec.
Referenced by getMonitorIntegral().
int ISISinstrumentControl::getMonitorIntegral | ( | long | n, |
const long | monitor[], | ||
long | period, | ||
const float | t_low[], | ||
const float | t_high[], | ||
long | integral[], | ||
DAEstatus & | status | ||
) |
Definition at line 5029 of file ISISinstrumentControl.cpp.
References getMonitorIntegral().
int ISISinstrumentControl::getNPRatio | ( | float * | current, |
float * | average, | ||
DAEstatus & | status | ||
) |
Definition at line 6999 of file ISISinstrumentControl.cpp.
References m_crpt, ISISCRPT_STRUCT::update_npratio_average, and ISISCRPT_STRUCT::update_npratio_current.
Referenced by Cdae::getNPRatio().
int ISISinstrumentControl::getNumberOfPeriods | ( | DAEstatus & | status | ) |
Definition at line 4839 of file ISISinstrumentControl.cpp.
References m_crpt, and ISISCRPT_STRUCT::nper.
Referenced by Cdae::getFramesAllPeriods(), Cdae::getNumberOfPeriods(), and Cdae::getUAmpHAllPeriods().
int ISISinstrumentControl::getNumberOfSpectra | ( | DAEstatus & | status | ) |
Definition at line 4834 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getNumSpectra(), and m_crpt.
Referenced by Cdae::getSpectraSum().
int ISISinstrumentControl::getNumberOfTimeChannels | ( | int | spectrum, |
DAEstatus & | status | ||
) |
Definition at line 4823 of file ISISinstrumentControl.cpp.
References m_crpt, and ISISCRPT_STRUCT::spectrumNTC().
Referenced by Cdae::getSpectrum().
int ISISinstrumentControl::getOptions | ( | std::string & | options_xml, |
DAEstatus & | status | ||
) |
Definition at line 5907 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), ERRTYPE_OUTOFMEM, FAC_DAE, CRPTProxy::isValid(), LabviewXML::loadFromString(), m_crpt, m_crpt_cs, DAEstatus::result(), and SEV_ERROR.
Referenced by Cdae::getOptions().
float ISISinstrumentControl::getPeriodDuration | ( | DAEstatus & | status | ) |
|
inline |
Definition at line 258 of file ISISinstrumentControl.h.
References m_crpt, and ISISCRPT_STRUCT::update_poll_time.
Referenced by updateThread().
|
protected |
Definition at line 7438 of file ISISinstrumentControl.cpp.
References m_log_dir.
Referenced by runPostCommand(), and setupDAE().
|
staticprotected |
Definition at line 2688 of file ISISinstrumentControl.cpp.
Referenced by killProcess().
int ISISinstrumentControl::getRawFrames | ( | DAEstatus & | status | ) |
Definition at line 4559 of file ISISinstrumentControl.cpp.
References ISISDAE::getRawFrames(), m_crpt_cs, and m_dae.
Referenced by Cdae::getRawFramesTotal(), and startDataCollection().
float ISISinstrumentControl::getRawUAmpH | ( | DAEstatus & | status | ) |
Definition at line 4552 of file ISISinstrumentControl.cpp.
References ISISDAE::getRawUAmpHours(), m_crpt_cs, and m_dae.
Referenced by updateFunc().
int ISISinstrumentControl::getRealArrayItem | ( | const char * | item_name, |
double * | darray, | ||
DAEstatus & | status | ||
) |
Definition at line 6044 of file ISISinstrumentControl.cpp.
References CRPTProxy::getRealArrayItem(), getSpectrum(), m_crpt, ISISCRPT_STRUCT::spectrumNTC(), and DAEstatus::Success.
Referenced by Cdae::getArrayValueMain(), and Cdae::getValueMain().
int ISISinstrumentControl::getRealArrayItem | ( | const char * | item_name, |
long * | spec_array, | ||
int | nspec, | ||
double * | darray, | ||
DAEstatus & | status | ||
) |
Definition at line 6035 of file ISISinstrumentControl.cpp.
References CRPTProxy::getRealArrayItem(), m_crpt, and updateCRPTSpectra().
int ISISinstrumentControl::getRealArrayItemSize | ( | const char * | item_name, |
int * | dims_array, | ||
int & | ndims, | ||
DAEstatus & | status | ||
) |
Definition at line 6030 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getRealArrayItemSize(), and m_crpt.
Referenced by Cdae::getArrayValueMain(), and Cdae::getValueMain().
int ISISinstrumentControl::getRealItem | ( | const char * | item_name, |
double & | dblVal, | ||
DAEstatus & | status | ||
) |
Definition at line 5970 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getRealItem(), and m_crpt.
Referenced by Cdae::getArrayValueMain(), and Cdae::getValueMain().
int ISISinstrumentControl::getRealItem | ( | const char * | item_name, |
long * | spec_array, | ||
int | nspec, | ||
double * | dblVal, | ||
DAEstatus & | status | ||
) |
Definition at line 5975 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getRealItem(), and m_crpt.
int ISISinstrumentControl::getRunNumber | ( | ) |
Definition at line 1154 of file ISISinstrumentControl.cpp.
References m_crpt, and ISISCRPT_STRUCT::run_number.
Referenced by Cdae::getRunNumber().
int ISISinstrumentControl::getRunState | ( | ) |
Definition at line 1149 of file ISISinstrumentControl.cpp.
References m_crpt, and ISISCRPT_STRUCT::run_status.
Referenced by Cdae::getRunState().
|
static |
Definition at line 1717 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), FAC_DAE, ISISCRPT_STRUCT::run_number, se_get_blocks(), se_get_errmsg(), ISISCRPT_STRUCT::start_time, and DAEstatus::Success.
Referenced by endRunTask(), and updateCRPTWithSEandSaveToFile().
int ISISinstrumentControl::getSpectrum | ( | long | spectrum_number, |
long | period, | ||
double * | time_array, | ||
double * | signal_array, | ||
double * | error_array, | ||
bool | as_histogram, | ||
bool | as_distribution, | ||
long & | sum, | ||
DAEstatus & | status | ||
) |
Definition at line 4750 of file ISISinstrumentControl.cpp.
References getDAQPeriod(), ISISCRPT_STRUCT::getNumSpectra(), ISISCRPT_STRUCT::isEventSpectrum(), m_crpt, m_crpt_cs, m_dae, CRPTProxy::rawData(), ISISDAE::readDAE1Spectrum(), ISISCRPT_STRUCT::rtcb, CRPTProxy::spectrumCRPTOffset(), ISISCRPT_STRUCT::spectrumCRPTTR(), ISISCRPT_STRUCT::spectrumNTC(), TCBRANGE::start, and ISISCRPT_STRUCT::tcr.
Referenced by getRealArrayItem(), and Cdae::getSpectrum().
int ISISinstrumentControl::getSpectrumIntegral | ( | long | spec_no, |
long | period, | ||
float | t_low, | ||
float | t_high, | ||
long & | integral, | ||
long & | max_val, | ||
DAEstatus & | status | ||
) |
Definition at line 4844 of file ISISinstrumentControl.cpp.
Referenced by getMEventsPeriod(), getMonitorIntegral(), Cdae::getSpectraIntegral(), Cdae::getSpectraSum(), Cdae::getSpectrumIntegral(), and updateFunc().
int ISISinstrumentControl::getSpectrumIntegral | ( | long | n, |
const long | spec_no[], | ||
long | period, | ||
const float | t_low[], | ||
const float | t_high[], | ||
long | integral[], | ||
long | max_val[], | ||
DAEstatus & | status | ||
) |
Definition at line 4956 of file ISISinstrumentControl.cpp.
References getDAQPeriod(), ISISCRPT_STRUCT::getNumSpectra(), ISISCRPT_STRUCT::isEventSpectrum(), m_crpt, m_crpt_cs, m_dae, ISISCRPT_STRUCT::ntc, CRPTProxy::rawData(), ISISDAE::readDAE1Spectrum(), DAEstatus::result(), ISISCRPT_STRUCT::rtcb, CRPTProxy::spectrumCRPTOffset(), and ISISCRPT_STRUCT::spectrumCRPTTR().
int ISISinstrumentControl::getSpectrumNumbersForTimeRegime | ( | long | tr, |
long & | spec_min, | ||
long & | spec_max, | ||
DAEstatus & | status | ||
) |
Definition at line 7517 of file ISISinstrumentControl.cpp.
References m_crpt, ISISCRPT_STRUCT::spec_max, ISISCRPT_STRUCT::spec_min, and DAEstatus::Success.
Referenced by getIntArrayItem(), and Cdae::getSpectrumNumbersForTR().
|
inline |
Definition at line 134 of file ISISinstrumentControl.h.
References m_status.
Referenced by updateThread().
int ISISinstrumentControl::getTCBXML | ( | const std::string & | tcb_xml_in, |
std::string & | tcb_xml_out, | ||
DAEstatus & | status | ||
) |
Definition at line 5084 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), TCBRANGE::end, ERRTYPE_OUTOFMEM, FAC_CRPT, RUNTABLE::fname, ISISCRPT_MAX_NTRG, LabviewXML::loadFromString(), LV_NUM_TIME_REGIMES, ISISCRPT_STRUCT::lvxml_tcb, m_crpt, m_crpt_cs, TCBRANGE::mode, DAEstatus::result(), LabviewXML::saveToString(), LabviewXML::setValue(), SEV_ERROR, TCBRANGE::start, TCBRANGE::tcb_file, TCBRANGE_FILE, TCBRANGE::tcpar, ISISCRPT_STRUCT::tcr, and LabviewXML::updateFromString().
Referenced by Cdae::getTCB().
int ISISinstrumentControl::getTotalCounts | ( | int64_t & | counts, |
DAEstatus & | status | ||
) |
Definition at line 5599 of file ISISinstrumentControl.cpp.
References ISISDAE::getTotalCounts(), m_crpt_cs, m_dae, and DAEstatus::result().
Referenced by getMEvents(), Cdae::getTotalCounts(), and updateFunc().
int ISISinstrumentControl::getUAmpHAllPeriods | ( | float * | good_uamph, |
float * | raw_uamph, | ||
int | n, | ||
DAEstatus & | status | ||
) |
Definition at line 7384 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, getCurrentPeriodNumber(), ISISDAE::getGoodUAmpHours(), ISISDAE::getGoodUAmpHoursPeriod(), ISISDAE::getRawUAmpHours(), ISISDAE::getRawUAmpHoursPeriod(), PERIOD::good_uamph, ISISCRPT_STRUCT::good_uamph, m_crpt, m_dae, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, SEV_ERROR, PERIOD::total_uamph, and ISISCRPT_STRUCT::total_uamph.
Referenced by Cdae::getUAmpHAllPeriods().
int ISISinstrumentControl::getUpdateSettingsXML | ( | const std::string & | update_xml_in, |
std::string & | update_xml_out, | ||
DAEstatus & | status | ||
) |
Definition at line 5040 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::auto_save_type, ISISCRPT_STRUCT::auto_save_value, LabviewXML::loadFromString(), ISISCRPT_STRUCT::lvxml_update, m_crpt, m_crpt_cs, DAEstatus::result(), LabviewXML::saveToString(), LabviewXML::setValue(), ISISCRPT_STRUCT::update_poll_time, and LabviewXML::updateFromString().
Referenced by Cdae::getUpdateSettings().
int ISISinstrumentControl::getVetoStatus | ( | std::string & | veto_text, |
DAEstatus & | status | ||
) |
Definition at line 7067 of file ISISinstrumentControl.cpp.
References ISISDAE::getVetoStatus(), m_crpt_cs, m_dae, and DAEstatus::result().
Referenced by Cdae::getVetoStatus().
int ISISinstrumentControl::importCRPT | ( | const char * | filename, |
DAEstatus & | dstatus | ||
) |
Definition at line 1706 of file ISISinstrumentControl.cpp.
References flushCRPT(), ICPTimer::info(), logEvent(), m_crpt, m_crpt_cs, readISISRAW(), and DAEstatus::result().
bool ISISinstrumentControl::isFinalSequenceComplete | ( | DAEstatus & | status | ) |
Definition at line 7512 of file ISISinstrumentControl.cpp.
References ISISDAE::isFinalSequenceComplete(), and m_dae.
Referenced by Cdae::isFinalSequenceComplete().
|
static |
Definition at line 4465 of file ISISinstrumentControl.cpp.
References DAEstatus::Success.
Referenced by ISISinstrumentControl(), ISOtime(), logEvent(), sqliteReportFunction(), updateICPTimeDiffLog(), updateMonitoringLog(), updateStatusLog(), and writeJournal().
|
static |
Definition at line 4460 of file ISISinstrumentControl.cpp.
References ISOtime().
bool ISISinstrumentControl::isRunning | ( | ) |
Definition at line 1144 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::isRunning(), and m_crpt.
Referenced by abortRun(), endRunMain(), pauseRunMain(), requestEndRunAfterNextSequenceCompletes(), startSEWait(), updateFunc(), updateStatusLog(), and updateStatusXML().
bool ISISinstrumentControl::isWaiting | ( | ) |
Definition at line 1607 of file ISISinstrumentControl.cpp.
References m_crpt, ISISCRPT_STRUCT::run_status, and RUNSTATUS_WAITING.
Referenced by endSEWait(), updateFunc(), and updateStatusLog().
|
protected |
Definition at line 2243 of file ISISinstrumentControl.cpp.
References killProcess(), and DAEstatus::result().
Referenced by ISISinstrumentControl(), and ~ISISinstrumentControl().
|
staticprotected |
Definition at line 2652 of file ISISinstrumentControl.cpp.
References getProcessName().
Referenced by killDatasvr().
|
protected |
Definition at line 2249 of file ISISinstrumentControl.cpp.
References m_icp_service_dir, and spawnCommand().
Referenced by ISISinstrumentControl().
|
protected |
Definition at line 640 of file ISISinstrumentControl.cpp.
References DAEstatus::Failure, LabviewXML::getValue(), CRPTProxy::loadOrCreateCRPT(), m_comp_name, m_crpt, m_dae_type, m_data_dir, m_icp_config, m_status, and readRecoveryFile().
Referenced by ISISinstrumentControl().
|
staticprotected |
Definition at line 1949 of file ISISinstrumentControl.cpp.
References EventStore::addFileInputSource(), EventStore::addGoodEventCallback(), CRPTProxy::CRPT(), CRPTProxy::crptData(), EventStore::endHeaderSeen(), CRPTProxy::histogramEventsToCRPT(), ISISCRPT_STRUCT::run_number, EventStore::start(), EventStore::stop(), and CRPTProxy::zeroEventRawData().
Referenced by endRunTask().
int ISISinstrumentControl::loadDAEWithData | ( | const std::string & | file_name, |
long | options, | ||
DAEstatus & | status | ||
) |
Definition at line 7221 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfo(), ISISRAW::crat, ISISRAW::dat1, ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, ISISRAW::i_det, ISISRAW::i_use, loadDAEWithNeXusData(), m_crpt, m_crpt_cs, m_dae, ISISRAW::modn, ISISRAW::mpos, ISISCRPT_STRUCT::ndet, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nsp, ISISCRPT_STRUCT::ntc, ISISCRPT_STRUCT::nuse, ISISRAW::printInfo(), ISISRAW::readFromFile(), DAEstatus::result(), SEV_ERROR, ISISRAW::spec, ISISRAW::t_nper, ISISRAW::t_nsp1, ISISRAW::t_ntc1, ISISDAE::writeHistogramMemory(), and ISISDAE::writePOSLUTMemory().
Referenced by Cdae::loadDAEWithData().
|
protected |
Definition at line 7082 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfo(), DAEstatus::addVa(), ISISCRPT_STRUCT::crat, ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, ISISCRPT_STRUCT::good_frames, ISISCRPT_STRUCT::good_uamph, m_crpt, m_crpt_cs, m_dae, ISISCRPT_STRUCT::modn, ISISCRPT_STRUCT::mpos, ISISCRPT_STRUCT::ndet, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nsp, ISISCRPT_STRUCT::ntc, DAEstatus::result(), ISISCRPT_STRUCT::run_status, RUNSTATUS_PAUSED, SEV_ERROR, ISISCRPT_STRUCT::spec, ISISCRPT_STRUCT::total_frames, ISISCRPT_STRUCT::total_uamph, ISISDAE::writeHistogramMemory(), and ISISDAE::writePOSLUTMemory().
Referenced by loadDAEWithData().
|
staticprotected |
Definition at line 4435 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), appendToFileAsync(), CRPTProxy::eventLog(), FAC_DAE, ISOtime(), CRPTProxy::isValid(), ISISCRPT_STRUCT::run_number, se_get_errmsg(), se_log_value_async(), and DAEstatus::Success.
Referenced by abortRun(), beginRunMainEx(), endRunMain(), endSEWait(), exitProgram(), importCRPT(), logEvent(), logEventVaImp(), pauseRunMain(), resumeRun(), saveRun(), setRunNumber(), setRunStatus(), startSEWait(), storeCRPT(), updateCRPTWithDAE(), and writeAutosaveFile().
|
staticprotected |
Definition at line 4430 of file ISISinstrumentControl.cpp.
References logEvent().
|
staticprotected |
Definition at line 4413 of file ISISinstrumentControl.cpp.
References logEventVaImp().
Referenced by changePeriod(), ISISinstrumentControl(), snapshotCRPT(), startDataCollection(), stopDataCollection(), and updateFunc().
|
staticprotected |
Definition at line 4404 of file ISISinstrumentControl.cpp.
References logEventVaImp().
|
staticprotected |
Definition at line 4422 of file ISISinstrumentControl.cpp.
References logEvent(), and NULL_TERMINATE.
Referenced by logEventVa().
|
protected |
Definition at line 2507 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::beamlogger, m_crpt, and beamlogger_t::muonkicker.
Referenced by updateFunc().
int ISISinstrumentControl::notifyICP | ( | long | event_id, |
const char * | param, | ||
DAEstatus & | status | ||
) |
Definition at line 6143 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), BeamlineParamerersChanged, ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, SampleParametersChanged, SEV_ERROR, updateBeamlineParametersFromFile(), updateSampleParametersFromFile(), updateUserDetailsFromFile(), and UserDetailsChanged.
Referenced by Cdae::notifyICP().
|
protected |
int ISISinstrumentControl::pauseRun | ( | DAEstatus & | status | ) |
Definition at line 1513 of file ISISinstrumentControl.cpp.
References pauseRunMain().
Referenced by Cdae::pauseRun().
|
protected |
Definition at line 1518 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfoVa(), ERRTYPE_OUTOFMEM, FAC_CRPT, DAEstatus::Failure, flushCRPT(), isRunning(), logEvent(), m_crpt, m_crpt_cs, refreshCachedValues(), ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::run_status, RUNSTATUS_PAUSED, RUNSTATUS_SETUP, setRunStatusImp(), SEV_ERROR, stopDataCollection(), ISISDAE::StopRunClean, and DAEstatus::Success.
Referenced by changePeriodWhileRunning(), and pauseRun().
|
static |
Definition at line 4487 of file ISISinstrumentControl.cpp.
References DAEstatus::Success.
Referenced by prettyTime(), and updateStatusXML().
|
static |
Definition at line 4482 of file ISISinstrumentControl.cpp.
References prettyTime().
std::ostream & ISISinstrumentControl::printStatus | ( | std::ostream & | os, |
DAEstatus & | dstatus | ||
) |
Definition at line 5681 of file ISISinstrumentControl.cpp.
References m_dae, and ISISDAE::printStatus().
Referenced by Cdae::dumpDebugInfo().
|
staticprotected |
Definition at line 93 of file ISISinstrumentControl.cpp.
Referenced by ISISinstrumentControl().
|
protected |
Definition at line 841 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), DAEstatus::addWarningVa(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, MAX_RC_RETRY, DAEstatus::OK(), DAEstatus::resetSeverityToAtMost(), SEV_ERROR, and SEV_WARNING.
Referenced by beginRun(), beginRunEx(), and endRun().
|
protected |
< number of time a beam value must be zero or non-zero to count as off or on
POCO does not need the root /ISISBEAM prefix
Definition at line 2376 of file ISISinstrumentControl.cpp.
References beamlogger_t::beam_off_time, beamlogger_t::beam_on, beamlogger_t::beam_on_time, ISISCRPT_STRUCT::beamlogger, beamlogger_t::beams, beamlogger_t::beamt, getBeamlogFloat(), getBeamlogInt(), getBeamlogInt64(), getBeamlogString(), ISISCRPT_STRUCT::inst_name, LOGSTR_ERROR, LOGSTR_INFORMATION, m_crpt, beamlogger_t::muonkicker, beamlogger_t::repr, beamlogger_t::repr_normal, beamlogger_t::shutter, beamlogger_t::time, beamlogger_t::ts, beamlogger_t::ts1_repr, beamlogger_t::ts_total, and beamlogger_t::valid.
Referenced by ISISinstrumentControl().
|
protected |
Definition at line 3284 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), DAEstatus::addVa(), DAEstatus::addWarning(), compareChecksums(), data_dae_t::crate, data_dae_t::data_bytes, ISISCRPT_STRUCT::data_dae, ISISCRPT_STRUCT::data_dae_table, data_dae_t::data_type, ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, getAttrFloatValue(), getAttrIntegerValue(), data_dae_t::id, ISISCRPT_MAX_DATADAE, m_crpt, m_crpt_cs, md5sumFile(), ISISCRPT_STRUCT::n_data_dae, data_dae_t::name, NULL_TERMINATE, data_dae_t::offset, data_dae_t::raw_units, data_dae_t::scale, data_dae_t::scaled_units, SEV_ERROR, DAEstatus::Success, and data_dae_t::tr.
Referenced by readTables().
|
protected |
Definition at line 2917 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), DAEstatus::addVa(), DAEstatus::addWarningVa(), RUNTABLE::checksum, DETECTOR::code, ISISCRPT_STRUCT::code, compareChecksums(), ISISCRPT_STRUCT::delt, ISISCRPT_STRUCT::detector_table, ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, RUNTABLE::file_size, RUNTABLE::fname, ISISCRPT_STRUCT::inst_name, DetectorFileMantid::instName(), DetectorFileMantid::instParameterMap(), DetectorFileMantid::instParameterMapFileName(), ISISCRPT_STRUCT::instrument_parameter_map_file, ISISCRPT_STRUCT::instrument_xml_file, DetectorFileMantid::instXML(), DetectorFileMantid::instXMLFileName(), ISISCRPT_MAX_USER, DETECTOR::l2, ISISCRPT_STRUCT::len2, LOGSTR_WARNING, m_crpt, m_crpt_cs, m_instrument_parameter_map_file, m_instrument_xml_file, md5sumFile(), RUNTABLE::mod_time, ISISCRPT_STRUCT::ndet, NULL_TERMINATE, ISISCRPT_STRUCT::nuse, DETECTOR::offset, SEV_ERROR, DAEstatus::Success, DETECTOR::theta, ISISCRPT_STRUCT::tthe, ISISCRPT_STRUCT::udet, DETECTOR::ut, and ISISCRPT_STRUCT::ut.
Referenced by readTables().
int ISISinstrumentControl::readISISRAW | ( | const char * | filename, |
DAEstatus & | dstatus | ||
) |
Definition at line 5889 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), CRPTProxy::CRPT(), ERRTYPE_OUTOFMEM, FAC_CRPT, ISISRAW::ioRAW(), m_crpt, CRPTProxy::rawData(), and SEV_ERROR.
Referenced by importCRPT().
|
protected |
|
protected |
Definition at line 2138 of file ISISinstrumentControl.cpp.
References DAEstatus::addWarning(), DAEstatus::addWarningVa(), changeUpdateSettingsXML(), IXNeXusFile::close(), IXNeXusFile::closeGroup(), FAC_DAE, DAEstatus::Failure, IXNeXusFile::listEntries(), m_crpt, m_recovery_file, m_recovery_map, ISISCRPT_STRUCT::markInitialised(), nxErrorFunc(), IXNeXusFile::OK, IXNeXusFile::open(), IXNeXusFile::openGroup(), IXNeXusFile::Read, IXNeXusFile::readData(), ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::sav_file_count, DAEstatus::Success, updateDAEsettingsXML(), updateHardwarePeriodsXML(), updateMonitoringXML(), updateSampleXML(), updateTCBXML(), updateUserXML(), and updateXML().
Referenced by loadCRPT().
|
protected |
<
Definition at line 3078 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), DAEstatus::addVa(), DAEstatus::addWarningVa(), ISISCRPT_STRUCT::calculateCRPTOffsets(), RUNTABLE::checksum, compareChecksums(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, RUNTABLE::file_size, RUNTABLE::fname, ISISCRPT_STRUCT::getHighestSpectrumNumber(), ISISCRPT_MAX_DETECTOR, ISISCRPT_MAX_NTRG, m_crpt, m_crpt_cs, md5sumFile(), RUNTABLE::mod_time, ISISCRPT_STRUCT::ndet, ISISCRPT_STRUCT::nsp, ISISCRPT_STRUCT::ntrg, NULL_TERMINATE, SEV_ERROR, ISISCRPT_STRUCT::spec, ISISCRPT_STRUCT::spec_max, ISISCRPT_STRUCT::spec_min, ISISCRPT_STRUCT::spec_to_index, ISISCRPT_STRUCT::spectra_table, ISISCRPT_STRUCT::spectrumCRPTTR(), DAEstatus::Success, ISISCRPT_STRUCT::timr_crpt, and ISISCRPT_STRUCT::udet.
Referenced by readTables().
int ISISinstrumentControl::readTables | ( | const char * | wiring, |
const char * | detector, | ||
const char * | spectra, | ||
DAEstatus & | status | ||
) |
Definition at line 29 of file ISISinstrumentControl.cpp.
References DAEstatus::Failure, m_app, m_crpt, ISISCRPT_STRUCT::n_data_dae, readDataDaeTable(), readDetectorTable(), readSpectraTable(), readWiringTable(), DAEstatus::Success, and ISISCRPT_STRUCT::tables_valid.
Referenced by _tmain(), and updateDAEsettingsXML().
|
protected |
Definition at line 2727 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), DAEstatus::addVa(), DAEstatus::addWarningVa(), RUNTABLE::checksum, compareChecksums(), ISISCRPT_STRUCT::crat, DAE2CardPolicy::CRATE_MOD, ISISCRPT_STRUCT::crptTR(), ISISCRPT_STRUCT::daeTR(), ISISCRPT_STRUCT::det_group, ISISCRPT_STRUCT::det_group_max, ISISCRPT_STRUCT::det_mode, ISISCRPT_STRUCT::detector_table, ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, RUNTABLE::file_size, ISISCRPT_STRUCT::fileTR(), ISISCRPT_STRUCT::isEventTR(), ISISCRPT_MAX_DETECTOR, ISISCRPT_MAX_MONITOR, m_crpt, m_crpt_cs, md5sumFile(), ISISCRPT_STRUCT::mdet, RUNTABLE::mod_time, ISISCRPT_STRUCT::modn, ISISCRPT_STRUCT::monp, ISISCRPT_STRUCT::mpos, ISISCRPT_STRUCT::ndet, ISISCRPT_STRUCT::nmon, NULL_TERMINATE, ISISCRPT_STRUCT::save_monitor_events, SEV_ERROR, ISISCRPT_STRUCT::spectra_table, DAEstatus::Success, ISISCRPT_STRUCT::timr_crpt, ISISCRPT_STRUCT::timr_dae, ISISCRPT_STRUCT::timr_file, ISISCRPT_STRUCT::udet, and ISISCRPT_STRUCT::wiring_table.
Referenced by readTables().
int ISISinstrumentControl::refreshCachedValues | ( | DAEstatus & | status | ) |
Definition at line 5941 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), ERRTYPE_OUTOFMEM, FAC_DAE, ICPTimer::info(), CRPTProxy::isValid(), m_crpt, m_crpt_cs, DAEstatus::result(), SEV_ERROR, and updateFunc().
Referenced by abortRun(), beginRunMainEx(), changePeriod(), endRunMain(), pauseRunMain(), and Cdae::refreshCachedValues().
boost::signals2::connection ISISinstrumentControl::registerOnRunStateChange | ( | boost::function< void(BSTR)> | func | ) |
Definition at line 7421 of file ISISinstrumentControl.cpp.
References m_state_sig.
_se_translator_function ISISinstrumentControl::registerStructuredExceptionHandler | ( | ) |
this needs to be called per thread
Definition at line 102 of file ISISinstrumentControl.cpp.
References m_registersetranslator, and seTransFunction().
Referenced by Cdae::callICP(), Cdae::checkTestPattern(), Cdae::dumpDebugInfo(), Cdae::fillWithTestPattern(), Cdae::getArrayValue(), Cdae::getRunNumber(), Cdae::getRunState(), Cdae::getsect(), Cdae::getSpectraIntegral2(), Cdae::getSpectraIntegralHelper(), Cdae::getSpectraSum(), Cdae::getSpectrum(), Cdae::getSpectrumIntegral(), Cdae::getValue(), ISISinstrumentControl(), Cdae::quit(), Cdae::rio(), Cdae::setICPValueLong(), Cdae::sumAllHistogramMemory(), Cdae::sumAllSpectra(), updateThread(), Cdae::VMEReadArray(), Cdae::VMEReadValue(), Cdae::VMEReadValuesToString(), Cdae::VMEWriteArray(), and Cdae::VMEWriteValue().
|
staticprotected |
Definition at line 6294 of file ISISinstrumentControl.cpp.
References DAEstatus::Success.
Referenced by setRealParameter(), and setStringParameter().
int ISISinstrumentControl::requestEndRunAfterNextSequenceCompletes | ( | DAEstatus & | status | ) |
Definition at line 7500 of file ISISinstrumentControl.cpp.
References isRunning(), m_dae, ISISDAE::requestEndRunAfterNextSequenceCompletes(), and DAEstatus::Success.
Referenced by Cdae::requestEndRunAfterNextSequenceCompletes().
|
protected |
Definition at line 553 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), endRunTask(), FAC_CRPT, LOGSTR_ERROR, m_app, m_crpt, m_nxwriter, m_status, m_taskmgr, CRPTProxy::rawDataSizeMax(), and ISISCRPT_STRUCT::run_number.
Referenced by ISISinstrumentControl().
int ISISinstrumentControl::resumeRun | ( | DAEstatus & | status | ) |
Definition at line 1612 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfoVa(), ERRTYPE_OUTOFMEM, FAC_CRPT, DAEstatus::Failure, logEvent(), m_crpt, m_crpt_cs, DAEstatus::result(), ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::run_status, RUNSTATUS_PAUSED, RUNSTATUS_RUNNING, RUNSTATUS_WAITING, ISISCRPT_STRUCT::se_status, SESTATUS_INRANGE, setRunStatusImp(), SEV_ERROR, and startDataCollection().
Referenced by changePeriodWhileRunning(), and Cdae::resumeRun().
Definition at line 1159 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_CRPT, DAEstatus::Failure, ISISDAE::getGoodFrames(), ISISDAE::getGoodPPPLower(), ISISDAE::getGoodPPPUpper(), ISISDAE::getRawFrames(), ISISDAE::getRawPPPLower(), ISISDAE::getRawPPPUpper(), m_dae, SEV_ERROR, and DAEstatus::Success.
Referenced by Cdae::rio().
|
protected |
Definition at line 1102 of file ISISinstrumentControl.cpp.
References DAEstatus::addWarningVa(), FAC_DAE, getPostCommandLogName(), m_app, DAEstatus::result(), and spawnCommand().
Referenced by beginRunMainEx(), endRunTask(), saveCRPTToFile(), snapshotCRPT(), storeCRPT(), and writeAutosaveFile().
int ISISinstrumentControl::saveCRPTToFile | ( | const CRPTProxy & | crpt, |
const std::string & | raw_filename, | ||
const std::string & | nexus_filename, | ||
const seblock_map_t & | blocks, | ||
const std::string & | events_nxfile, | ||
DAEstatus & | dstatus | ||
) |
Definition at line 1777 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), createLastrunFile(), CRPTProxy::CRPT(), FAC_DAE, m_dae_type, m_inst_settings_dir, m_instrument_parameter_map_file, m_instrument_xml_file, m_nexus_files, m_nxwriter, m_taskmgr, m_vms_raw_files, ISISDAE::MuonDAE2, ISISDAE::MuonDAE3, CRPTProxy::rawData(), CRPTProxy::rawDataSizeMax(), DAEstatus::result(), ISISCRPT_STRUCT::run_number, runPostCommand(), writeISISNeXus(), writeISISRAW(), and NeXusWriter::writeMuonFile().
Referenced by endRunTask(), and updateCRPTWithSEandSaveToFile().
int ISISinstrumentControl::saveRun | ( | DAEstatus & | status | ) |
Definition at line 1637 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfo(), FAC_CRPT, logEvent(), m_crpt, m_crpt_cs, DAEstatus::OK(), DAEstatus::result(), storeCRPT(), and updateCRPTWithDAE().
Referenced by Cdae::saveRun().
|
protected |
Definition at line 2287 of file ISISinstrumentControl.cpp.
References DAEstatus::addWarningVa(), FAC_DAE, DAEstatus::Failure, m_app, m_comp_name, m_icp_service_dir, spawnCommand(), and DAEstatus::Success.
Referenced by updateFunc().
int ISISinstrumentControl::setBeamlineParameters | ( | const string_table_t & | table, |
DAEstatus & | status | ||
) |
Definition at line 6453 of file ISISinstrumentControl.cpp.
References CRPTProxy::beamlineParameters(), m_crpt, se_get_block_values(), stringTableToParameterMap(), DAEstatus::Success, and updateBeamlineParameters().
Referenced by Cdae::setBeamlineParameters().
int ISISinstrumentControl::setBlockTable | ( | const string_table_t & | table, |
DAEstatus & | status | ||
) |
Definition at line 6487 of file ISISinstrumentControl.cpp.
References DAEstatus::Success.
Referenced by Cdae::setBlocksTable().
int ISISinstrumentControl::setLinearTimeChannelRange | ( | int | range_number, |
float | start, | ||
float | end, | ||
float | step, | ||
DAEstatus & | status | ||
) |
Definition at line 3743 of file ISISinstrumentControl.cpp.
References setTimeChannelRange(), and TCBRANGE_CONST_T.
Referenced by _tmain().
int ISISinstrumentControl::setLogTimeChannelRange | ( | int | range_number, |
float | start, | ||
float | end, | ||
float | step, | ||
DAEstatus & | status | ||
) |
Definition at line 3748 of file ISISinstrumentControl.cpp.
References setTimeChannelRange(), and TCBRANGE_INC_T.
int ISISinstrumentControl::setOptions | ( | const std::string & | options_xml, |
DAEstatus & | status | ||
) |
Definition at line 5924 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), ERRTYPE_OUTOFMEM, FAC_DAE, CRPTProxy::isValid(), LabviewXML::loadFromString(), m_crpt, m_crpt_cs, DAEstatus::result(), and SEV_ERROR.
Referenced by Cdae::setOptions().
|
staticprotected |
Definition at line 88 of file ISISinstrumentControl.cpp.
Referenced by registerStructuredExceptionHandler().
|
staticprotected |
Definition at line 6369 of file ISISinstrumentControl.cpp.
References replaceSEparameters().
Referenced by updateBeamlineParameters(), and updateSampleParameters().
|
inline |
Definition at line 232 of file ISISinstrumentControl.h.
References logEvent(), m_crpt, m_crpt_cs, ISISCRPT_STRUCT::run_number, and DAEstatus::Success.
Referenced by Cdae::setICPValueLong().
|
inline |
Definition at line 233 of file ISISinstrumentControl.h.
References logEvent(), m_crpt, m_crpt_cs, and setRunStatusImp().
Referenced by Cdae::setICPValueLong().
|
protected |
Definition at line 7529 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), FAC_DAE, m_crpt, ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::run_status, runstatus_names, se_get_errmsg(), se_set_run_state(), and DAEstatus::Success.
Referenced by abortRun(), beginRunMainEx(), endRunMain(), endSEWait(), pauseRunMain(), resumeRun(), setRunStatus(), and startSEWait().
int ISISinstrumentControl::setSampleParameters | ( | const string_table_t & | table, |
DAEstatus & | status | ||
) |
Definition at line 6407 of file ISISinstrumentControl.cpp.
References m_crpt, CRPTProxy::sampleParameters(), se_get_block_values(), stringTableToParameterMap(), DAEstatus::Success, and updateSampleParameters().
Referenced by Cdae::setSampleParameters().
|
staticprotected |
Definition at line 6386 of file ISISinstrumentControl.cpp.
References replaceSEparameters().
Referenced by updateBeamlineParameters(), and updateSampleParameters().
|
protected |
Definition at line 3753 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), TCBRANGE::end, ERRTYPE_OUTOFMEM, FAC_TCB, DAEstatus::Failure, ISISCRPT_MAX_TCR, m_crpt, m_crpt_cs, TCBRANGE::mode, TCBRANGE::npar, ISISCRPT_STRUCT::ntcr, ISISCRPT_STRUCT::ntrg, SEV_ERROR, TCBRANGE::start, DAEstatus::Success, tcbcalc(), TCBRANGE::tcpar, and ISISCRPT_STRUCT::tcr.
Referenced by setLinearTimeChannelRange(), and setLogTimeChannelRange().
|
protected |
Definition at line 1213 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfo(), DAEstatus::addInfoVa(), DAEstatus::addVa(), DAEstatus::addWarningVa(), changePeriod(), ISISDAE::clearCounters(), ISISDAE::clearDCEventMode(), ISISDAE::clearHistogramMemory(), ISISCRPT_STRUCT::clock_frequency, ISISCRPT_STRUCT::crat, data_dae_t::crate, DAE2CardPolicy::CRATE_MOD, ISISCRPT_STRUCT::daeTR(), ISISCRPT_STRUCT::data_dae, ISISCRPT_STRUCT::det_mode, ISISDAE::disablePeriodCard(), ISISCRPT_STRUCT::electronics_delay, ERRTYPE_OUTOFMEM, Ext0Veto, Ext1Veto, Ext2Veto, Ext3Veto, FAC_CRPT, FAC_DAE, DAEstatus::Failure, ISISCRPT_STRUCT::fermi_chopper_delay, ISISCRPT_STRUCT::fermi_chopper_width, FermiChopperVeto0, ISISCRPT_STRUCT::fullTR(), ISISDAE::getExternalResetCommands(), ISISCRPT_STRUCT::getPeriodSize(), getPostCommandLogName(), ISISCRPT_STRUCT::isEventTR(), ISIS50HzVeto, ISISCRPT_MAX_NTRG, ISISCRPT_MAX_PERIOD, ISISDAE_MAX_DAE2TIMECHAN, m_crpt, m_dae, ISISCRPT_STRUCT::modn, ISISCRPT_STRUCT::mpos, ISISCRPT_STRUCT::muon_cerenkov_pulse, ISISCRPT_STRUCT::n_data_dae, ISISCRPT_STRUCT::ndet, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nper_daq, ISISCRPT_STRUCT::nperseq_request, ISISCRPT_STRUCT::ntc, ISISCRPT_STRUCT::ntrg, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_output_delay, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, ISISDAE::programDAE1POSLUT(), ISISDAE::programPeriodCard(), CRPTProxy::rawDataSizeMax(), ISISDAE::resetRunController(), ISISDAE::setDAE1Vetos(), ISISDAE::setDCCardMode(), ISISDAE::setDCEventMode(), ISISDAE::setDCFrameSyncDelay(), ISISDAE::setEventMode(), ISISDAE::setFrameSync(), ISISDAE::setFrameSyncDelay(), ISISDAE::setPeriodType(), ISISDAE::setTimeChannels(), SEV_ERROR, SMPVeto, ISISCRPT_STRUCT::software_period, spawnCommand(), ISISCRPT_STRUCT::spec, ISISDAE::stopRun(), ISISDAE::StopRunFast, DAEstatus::Success, ISISCRPT_STRUCT::tcb, ISISCRPT_STRUCT::tcb_delay, ISISCRPT_STRUCT::tcb_pulse_generator, ISISCRPT_STRUCT::tcb_sync, ISISCRPT_STRUCT::tcb_trdelay, ISISCRPT_STRUCT::timr_crpt, ISISCRPT_STRUCT::timr_dae, ISISCRPT_STRUCT::timr_file, data_dae_t::tr, TS2PulseVeto, ISISCRPT_STRUCT::udet, updateSpecmapsFromDAE(), and ISISCRPT_STRUCT::vetos.
Referenced by beginRunMainEx(), and ISISinstrumentControl().
int ISISinstrumentControl::setUserParameters | ( | long | rbno, |
const string_table_t & | table, | ||
DAEstatus & | status | ||
) |
Definition at line 6492 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::institute, ISISCRPT_STRUCT::local_contact, m_crpt, NULL_TERMINATE, ISISCRPT_STRUCT::rb_number, DAEstatus::Success, and ISISCRPT_STRUCT::user_name.
Referenced by Cdae::setUserParameters().
int ISISinstrumentControl::setVeto | ( | const std::string & | name, |
long | enable, | ||
DAEstatus & | status | ||
) |
Definition at line 7309 of file ISISinstrumentControl.cpp.
References m_crpt_cs, m_dae, DAEstatus::result(), and ISISDAE::setVeto().
Referenced by Cdae::setVeto().
|
inline |
Definition at line 236 of file ISISinstrumentControl.h.
References m_shutdown_requested.
Referenced by updateThread().
int ISISinstrumentControl::snapshotCRPT | ( | const char * | filename, |
bool | do_update, | ||
bool | do_pause, | ||
DAEstatus & | status | ||
) |
Definition at line 1843 of file ISISinstrumentControl.cpp.
References ICPTimer::info(), logEventVa(), m_crpt, m_crpt_cs, DAEstatus::result(), runPostCommand(), updateCRPTWithDAE(), and updateCRPTWithSEandSaveToFile().
Referenced by Cdae::snapshotCRPT().
|
staticprotected |
Definition at line 2514 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), DAEstatus::addVa(), ERRTYPE_OUTOFMEM, FAC_DAE, NULL_TERMINATE, DAEstatus::result(), and SEV_ERROR.
Referenced by launchDatasvr(), runPostCommand(), sendNagios(), and setupDAE().
|
static |
Definition at line 5672 of file ISISinstrumentControl.cpp.
References ISOtime(), debug_report_arg_t::run_number, se_log_value_async(), DAEstatus_message::str(), and DAEstatus::Success.
|
protected |
Definition at line 726 of file ISISinstrumentControl.cpp.
References getCurrentPeriodNumber(), getGoodFrames(), getGoodUAmpH(), getRawFrames(), logEventVa(), LOGSTR_DEBUG, m_crpt, m_crpt_cs, m_dae, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::resume_time, ISISCRPT_STRUCT::run_number, PERIOD::start_time, and ISISDAE::startRun().
Referenced by beginRunMainEx(), endSEWait(), ISISinstrumentControl(), resumeRun(), and updateCRPTWithDAE().
|
protected |
Definition at line 1117 of file ISISinstrumentControl.cpp.
Referenced by beginRunMainEx(), and ISISinstrumentControl().
int ISISinstrumentControl::startSEWait | ( | DAEstatus & | dstatus | ) |
Definition at line 1579 of file ISISinstrumentControl.cpp.
References isRunning(), logEvent(), LOGSTR_INFORMATION, m_crpt, m_crpt_cs, RUNSTATUS_WAITING, ISISCRPT_STRUCT::se_status, SESTATUS_OUTOFRANGE, setRunStatusImp(), stopDataCollection(), ISISDAE::StopRunFast, and DAEstatus::Success.
Referenced by Cdae::startSEWait().
|
protected |
Definition at line 756 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), ISISDAE::disableDelayedStart(), PERIOD::duration, ISISCRPT_STRUCT::duration, Ext0Veto, Ext1Veto, Ext2Veto, Ext3Veto, FAC_DAE, FIFOVeto, getCurrentPeriodNumber(), ISISDAE::getCurrentPeriodSequence(), ISISDAE::getExternalVetoedFrames(), ISISDAE::getFIFOVetoedFrames(), ISISDAE::getGoodFrames(), ISISDAE::getGoodFramesPeriod(), ISISDAE::getGoodPPPLower(), ISISDAE::getGoodPPPUpper(), ISISDAE::getGoodUAmpHours(), ISISDAE::getGoodUAmpHoursPeriod(), ISISDAE::getISIS50HzVetoedFrames(), ISISDAE::getMSModeVetoedFrames(), ISISDAE::getRawFrames(), ISISDAE::getRawFramesPeriod(), ISISDAE::getRawPPPLower(), ISISDAE::getRawPPPUpper(), ISISDAE::getRawUAmpHours(), ISISDAE::getRawUAmpHoursPeriod(), ISISDAE::getSMPVetoedFrames(), ISISDAE::getTS2PulseVetoedFrames(), PERIOD::good_frames, ISISCRPT_STRUCT::good_frames, ISISCRPT_STRUCT::good_ppp_high, ISISCRPT_STRUCT::good_ppp_low, PERIOD::good_uamph, ISISCRPT_STRUCT::good_uamph, ICPTimer::info(), ISIS50HzVeto, logEventVa(), LOGSTR_DEBUG, m_crpt, m_crpt_cs, m_dae, MSModeVeto, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nperseq, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, ISISCRPT_STRUCT::resume_time, SMPVeto, PERIOD::stop_time, ISISCRPT_STRUCT::stop_time, ISISDAE::stopRun(), PERIOD::total_frames, ISISCRPT_STRUCT::total_frames, ISISCRPT_STRUCT::total_ppp_high, ISISCRPT_STRUCT::total_ppp_low, PERIOD::total_uamph, ISISCRPT_STRUCT::total_uamph, TS2PulseVeto, and ISISCRPT_STRUCT::vetos.
Referenced by abortRun(), endRunMain(), ISISinstrumentControl(), pauseRunMain(), startSEWait(), and updateCRPTWithDAE().
|
protected |
Definition at line 1132 of file ISISinstrumentControl.cpp.
Referenced by endRunMain().
int ISISinstrumentControl::storeCRPT | ( | DAEstatus & | status | ) |
Definition at line 1862 of file ISISinstrumentControl.cpp.
References m_crpt, and m_crpt_cs.
Referenced by saveRun(), and Cdae::storeCRPT().
Definition at line 1868 of file ISISinstrumentControl.cpp.
References flushCRPT(), ICPTimer::info(), ISISCRPT_STRUCT::inst_abrv, ISISCRPT_STRUCT::inst_name, logEvent(), m_data_dir, m_run_number_digits, m_use_full_inst_name_for_files, padWithZeros(), DAEstatus::result(), ISISCRPT_STRUCT::run_number, runPostCommand(), ISISCRPT_STRUCT::sav_file_count, updateCRPTWithSEandSaveToFile(), and writeRecoveryFile().
|
staticprotected |
Definition at line 6215 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, SEV_ERROR, and DAEstatus::Success.
Referenced by setBeamlineParameters(), and setSampleParameters().
int ISISinstrumentControl::sumAllHistogramMemory | ( | long & | counts, |
DAEstatus & | status | ||
) |
Definition at line 5650 of file ISISinstrumentControl.cpp.
References m_crpt_cs, m_dae, DAEstatus::result(), and ISISDAE::sumAllHistogramMemory().
Referenced by Cdae::sumAllHistogramMemory().
int ISISinstrumentControl::sumAllSpectra | ( | long & | counts, |
long & | bin0_counts, | ||
DAEstatus & | status | ||
) |
Definition at line 5628 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getHighestSpectrumNumber(), ISISCRPT_STRUCT::getPeriodSize(), m_crpt, ISISCRPT_STRUCT::nper_daq, CRPTProxy::rawData(), DAEstatus::result(), CRPTProxy::spectrumCRPTOffset(), and updateCRPTWithDAE().
Referenced by Cdae::sumAllSpectra().
|
protected |
Definition at line 3412 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), DAEstatus::addVa(), ISISCRPT_STRUCT::buildTimeRegimeMap(), ISISCRPT_STRUCT::calculateCRPTOffsets(), RUNTABLE::checksum, ISISCRPT_STRUCT::clock_frequency, TCBRANGE::end, ERRTYPE_OUTOFMEM, FAC_TCB, DAEstatus::Failure, RUNTABLE::file_size, ISISCRPT_MAX_TIMECHANB, m_crpt, m_dae_type, md5sumFile(), RUNTABLE::mod_time, ISISDAE::MuonDAE2, ISISDAE::NeutronDAE2, ISISDAE::NeutronDAE3, ISISCRPT_STRUCT::ntc, ISISCRPT_STRUCT::ntcr, ISISCRPT_STRUCT::ntrg, ISISCRPT_STRUCT::rtcb, SEV_ERROR, TCBRANGE::start, DAEstatus::Success, ISISCRPT_STRUCT::tcb, ISISCRPT_STRUCT::tcb_delay, TCBRANGE::tcb_file, ISISCRPT_STRUCT::tcb_maxdelay, ISISCRPT_STRUCT::tcb_maxtime, ISISCRPT_STRUCT::tcb_mintime, ISISCRPT_STRUCT::tcb_minwidth, ISISCRPT_STRUCT::tcb_trdelay, TCBRANGE_CONST_T, TCBRANGE_FILE, TCBRANGE_INC_T, TCBRANGE_INC_T_2, TCBRANGE_SHIFTED, TCBRANGE::tcpar, and ISISCRPT_STRUCT::tcr.
Referenced by beginRunMainEx(), setTimeChannelRange(), and updateTCBXML().
void ISISinstrumentControl::unregisterStructuredExceptionHandler | ( | _se_translator_function | old_func | ) |
Definition at line 114 of file ISISinstrumentControl.cpp.
References m_registersetranslator.
Referenced by Cdae::callICP(), Cdae::checkTestPattern(), Cdae::dumpDebugInfo(), Cdae::fillWithTestPattern(), Cdae::getArrayValue(), Cdae::getRunNumber(), Cdae::getRunState(), Cdae::getsect(), Cdae::getSpectraIntegral2(), Cdae::getSpectraIntegralHelper(), Cdae::getSpectraSum(), Cdae::getSpectrum(), Cdae::getSpectrumIntegral(), Cdae::getValue(), ISISinstrumentControl(), Cdae::quit(), Cdae::rio(), Cdae::setICPValueLong(), Cdae::sumAllHistogramMemory(), Cdae::sumAllSpectra(), updateThread(), Cdae::VMEReadArray(), Cdae::VMEReadValue(), Cdae::VMEReadValuesToString(), Cdae::VMEWriteArray(), and Cdae::VMEWriteValue().
|
static |
Definition at line 6470 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::aperture1, ISISCRPT_STRUCT::aperture2, ISISCRPT_STRUCT::beam_centre_x, ISISCRPT_STRUCT::beam_centre_y, ISISCRPT_STRUCT::beamstop_position, ISISCRPT_STRUCT::chopper_opening_angle, ISISCRPT_STRUCT::foe_mirror_angle, ISISCRPT_STRUCT::i_l1, ISISCRPT_STRUCT::instrument_geometry, ISISCRPT_STRUCT::journal_blocks, ISISCRPT_STRUCT::sdd, setRealParameter(), setStringParameter(), and DAEstatus::Success.
Referenced by setBeamlineParameters(), updateCRPTwithSE(), and updateFunc().
|
staticprotected |
Definition at line 6285 of file ISISinstrumentControl.cpp.
References DAEstatus::Failure, and updateParametersFromFile().
Referenced by notifyICP().
int ISISinstrumentControl::updateCRPTSpectra | ( | int | period, |
long | spec_start, | ||
int | nspectra, | ||
DAEstatus & | status | ||
) |
Definition at line 6111 of file ISISinstrumentControl.cpp.
References getDAQPeriod(), ISISCRPT_STRUCT::getPeriodSize(), m_crpt, m_crpt_cs, m_dae, CRPTProxy::rawData(), CRPTProxy::rawDataSizeMax(), ISISDAE::readDAE1Spectra(), ISISCRPT_STRUCT::spec_to_crpt_offset, and DAEstatus::Success.
Referenced by getIntArrayItem(), getRealArrayItem(), Cdae::updateCRPTSpectra(), and updateFunc().
|
protected |
Definition at line 6078 of file ISISinstrumentControl.cpp.
References getDAQPeriod(), ISISCRPT_STRUCT::getNumSpectra(), ISISCRPT_STRUCT::isEventSpectrum(), m_crpt, m_crpt_cs, m_dae, CRPTProxy::rawData(), ISISDAE::readDAE1Spectrum(), CRPTProxy::spectrumCRPTOffset(), ISISCRPT_STRUCT::spectrumNTC(), and DAEstatus::Success.
int ISISinstrumentControl::updateCRPTSpectraAllPeriods | ( | long | spec_start, |
int | nspectra, | ||
DAEstatus & | status | ||
) |
Definition at line 6132 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::getPeriodSize(), m_crpt, m_crpt_cs, m_dae, ISISCRPT_STRUCT::nper_daq, CRPTProxy::rawData(), CRPTProxy::rawDataSizeMax(), ISISDAE::readDAE1Spectra(), ISISCRPT_STRUCT::spec_to_crpt_offset, and DAEstatus::Success.
Referenced by getIntArrayItem().
int ISISinstrumentControl::updateCRPTWithDAE | ( | CRPTProxy & | crpt, |
bool | pause_collection, | ||
DAEstatus & | status | ||
) |
Definition at line 1667 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfoVa(), ERRTYPE_OUTOFMEM, FAC_CRPT, FAC_DAE, DAEstatus::Failure, CRPTProxy::flushCRPT(), CRPTProxy::getDataLockRef(), ISISCRPT_STRUCT::getPeriodSize(), ICPTimer::info(), ISISCRPT_STRUCT::isRunning(), m_dae, ISISCRPT_STRUCT::nper_daq, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, CRPTProxy::rawData(), CRPTProxy::rawDataSizeMax(), CRPTProxy::rawDataUpdated(), ISISDAE::readAllDAE1Spectra(), DAEstatus::result(), SEV_ERROR, ISISCRPT_STRUCT::spec_to_crpt_offset, ICPTimer::start(), startDataCollection(), stopDataCollection(), and ISISDAE::StopRunClean.
Referenced by endRunMain(), saveRun(), snapshotCRPT(), sumAllSpectra(), Cdae::updateCRPT(), updateCRPTWithDAE(), and writeAutosaveFile().
int ISISinstrumentControl::updateCRPTWithDAE | ( | bool | pause_collection, |
DAEstatus & | status | ||
) |
Definition at line 1652 of file ISISinstrumentControl.cpp.
References logEvent(), m_crpt, m_crpt_cs, and updateCRPTWithDAE().
Referenced by endRunTask(), and updateCRPTWithSEandSaveToFile().
|
static |
Definition at line 1659 of file ISISinstrumentControl.cpp.
References CRPTProxy::beamlineParameters(), CRPTProxy::sampleParameters(), DAEstatus::Success, updateBeamlineParameters(), and updateSampleParameters().
int ISISinstrumentControl::updateCRPTWithSEandSaveToFile | ( | CRPTProxy & | crpt, |
const std::string & | raw_filename, | ||
const std::string & | nexus_filename, | ||
DAEstatus & | dstatus | ||
) |
Definition at line 1825 of file ISISinstrumentControl.cpp.
References getSE(), m_icpwriter, saveCRPTToFile(), ICPEventWriter::snapshot(), DAEstatus::Success, and updateCRPTwithSE().
Referenced by snapshotCRPT(), storeCRPT(), and writeAutosaveFile().
|
protected |
Definition at line 1918 of file ISISinstrumentControl.cpp.
References DAEstatus::addWarning(), FAC_CRPT, DAEstatus::Failure, ISISCRPT_STRUCT::isis_cycle, m_crpt, and DAEstatus::Success.
Referenced by beginRunMainEx(), and endRunMain().
int ISISinstrumentControl::updateDAEsettingsXML | ( | const std::string & | status_xml, |
DAEstatus & | status | ||
) |
Definition at line 5440 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addWarning(), compareChecksums(), ISISCRPT_STRUCT::dae_xml_checksum, ERRTYPE_OUTOFMEM, Ext0Veto, Ext1Veto, Ext2Veto, Ext3Veto, FAC_CRPT, ISISCRPT_STRUCT::fermi_chopper_delay, ISISCRPT_STRUCT::fermi_chopper_width, FermiChopperVeto0, LabviewXML::getValue(), ISIS50HzVeto, LabviewXML::loadFromString(), ISISCRPT_STRUCT::lvxml_dae, m_crpt, m_crpt_cs, ISISCRPT_STRUCT::markInitialised(), md5sumString(), ISISCRPT_STRUCT::monitor_range, ISISCRPT_STRUCT::monitor_spectrum, ISISCRPT_STRUCT::muon_cerenkov_pulse, NULL_TERMINATE, readTables(), DAEstatus::result(), ISISCRPT_STRUCT::run_status, RUNSTATUS_SETUP, SEV_ERROR, SMPVeto, ISISCRPT_STRUCT::tcb_sync, TS2PulseVeto, updateChecksum(), and ISISCRPT_STRUCT::vetos.
Referenced by Cdae::changeDAEsettings(), and readRecoveryFile().
|
protected |
Definition at line 3782 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::Monitoring::action, ISISCRPT_STRUCT::Monitoring::action_period, DAEstatus::addInfoVa(), ISISCRPT_STRUCT::alert_email, ISISCRPT_STRUCT::Monitoring::alerts, ISISCRPT_STRUCT::auto_save_last, ISISCRPT_STRUCT::auto_save_type, ISISCRPT_STRUCT::auto_save_value, AutoSave, ISISCRPT_STRUCT::beam_current, CRPTProxy::beamlineParameters(), ISISCRPT_STRUCT::beamlogger, beamOn(), ISISCRPT_STRUCT::Monitoring::calc_freq, ISISCRPT_STRUCT::Monitoring::calc_last_time, changePeriodWhileRunning(), ISISCRPT_STRUCT::comp_name, ISISCRPT_STRUCT::count_rate, nagios_t::dae_status, ISISCRPT_STRUCT::dae_type, PERIOD::duration, ISISCRPT_STRUCT::duration, ISISCRPT_STRUCT::Monitoring::enabled, endRun(), evaluateExpression(), ISISCRPT_STRUCT::Monitoring::expression, FAC_DAE, DAEstatus::Failure, flushCRPT(), getCRPTSpectrumIntegral(), getCurrentPeriodNumber(), ISISDAE::getCurrentPeriodSequence(), ISISDAE::getGoodFrames(), ISISDAE::getGoodFramesPeriod(), ISISDAE::getGoodPPPLower(), ISISDAE::getGoodPPPUpper(), getGoodUAmpH(), ISISDAE::getRawFrames(), ISISDAE::getRawFramesPeriod(), ISISDAE::getRawPPPLower(), ISISDAE::getRawPPPUpper(), getRawUAmpH(), getSpectrumIntegral(), getTotalCounts(), PERIOD::good_frames, ISISCRPT_STRUCT::good_frames, ISISDAE::isMultiplePeriodSequenceComplete(), isRunning(), CRPTProxy::isValid(), isWaiting(), monitoring_par::last_change, ISISCRPT_STRUCT::Monitoring::last_gf, ISISCRPT_STRUCT::Monitoring::last_tc, ISISCRPT_STRUCT::Monitoring::last_ua, monitoring_par::last_value, ISISCRPT_STRUCT::Monitoring::log_freq, ISISCRPT_STRUCT::Monitoring::log_last_time, logEventVa(), m_app, m_crpt, m_crpt_cs, m_dae, m_icp_dir, m_icp_options, m_status, ISISCRPT_STRUCT::monitor_range, ISISCRPT_STRUCT::monitor_spectrum, ISISCRPT_STRUCT::monitor_sum, ISISCRPT_STRUCT::monitoring, ISISDAE::MuonDAE2, beamlogger_t::muonkicker, muonKickerOK(), ISISCRPT_STRUCT::Monitoring::n, ISISCRPT_STRUCT::nagios, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_type, PeriodSequenceAutoEnd, ISISDAE::PeriodTypeSoftware, ISISCRPT_STRUCT::resume_time, ISISCRPT_STRUCT::Monitoring::return_period, ISISCRPT_STRUCT::run_status, RUNSTATUS_SETUP, CRPTProxy::sampleParameters(), se_get_block_values(), se_get_errmsg(), sendEmail(), sendNagios(), sendSMS(), beamlogger_t::shutter, nagios_t::shutter_status, nagios_t::shutter_val, ISISCRPT_STRUCT::software_period, monitoring_par::spectrum, ISISCRPT_STRUCT::start_time, ISISCRPT_STRUCT::stop_time, DAEstatus::Success, monitoring_par::t_high, monitoring_par::t_low, PERIOD::total_frames, ISISCRPT_STRUCT::total_frames, ISISCRPT_STRUCT::update_duration, ISISCRPT_STRUCT::update_duration_period, ISISCRPT_STRUCT::update_good_frames, ISISCRPT_STRUCT::update_good_frames_period, ISISCRPT_STRUCT::update_good_ppp_high, ISISCRPT_STRUCT::update_good_ppp_low, ISISCRPT_STRUCT::update_good_uamph, ISISCRPT_STRUCT::update_npratio_average, ISISCRPT_STRUCT::update_npratio_current, ISISCRPT_STRUCT::update_num_polls, ISISCRPT_STRUCT::update_period, ISISCRPT_STRUCT::update_period_sequence, ISISCRPT_STRUCT::update_raw_frames, ISISCRPT_STRUCT::update_raw_frames_period, ISISCRPT_STRUCT::update_raw_uamph, ISISCRPT_STRUCT::update_time, ISISCRPT_STRUCT::update_total_counts, ISISCRPT_STRUCT::update_total_ppp_high, ISISCRPT_STRUCT::update_total_ppp_low, updateBeamlineParameters(), updateCRPTSpectra(), updateICPTimeDiffLog(), updateMonitoringLog(), updateSampleParameters(), updateStatusLog(), ISISCRPT_STRUCT::usingEventMode(), ISISCRPT_STRUCT::Monitoring::v, ISISCRPT_STRUCT::Monitoring::valid_high, nagios_t::veto_percent, nagios_t::wait_mins, nagios_t::wait_status, and writeAutosaveFile().
Referenced by refreshCachedValues(), and updateThread().
int ISISinstrumentControl::updateHardwarePeriodsXML | ( | const std::string & | periods_xml, |
DAEstatus & | status | ||
) |
Definition at line 5264 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfo(), DAEstatus::addInfoVa(), DAEstatus::addVa(), DAEstatus::addWarning(), changeNumberOfSoftwarePeriods(), ERRTYPE_OUTOFMEM, FAC_CRPT, DAEstatus::Failure, LabviewXML::getValue(), ISISCRPT_MAX_PERIOD, LabviewXML::loadFromString(), ISISCRPT_STRUCT::lvxml_periods, m_crpt, m_crpt_cs, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nper_daq, ISISCRPT_STRUCT::nperseq_request, NULL_TERMINATE, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_file, ISISCRPT_STRUCT::period_output_delay, ISISCRPT_STRUCT::period_source, ISISCRPT_STRUCT::period_type, PeriodSourceFile, ISISDAE::PeriodTypeSoftware, DAEstatus::result(), ISISCRPT_STRUCT::run_status, RUNSTATUS_SETUP, and SEV_ERROR.
Referenced by Cdae::changeHardwarePeriods(), and readRecoveryFile().
|
protected |
Definition at line 4214 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), appendToFileAsync(), diffFileTimesInMilliSec(), FAC_DAE, ISISDAE::frameTimerDrift(), g_icp_clock, ISOtime(), m_app, m_crpt, m_dae, m_status, ISISCRPT_STRUCT::run_number, se_get_errmsg(), se_log_value_async(), and CRPTProxy::timeDiffLog().
Referenced by updateFunc().
|
protected |
Definition at line 4257 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), appendToFileAsync(), ISISCRPT_STRUCT::Monitoring::calc_last_time, FAC_DAE, ISOtime(), monitoring_par::last_value, m_crpt, m_status, ISISCRPT_STRUCT::monitoring, CRPTProxy::monitoringLog(), ISISCRPT_STRUCT::Monitoring::n, ISISCRPT_STRUCT::run_number, se_get_errmsg(), se_log_values_async(), DAEstatus::Success, ISISCRPT_STRUCT::update_npratio_current, and ISISCRPT_STRUCT::Monitoring::v.
Referenced by updateFunc().
int ISISinstrumentControl::updateMonitoringXML | ( | const std::string & | monitor_xml, |
DAEstatus & | status | ||
) |
Definition at line 5540 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::Monitoring::action, ISISCRPT_STRUCT::Monitoring::action_period, DAEstatus::add(), DAEstatus::addInfoVa(), DAEstatus::addWarning(), ISISCRPT_STRUCT::Monitoring::alerts, ISISCRPT_STRUCT::Monitoring::calc_freq, ISISCRPT_STRUCT::Monitoring::enabled, ERRTYPE_OUTOFMEM, ISISCRPT_STRUCT::Monitoring::expression, FAC_CRPT, FAC_DAE, ISISCRPT_STRUCT::Monitoring::file, LabviewXML::getValue(), LabviewXML::loadFromString(), ISISCRPT_STRUCT::Monitoring::log_freq, ISISCRPT_STRUCT::lvxml_monitoring, m_crpt, m_crpt_cs, MAX_MONITORING_PAR, ISISCRPT_STRUCT::monitoring, ISISCRPT_STRUCT::Monitoring::n, NULL_TERMINATE, R_OK, DAEstatus::result(), ISISCRPT_STRUCT::run_status, RUNSTATUS_SETUP, SEV_ERROR, ISISCRPT_STRUCT::Monitoring::v, ISISCRPT_STRUCT::Monitoring::valid_high, and ISISCRPT_STRUCT::Monitoring::valid_low.
Referenced by Cdae::changeMonitoringSettings(), and readRecoveryFile().
|
staticprotected |
Definition at line 6236 of file ISISinstrumentControl.cpp.
References DAEstatus::Success.
Referenced by updateBeamlineParametersFromFile(), and updateSampleParametersFromFile().
|
static |
Definition at line 6424 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::angle_of_incidence, ISISCRPT_STRUCT::comment, ISISCRPT_STRUCT::field_label, ISISCRPT_STRUCT::long_title, ISISCRPT_STRUCT::measurement_id, ISISCRPT_STRUCT::measurement_subid, ISISCRPT_STRUCT::measurement_type, ISISCRPT_STRUCT::sample_geometry, ISISCRPT_STRUCT::sample_height, ISISCRPT_STRUCT::sample_id, ISISCRPT_STRUCT::sample_name, ISISCRPT_STRUCT::sample_orientation, ISISCRPT_STRUCT::sample_phi_angle, ISISCRPT_STRUCT::sample_thickness, ISISCRPT_STRUCT::sample_type, ISISCRPT_STRUCT::sample_width, ISISCRPT_STRUCT::script_name, setRealParameter(), setStringParameter(), DAEstatus::Success, and ISISCRPT_STRUCT::temperature_label.
Referenced by setSampleParameters(), updateCRPTwithSE(), and updateFunc().
|
staticprotected |
Definition at line 6208 of file ISISinstrumentControl.cpp.
References DAEstatus::Failure, and updateParametersFromFile().
Referenced by notifyICP().
int ISISinstrumentControl::updateSampleXML | ( | const std::string & | sample_xml, |
DAEstatus & | status | ||
) |
Definition at line 5378 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::comment, ISISCRPT_STRUCT::field_label, LabviewXML::getValue(), ISISCRPT_STRUCT::instrument_geometry, LabviewXML::loadFromString(), ISISCRPT_STRUCT::long_title, m_crpt, m_crpt_cs, m_recovery_map, NULL_TERMINATE, DAEstatus::result(), ISISCRPT_STRUCT::sample_name, ISISCRPT_STRUCT::sample_orientation, and ISISCRPT_STRUCT::temperature_label.
Referenced by Cdae::changeSample(), and readRecoveryFile().
|
protected |
Definition at line 7453 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), ISISCRPT_STRUCT::cardpos2index, ISISCRPT_STRUCT::dae2cardmode, ISISCRPT_STRUCT::dae2cardpos, ISISCRPT_STRUCT::dae2cardtr, ISISCRPT_STRUCT::dae2highspec, ISISCRPT_STRUCT::dae2specmap, ISISCRPT_STRUCT::daeTR(), ERRTYPE_OUTOFMEM, FAC_DAE, DAEstatus::Failure, ISISDAE::getDAE2Specmap(), ISISCRPT_STRUCT::isEventTR(), ISISCRPT_MAX_DC, ISISCRPT_MAX_DC_DETECTOR, m_crpt, m_dae, ISISCRPT_STRUCT::ndetcard, SEV_ERROR, and DAEstatus::Success.
Referenced by setupDAE().
|
protected |
Definition at line 4308 of file ISISinstrumentControl.cpp.
References DAEstatus::addInfoVa(), appendToFileAsync(), ISISCRPT_STRUCT::beam_current, ISISCRPT_STRUCT::count_rate, FAC_DAE, ISOtime(), isRunning(), isWaiting(), m_app, m_crpt, m_status, ISISCRPT_STRUCT::monitor_sum, ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::run_status, se_get_errmsg(), se_log_run(), CRPTProxy::statusLog(), DAEstatus::Success, ISISCRPT_STRUCT::update_good_frames, ISISCRPT_STRUCT::update_good_uamph, ISISCRPT_STRUCT::update_npratio_current, ISISCRPT_STRUCT::update_period, ISISCRPT_STRUCT::update_raw_frames, ISISCRPT_STRUCT::update_raw_uamph, and ISISCRPT_STRUCT::update_total_counts.
Referenced by updateFunc().
int ISISinstrumentControl::updateStatusXML | ( | std::string & | status_xml, |
DAEstatus & | status | ||
) |
time_t now; time(&now); time_t this_dur = (now - m_crpt->resume_time);
isisU32_t igf, irf; m_dae->getGoodFrames(&igf, status); m_dae->getRawFrames(&irf, status); lvxml.setValue("GoodFramesTotal", igf, status); lvxml.setValue("RawFramesTotal", irf, status);
int period, daq_period; getCurrentPeriodNumber(period, daq_period, status);
m_dae->getCurrentPeriodSequence(&value32, status); lvxml.setValue("PeriodSequence", value32, status);
Definition at line 4613 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), ISISCRPT_STRUCT::beam_current, ISISCRPT_STRUCT::count_rate, PERIOD::duration, ISISCRPT_STRUCT::duration, ERRTYPE_OUTOFMEM, ISISCRPT_STRUCT::eventModeCardFraction(), FAC_DAE, ISISDAE::getGoodFramesPeriod(), ISISCRPT_STRUCT::getNumSpectra(), ISISCRPT_STRUCT::getPeriodSize(), ISISDAE::getRawFramesPeriod(), PERIOD::good_frames, ISISCRPT_STRUCT::good_frames, ISISCRPT_STRUCT::inst_name, ISISCRPT_STRUCT::isis_cycle, isRunning(), CRPTProxy::isValid(), PERIOD::label, LabviewXML::loadFromString(), ISISCRPT_STRUCT::local_contact, ISISCRPT_STRUCT::long_title, m_crpt, m_crpt_cs, m_dae, m_run_number_digits, m_simulation_mode, ISISCRPT_STRUCT::monitor_range, ISISCRPT_STRUCT::monitor_spectrum, ISISCRPT_STRUCT::monitor_sum, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::nper_daq, ISISCRPT_STRUCT::ntc, ISISCRPT_STRUCT::period, ISISCRPT_STRUCT::period_type, ISISDAE::PeriodTypeSoftware, prettyTime(), ISISCRPT_STRUCT::rb_number, DAEstatus::result(), ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::run_status, LabviewXML::saveToString(), LabviewXML::setValue(), SEV_ERROR, ISISCRPT_STRUCT::start_time, ISISCRPT_STRUCT::tcb_sync, PERIOD::total_frames, ISISCRPT_STRUCT::total_frames, ISISCRPT_STRUCT::update_duration, ISISCRPT_STRUCT::update_duration_period, ISISCRPT_STRUCT::update_good_frames, ISISCRPT_STRUCT::update_good_frames_period, ISISCRPT_STRUCT::update_good_uamph, ISISCRPT_STRUCT::update_npratio_current, ISISCRPT_STRUCT::update_period, ISISCRPT_STRUCT::update_period_sequence, ISISCRPT_STRUCT::update_poll_time, ISISCRPT_STRUCT::update_raw_frames, ISISCRPT_STRUCT::update_raw_frames_period, ISISCRPT_STRUCT::update_time, ISISCRPT_STRUCT::update_total_counts, ISISCRPT_STRUCT::user_name, and ISISCRPT_STRUCT::user_telephone.
Referenced by Cdae::updateStatusXML().
int ISISinstrumentControl::updateTCBXML | ( | const std::string & | status_xml, |
DAEstatus & | status | ||
) |
Definition at line 5130 of file ISISinstrumentControl.cpp.
References DAEstatus::add(), DAEstatus::addInfo(), DAEstatus::addWarning(), compareChecksums(), TCBRANGE::end, ERRTYPE_OUTOFMEM, FAC_CRPT, RUNTABLE::fname, LabviewXML::getValue(), ISISCRPT_MAX_NTRG, LabviewXML::loadFromString(), LV_NUM_TIME_REGIMES, ISISCRPT_STRUCT::lvxml_tcb, m_crpt, m_crpt_cs, md5sumString(), TCBRANGE::mode, TCBRANGE::npar, ISISCRPT_STRUCT::ntcr, ISISCRPT_STRUCT::ntrg, NULL_TERMINATE, DAEstatus::result(), ISISCRPT_STRUCT::run_status, RUNSTATUS_SETUP, SEV_ERROR, TCBRANGE::start, TCBRANGE::tcb_file, ISISCRPT_STRUCT::tcb_xml_checksum, tcbcalc(), TCBRANGE_FILE, TCBRANGE::tcpar, ISISCRPT_STRUCT::tcr, and updateChecksum().
Referenced by Cdae::changeTCB(), and readRecoveryFile().
|
staticprotected |
Definition at line 609 of file ISISinstrumentControl.cpp.
References DAEstatus::addWarningVa(), FAC_DAE, getPollTime(), getStatusReporter(), registerStructuredExceptionHandler(), shutdownRequested(), unregisterStructuredExceptionHandler(), and updateFunc().
Referenced by ISISinstrumentControl().
|
protected |
Definition at line 6166 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::institute, m_crpt, ISISCRPT_STRUCT::rb_number, DAEstatus::Success, and ISISCRPT_STRUCT::user_name.
Referenced by notifyICP().
int ISISinstrumentControl::updateUserXML | ( | const std::string & | user_xml, |
DAEstatus & | status | ||
) |
Definition at line 5202 of file ISISinstrumentControl.cpp.
References LabviewXML::getValue(), ISISCRPT_STRUCT::institute, LabviewXML::loadFromString(), m_crpt, m_crpt_cs, m_recovery_map, NULL_TERMINATE, ISISCRPT_STRUCT::rb_number, DAEstatus::result(), ISISCRPT_STRUCT::user_email, ISISCRPT_STRUCT::user_id, ISISCRPT_STRUCT::user_name, and ISISCRPT_STRUCT::user_telephone.
Referenced by Cdae::changeUser(), and readRecoveryFile().
|
protected |
Definition at line 2198 of file ISISinstrumentControl.cpp.
References DAEstatus::addWarningVa(), FAC_DAE, m_recovery_map, and DAEstatus::Success.
Referenced by readRecoveryFile().
int ISISinstrumentControl::VMEReadArray | ( | unsigned long | card_id, |
unsigned long | card_address, | ||
isisU32_t * | values, | ||
unsigned long | num_values, | ||
DAEstatus & | status | ||
) |
Definition at line 5751 of file ISISinstrumentControl.cpp.
References ICPTimer::info(), m_crpt_cs, m_dae, m_dae_type, ISISDAE::MuonDAE3, ISISDAE::NeutronDAE3, and ISISDAE::VMEReadArray().
Referenced by Cdae::VMEReadArray().
int ISISinstrumentControl::VMEReadValue | ( | unsigned long | card_id, |
unsigned long | card_address, | ||
bool | sixteen_bit, | ||
unsigned long * | value, | ||
DAEstatus & | status | ||
) |
Definition at line 5719 of file ISISinstrumentControl.cpp.
References m_crpt_cs, m_dae, m_dae_type, ISISDAE::MuonDAE3, ISISDAE::NeutronDAE3, and ISISDAE::VMEReadValue().
Referenced by Cdae::VMEReadValue(), and VMEReadValuesToString().
int ISISinstrumentControl::VMEReadValuesToString | ( | unsigned long | card_id, |
unsigned long | card_address, | ||
bool | sixteen_bit, | ||
unsigned long | num_values, | ||
std::string & | values, | ||
DAEstatus & | status | ||
) |
Definition at line 5703 of file ISISinstrumentControl.cpp.
References DAEstatus::Failure, m_crpt_cs, and VMEReadValue().
Referenced by Cdae::VMEReadValuesToString().
int ISISinstrumentControl::VMEWriteArray | ( | unsigned long | card_id, |
unsigned long | card_address, | ||
isisU32_t * | values, | ||
unsigned long | num_values, | ||
DAEstatus & | status | ||
) |
Definition at line 5734 of file ISISinstrumentControl.cpp.
References ICPTimer::info(), m_crpt_cs, m_dae, m_dae_type, ISISDAE::MuonDAE3, ISISDAE::NeutronDAE3, and ISISDAE::VMEWriteArray().
Referenced by Cdae::VMEWriteArray().
int ISISinstrumentControl::VMEWriteValue | ( | unsigned long | card_id, |
unsigned long | card_address, | ||
bool | sixteen_bit, | ||
unsigned long | value, | ||
unsigned long | mode, | ||
DAEstatus & | status | ||
) |
Definition at line 5688 of file ISISinstrumentControl.cpp.
References m_crpt_cs, m_dae, m_dae_type, ISISDAE::MuonDAE3, ISISDAE::NeutronDAE3, and ISISDAE::VMEWriteValue().
Referenced by Cdae::VMEWriteValue().
int ISISinstrumentControl::waitForAsync | ( | ) |
check if any async worker threads are still running. when they finish they call doneAsync() that notifes us
Definition at line 5815 of file ISISinstrumentControl.cpp.
References m_async_complete_event, and m_num_async_requests.
int ISISinstrumentControl::whichVeto | ( | std::string & | veto_text, |
DAEstatus & | status | ||
) |
Definition at line 7074 of file ISISinstrumentControl.cpp.
References m_crpt_cs, m_dae, DAEstatus::result(), and ISISDAE::whichVeto().
Referenced by Cdae::getVetoStatus().
|
protected |
Definition at line 1892 of file ISISinstrumentControl.cpp.
References ISISCRPT_STRUCT::auto_save_count, flushCRPT(), ISISCRPT_STRUCT::inst_abrv, ISISCRPT_STRUCT::inst_name, logEvent(), m_crpt, m_crpt_cs, m_data_dir, m_use_full_inst_name_for_files, DAEstatus::result(), runPostCommand(), updateCRPTWithDAE(), and updateCRPTWithSEandSaveToFile().
Referenced by updateFunc().
|
static |
Definition at line 5787 of file ISISinstrumentControl.cpp.
References CRPTProxy::CRPT(), m_instrument_parameter_map_file, m_instrument_xml_file, CRPTProxy::rawData(), CRPTProxy::rawDataSizeMax(), and NeXusWriter::writeISISNeXus().
Referenced by saveCRPTToFile().
|
static |
Definition at line 5871 of file ISISinstrumentControl.cpp.
References DAEstatus::addVa(), CRPTProxy::CRPT(), ERRTYPE_OUTOFMEM, FAC_CRPT, ICPTimer::info(), CRPTProxy::rawData(), and SEV_ERROR.
Referenced by saveCRPTToFile(), and writeISISRAWthread().
int ISISinstrumentControl::writeISISRAWasync | ( | const CRPTProxy & | crpt, |
const char * | filename, | ||
DAEstatus & | dstatus | ||
) |
Definition at line 5856 of file ISISinstrumentControl.cpp.
References DAEstatus::Failure, m_num_async_requests, DAEstatus::Success, and writeISISRAWthread().
|
staticprotected |
Definition at line 5847 of file ISISinstrumentControl.cpp.
References isisraw_async_t::crpt, doneAsync(), isisraw_async_t::filename, isisraw_async_t::icp, isisraw_async_t::status, and writeISISRAW().
Referenced by writeISISRAWasync().
|
protected |
Definition at line 6648 of file ISISinstrumentControl.cpp.
References DAEstatus::addWarning(), DAEstatus::addWarningVa(), ISISCRPT_STRUCT::comment, convertWindows1252ToUTF8(), SEBLOCK::current_value, vms_journal_line::date, defaultNoInheritHandles(), ISISCRPT_STRUCT::detector_table, ISISCRPT_STRUCT::duration, ISISCRPT_STRUCT::eventModeCardFraction(), FAC_CRPT, SEBLOCK::fcurrent_spread, SEBLOCK::fcurrent_value, ISISCRPT_STRUCT::field_label, findFiles(), RUNTABLE::fname, FrameSyncNames, SEBLOCK::fsetpoint_spread, SEBLOCK::fsetpoint_value, ISISCRPT_STRUCT::getNumSpectra(), ISISCRPT_STRUCT::good_frames, ISISCRPT_STRUCT::good_uamph, ISISCRPT_STRUCT::icp_version, ISISCRPT_STRUCT::inst_abrv, vms_journal_line::inst_abrv, ISISCRPT_STRUCT::inst_name, ISISCRPT_STRUCT::institute, ISISCRPT_STRUCT::instrument_geometry, SEBLOCK::is_real, ISISCRPT_STRUCT::isis_cycle, ISOtime(), vms_summary_line::jl, ISISCRPT_STRUCT::journal_blocks, ISISCRPT_STRUCT::local_contact, ISISCRPT_STRUCT::long_title, m_data_dir, m_icp_options, ISISCRPT_STRUCT::measurement_id, ISISCRPT_STRUCT::measurement_subid, ISISCRPT_STRUCT::measurement_type, ISISCRPT_STRUCT::monitor_spectrum, ISISCRPT_STRUCT::monitor_sum, ISISCRPT_STRUCT::ndet, ISISCRPT_STRUCT::nper, ISISCRPT_STRUCT::ntc, ISISCRPT_STRUCT::ntcr, ISISCRPT_STRUCT::ntrg, PerCycleJournal, vms_summary_line::rb, ISISCRPT_STRUCT::rb_number, ISISCRPT_STRUCT::run_number, vms_journal_line::run_number, ISISCRPT_STRUCT::sample_id, ISISCRPT_STRUCT::sample_name, ISISCRPT_STRUCT::sample_orientation, ISISCRPT_STRUCT::script_name, se_get_measurement_first_run(), se_get_measurement_label(), se_get_seci_config(), SEBLOCK::setpoint_value, spacePadCopy(), spacePadCopyVa(), ISISCRPT_STRUCT::spectra_table, ISISCRPT_STRUCT::start_time, ISISCRPT_STRUCT::stop_time, STR0(), DAEstatus::Success, ISISCRPT_STRUCT::tcb_sync, ISISCRPT_STRUCT::tcr, ISISCRPT_STRUCT::temperature_label, vms_journal_line::title, ISISCRPT_STRUCT::total_frames, vms_journal_line::uamps, ISISCRPT_STRUCT::update_npratio_average, ISISCRPT_STRUCT::update_total_counts, ISISCRPT_STRUCT::user_name, vms_journal_line::user_name, VMS_RUN_MASK, ISISRAW::vmstime(), and ISISCRPT_STRUCT::wiring_table.
Referenced by endRunTask().
|
protected |
Definition at line 2213 of file ISISinstrumentControl.cpp.
References IXNeXusFile::close(), IXNeXusFile::closeGroup(), DAEstatus::Failure, IXNeXusFile::HDF5, ISISCRPT_STRUCT::lvxml_dae, ISISCRPT_STRUCT::lvxml_monitoring, ISISCRPT_STRUCT::lvxml_periods, ISISCRPT_STRUCT::lvxml_tcb, ISISCRPT_STRUCT::lvxml_update, m_crpt, m_recovery_file, m_recovery_map, IXNeXusFile::makeNewGroup(), nxErrorFunc(), IXNeXusFile::OK, IXNeXusFile::open(), ISISCRPT_STRUCT::run_number, ISISCRPT_STRUCT::sav_file_count, DAEstatus::Success, IXNeXusFile::Write, and IXNeXusFile::writeData().
Referenced by endRunMain(), ISISinstrumentControl(), and storeCRPT().
|
protected |
Definition at line 597 of file ISISinstrumentControl.cpp.
References m_event_log_func, and m_report_arg.
void ISISinstrumentControl::zeroCRPTRawData | ( | ) |
not used now as taking too long on e.g. WISH instead use isRawDataCacheValid() and m_crpt->raw_data_update_time
Definition at line 6980 of file ISISinstrumentControl.cpp.
References m_crpt, m_status, CRPTProxy::rawDataUpdated(), and CRPTProxy::zeroUsedRawData().
Referenced by beginRunMainEx().
void ISISinstrumentControl::zeroCRPTRunRawData | ( | ) |
Definition at line 6986 of file ISISinstrumentControl.cpp.
References m_crpt_run, and m_status.
Referenced by beginRunMainEx().
|
protected |
Definition at line 86 of file ISISinstrumentControl.h.
Referenced by checkForNoncountingDetectors(), createLastrunFile(), ISISinstrumentControl(), readTables(), rerunFailedEnds(), runPostCommand(), sendNagios(), updateFunc(), updateICPTimeDiffLog(), and updateStatusLog().
|
protected |
Definition at line 82 of file ISISinstrumentControl.h.
Referenced by doneAsync(), ISISinstrumentControl(), waitForAsync(), and ~ISISinstrumentControl().
|
protected |
Definition at line 75 of file ISISinstrumentControl.h.
|
protected |
Definition at line 89 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl().
|
protected |
Definition at line 73 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), loadCRPT(), and sendNagios().
|
protected |
pointer to CRPT
Definition at line 63 of file ISISinstrumentControl.h.
Referenced by abortRun(), allReportFuncMain(), beamOn(), beginRunMainEx(), changeNumberOfSoftwarePeriods(), changePeriod(), changePeriodWhileRunning(), changeUpdateSettingsXML(), endRunMain(), endSEWait(), exitProgram(), flushCRPT(), getBeamCurrent(), getCharItem(), getCountRate(), getCRPTSpectrumIntegral(), getCurrentPeriodNumber(), getDAEsettingsXML(), getDAQPeriod(), getFramesAllPeriods(), getHardwarePeriodsXML(), getIntArrayItem(), getIntArrayItemSize(), getIntItem(), getMEventsPeriod(), getMonitoringXML(), getMonitorIntegral(), getNPRatio(), getNumberOfPeriods(), getNumberOfSpectra(), getNumberOfTimeChannels(), getOptions(), getPollTime(), getRealArrayItem(), getRealArrayItemSize(), getRealItem(), getRunNumber(), getRunState(), getSpectrum(), getSpectrumIntegral(), getSpectrumNumbersForTimeRegime(), getTCBXML(), getUAmpHAllPeriods(), getUpdateSettingsXML(), importCRPT(), ISISinstrumentControl(), isRunning(), isWaiting(), loadCRPT(), loadDAEWithData(), loadDAEWithNeXusData(), muonKickerOK(), pauseRunMain(), readBeamloggerBroadcast(), readDataDaeTable(), readDetectorTable(), readISISRAW(), readRecoveryFile(), readSpectraTable(), readTables(), readWiringTable(), refreshCachedValues(), rerunFailedEnds(), resumeRun(), saveRun(), setBeamlineParameters(), setOptions(), setRunNumber(), setRunStatus(), setRunStatusImp(), setSampleParameters(), setTimeChannelRange(), setupDAE(), setUserParameters(), snapshotCRPT(), startDataCollection(), startSEWait(), stopDataCollection(), storeCRPT(), sumAllSpectra(), tcbcalc(), updateCRPTSpectra(), updateCRPTSpectraAllPeriods(), updateCRPTWithDAE(), updateCycle(), updateDAEsettingsXML(), updateFunc(), updateHardwarePeriodsXML(), updateICPTimeDiffLog(), updateMonitoringLog(), updateMonitoringXML(), updateSampleXML(), updateSpecmapsFromDAE(), updateStatusLog(), updateStatusXML(), updateTCBXML(), updateUserDetailsFromFile(), updateUserXML(), writeAutosaveFile(), writeRecoveryFile(), and zeroCRPTRawData().
|
protected |
Definition at line 72 of file ISISinstrumentControl.h.
Referenced by abortRun(), beginRunMainEx(), changeNumberOfSoftwarePeriods(), changePeriod(), changePeriodWhileRunning(), changeUpdateSettingsXML(), checkTestPattern(), endRunMain(), endSEWait(), fillWithTestPattern(), getCRPTSpectrumIntegral(), getCurrentPeriodGoodFrames(), getCurrentPeriodGoodUAmpH(), getCurrentPeriodNumber(), getCurrentPeriodRawFrames(), getCurrentPeriodRawUAmpH(), getDAEsettingsXML(), getGoodFrames(), getGoodUAmpH(), getHardwarePeriodsXML(), getMonitoringXML(), getOptions(), getRawFrames(), getRawUAmpH(), getSpectrum(), getSpectrumIntegral(), getTCBXML(), getTotalCounts(), getUpdateSettingsXML(), getVetoStatus(), importCRPT(), ISISinstrumentControl(), loadDAEWithData(), loadDAEWithNeXusData(), pauseRunMain(), readDataDaeTable(), readDetectorTable(), readSpectraTable(), readWiringTable(), refreshCachedValues(), resumeRun(), saveRun(), setOptions(), setRunNumber(), setRunStatus(), setTimeChannelRange(), setVeto(), snapshotCRPT(), startDataCollection(), startSEWait(), stopDataCollection(), storeCRPT(), sumAllHistogramMemory(), updateCRPTSpectra(), updateCRPTSpectraAllPeriods(), updateCRPTWithDAE(), updateDAEsettingsXML(), updateFunc(), updateHardwarePeriodsXML(), updateMonitoringXML(), updateSampleXML(), updateStatusXML(), updateTCBXML(), updateUserXML(), VMEReadArray(), VMEReadValue(), VMEReadValuesToString(), VMEWriteArray(), VMEWriteValue(), whichVeto(), writeAutosaveFile(), and ~ISISinstrumentControl().
|
protected |
used for fast ends
Definition at line 64 of file ISISinstrumentControl.h.
Referenced by endRunMain(), ISISinstrumentControl(), and zeroCRPTRunRawData().
|
protected |
Definition at line 65 of file ISISinstrumentControl.h.
Referenced by endRunMain(), and ISISinstrumentControl().
|
protected |
Definition at line 67 of file ISISinstrumentControl.h.
Referenced by beginRunMainEx(), changeNumberOfSoftwarePeriods(), changePeriod(), checkTestPattern(), endRunMain(), fillWithTestPattern(), getCurrentPeriodGoodFrames(), getCurrentPeriodGoodUAmpH(), getCurrentPeriodNumber(), getCurrentPeriodRawFrames(), getCurrentPeriodRawUAmpH(), getFramesAllPeriods(), getGoodFrames(), getGoodUAmpH(), getRawFrames(), getRawUAmpH(), getSpectrum(), getSpectrumIntegral(), getTotalCounts(), getUAmpHAllPeriods(), getVetoStatus(), isFinalSequenceComplete(), ISISinstrumentControl(), loadDAEWithData(), loadDAEWithNeXusData(), printStatus(), requestEndRunAfterNextSequenceCompletes(), RIO(), setupDAE(), setVeto(), startDataCollection(), stopDataCollection(), sumAllHistogramMemory(), updateCRPTSpectra(), updateCRPTSpectraAllPeriods(), updateCRPTWithDAE(), updateFunc(), updateICPTimeDiffLog(), updateSpecmapsFromDAE(), updateStatusXML(), VMEReadArray(), VMEReadValue(), VMEWriteArray(), VMEWriteValue(), whichVeto(), and ~ISISinstrumentControl().
|
protected |
Definition at line 70 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), loadCRPT(), saveCRPTToFile(), tcbcalc(), VMEReadArray(), VMEReadValue(), VMEWriteArray(), and VMEWriteValue().
|
protected |
Definition at line 103 of file ISISinstrumentControl.h.
Referenced by endRunMain(), endRunTask(), ISISinstrumentControl(), loadCRPT(), storeCRPT(), writeAutosaveFile(), and writeJournal().
|
protected |
Definition at line 107 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl().
|
protected |
Definition at line 84 of file ISISinstrumentControl.h.
Referenced by writeWinEventLog().
|
protected |
Definition at line 121 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), and ~ISISinstrumentControl().
|
protected |
Definition at line 122 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl().
|
protected |
Definition at line 68 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), loadCRPT(), and ~ISISinstrumentControl().
|
protected |
Definition at line 101 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), and updateFunc().
|
protected |
Definition at line 119 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), updateFunc(), and writeJournal().
|
protected |
Definition at line 102 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), launchDatasvr(), and sendNagios().
|
protected |
Definition at line 106 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl().
|
protected |
Definition at line 95 of file ISISinstrumentControl.h.
Referenced by beginRunMainEx(), endRunMain(), ISISinstrumentControl(), and updateCRPTWithSEandSaveToFile().
|
protected |
Definition at line 85 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), and saveCRPTToFile().
|
staticprotected |
Definition at line 371 of file ISISinstrumentControl.h.
Referenced by readDetectorTable(), saveCRPTToFile(), and writeISISNeXus().
|
staticprotected |
Definition at line 370 of file ISISinstrumentControl.h.
Referenced by readDetectorTable(), saveCRPTToFile(), and writeISISNeXus().
|
protected |
Definition at line 104 of file ISISinstrumentControl.h.
Referenced by getPostCommandLogName(), and ISISinstrumentControl().
|
protected |
produce a nexus file. If m_vms_raw_files is true, it is log only. If false, it has data too
Definition at line 114 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), and saveCRPTToFile().
|
protected |
Definition at line 99 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), and ~ISISinstrumentControl().
|
protected |
Definition at line 83 of file ISISinstrumentControl.h.
Referenced by doneAsync(), waitForAsync(), and writeISISRAWasync().
|
protected |
Definition at line 93 of file ISISinstrumentControl.h.
Referenced by endRunMain(), ISISinstrumentControl(), rerunFailedEnds(), and saveCRPTToFile().
|
protected |
Definition at line 113 of file ISISinstrumentControl.h.
Referenced by beginRunMainEx(), and getCurrentPeriodNumber().
|
protected |
Definition at line 74 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), readRecoveryFile(), and writeRecoveryFile().
|
protected |
Definition at line 112 of file ISISinstrumentControl.h.
Referenced by changeUpdateSettingsXML(), readRecoveryFile(), updateSampleXML(), updateUserXML(), updateXML(), and writeRecoveryFile().
|
protected |
Definition at line 91 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), registerStructuredExceptionHandler(), and unregisterStructuredExceptionHandler().
|
protected |
Definition at line 109 of file ISISinstrumentControl.h.
Referenced by allReportFuncMain(), ISISinstrumentControl(), and writeWinEventLog().
|
protected |
Definition at line 81 of file ISISinstrumentControl.h.
Referenced by allReportFuncMain(), and ISISinstrumentControl().
|
protected |
Definition at line 66 of file ISISinstrumentControl.h.
Referenced by beginRunMainEx(), createLastrunFile(), endRunMain(), endRunTask(), ISISinstrumentControl(), storeCRPT(), and updateStatusXML().
|
protected |
Definition at line 110 of file ISISinstrumentControl.h.
Referenced by shutdownRequested(), and ~ISISinstrumentControl().
|
protected |
Definition at line 69 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), and updateStatusXML().
|
protected |
Definition at line 97 of file ISISinstrumentControl.h.
Referenced by fireOnRunStateChange(), and registerOnRunStateChange().
|
protected |
Definition at line 71 of file ISISinstrumentControl.h.
Referenced by checkForNoncountingDetectors(), endRunMain(), exitProgram(), getStatusReporter(), ISISinstrumentControl(), loadCRPT(), rerunFailedEnds(), updateFunc(), updateICPTimeDiffLog(), updateMonitoringLog(), updateStatusLog(), zeroCRPTRawData(), zeroCRPTRunRawData(), and ~ISISinstrumentControl().
|
protected |
Definition at line 88 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), and ~ISISinstrumentControl().
|
protected |
Definition at line 87 of file ISISinstrumentControl.h.
Referenced by endRunMain(), ISISinstrumentControl(), rerunFailedEnds(), saveCRPTToFile(), and ~ISISinstrumentControl().
|
protected |
Definition at line 116 of file ISISinstrumentControl.h.
Referenced by createLastrunFile(), endRunMain(), endRunTask(), ISISinstrumentControl(), storeCRPT(), and writeAutosaveFile().
|
protected |
produce a VMS raw file
Definition at line 115 of file ISISinstrumentControl.h.
Referenced by ISISinstrumentControl(), and saveCRPTToFile().