Public Member Functions | |
__init__ (rc, userId, debug) | |
getFailedEvents () | |
Return failed event count. | |
getFailedEventSends () | |
Return number of failed event sends. | |
getSBCHandledEvents () | |
Return number of events handled by the SBC. | |
getValidEvents () | |
Return number of events successfully sent. | |
getDiscardedEvents () | |
Return number of events discarded. | |
getLengthMismatchedEvents () | |
Return number of length mismatched events. | |
getUnsentEvents () | |
Return number of events filtered or prescaled. | |
getAvgDeadTime (temId=None) | |
Return the average deadtime. | |
getGemDeadTime () | |
Return the Average GEM dead time as a percentage. | |
getRunId () | |
Return the run id. | |
getSchemaConfigFile () | |
Return the full path of the schema file. | |
getAddlInputFiles () | |
Return a list containing the additional input files. | |
getRunMsgLogFile () | |
Return the filename for the message log for the current run. | |
getArchiveFile () | |
Return the filename for the archive file (LDF file). | |
getBadEventsFile () | |
Return the filename for the bad events archive. | |
getErrorEventsFile () | |
Return the filename for the error events archive. | |
getFITSfile () | |
Return the filename for the FITS file. | |
getHSKfile () | |
Return the filename for the housekeeping FITS file. | |
getPauseCount () | |
Return number of times the test is paused. | |
getPausedTime () | |
Return the amount of time spent in pause. | |
getEventCount () | |
Return number of events received. | |
getElapsedTime () | |
Return the elapsed time spent during test execution. | |
getEventRate () | |
Return the event rate. | |
getSBCEventRate () | |
Return the SBC event handling rate. | |
getInstEventRate () | |
Return the instant event rate. | |
getInstSBCEventRate () | |
Return the instant SBC event handling rate. | |
getInstDatagramSize () | |
Return the instant datagram size. | |
getAvgDatagramSize () | |
Return the instant datagram size divided by the number of events. | |
getInstByteRate () | |
Return the instant datagram byte rate. | |
getStartTime () | |
Return the test start time. | |
getEndTime () | |
Return the test end time. | |
getBadEvents () | |
Return number of events with a bad GGLT status. | |
getErrorEvents () | |
Return number of error events. | |
getTrgParityErrorEvents () | |
Return number of trigger parity error events. | |
getPacketErrorEvents () | |
Return number of packet error events. | |
setCmdCli (cmdCli) | |
Set the command client instance (used in suites). | |
setEvtCli (evtCli) | |
Set the event client instance. | |
getEvtCli () | |
Return the current event client instance. | |
getDataDistributor () | |
Return the data distribution server instance. | |
setSessionVar (key, value) | |
Set session variable key to value value. | |
getSessionVar (key) | |
Return the session variable identified by key. | |
setPrefs (prefs) | |
Explicitly set preferences. | |
setCompletionStatus (completionStatus, completionStatusStr=None) | |
Sets the completion status of the test. | |
getCompletionStatus () | |
Return the completion status code. | |
getCompletionStatusStr () | |
Return the description of the completion status. | |
getSnapshotStatus (snapId=None) | |
Return snapshot result(s). | |
getHSK () | |
Return the housekeeping class instance. | |
addCustomReportData (key, value) | |
Add custom report data to the run report. | |
getParameterVerifier () | |
Return the parameter verifier instance. | |
addExportedFile (file=None, delete=False) | |
Add file to the list of files to be exported. | |
getFileTimeStamp () | |
Return the formatted timestamp used to name output files. | |
getRawTimeStamp () | |
Return the raw timestamp as returned from gmtime(). | |
getSuite () | |
Return the name of the suite that this script is a part of. | |
setSuite (suite) | |
Set name of the suite for this script. | |
getSuiteInstance () | |
Return the suite instance that this script is a part of. | |
setSuiteInstance (suiteInst) | |
Set the suite instance for this script. | |
setLastSuiteScript () | |
Set the script as the last one in the suite. | |
isLastSuiteScript () | |
Check if the script is the last one. | |
getState () | |
Return the state of the running script. | |
trigger (trg=None, replaceShut=True) | |
Return the trigger used in this script or initialize the trigger. | |
isRunFromSuite () | |
Check if the script is being run from a suite. | |
takeSnapshot (stream=sys.stdout, fileName=None, captureGTIC=1, captureGAEQ=1, trigger=None, configName='', configVersion='') | |
Take a snapshot of the hardware. | |
readConfig (cfgFileName) | |
Read a configuration XML file. | |
applyConfig (seq=None, gxbrd=None) | |
Apply configuration. | |
setArchiverClass (archiverClass) | |
Set a custom archiver class. | |
getArchiverInstance () | |
Return the archiver instance. | |
startExcludeTime () | |
Save the start time for exclusion from the run's elapsed time. | |
endExcludeTime () | |
Strobe the end time for exclusion from the run's elapsed time. | |
adjustExcludeTime (dExcludeTime) | |
This method allows adjustment of the amount of time to be excluded from the run's elapsed time. | |
rcSetup () | |
Setup transition method. | |
rcTeardown () | |
rcStartRun () | |
rcStopRun () | |
rcStop () | |
rcPause () | |
rcResume () | |
getName () | |
setup () | |
teardown () | |
startRun () | |
stopRun () | |
pause () | |
resume () | |
stop () | |
process (eventBuffer) |
Definition at line 39 of file rcTransitions.py.
|
Add custom report data to the run report. This method allows the application to add any additional data that Run Control is not already providing to the run report (rcReport.out). When the custom report data gets processed and written to the database, it will go under the "AdditionFields" column. Please only provide values that can be converted to a string.
|
|
Add file to the list of files to be exported.
|
|
This method allows adjustment of the amount of time to be excluded from the run's elapsed time. The amount of time to be excluded from the run's elapsed time can be adjusted positivily or negativily with this method. It does not take into account any other effects on the excluded time, such as whether the run was in the PAUSED state.
|
|
Apply configuration.
|
|
Strobe the end time for exclusion from the run's elapsed time. This method allows excluding some amount of time from the run's elapsed time. The end time is the time that the method is called. The difference between the end time and the start time is added to the excluded time. |
|
Return a list containing the additional input files. This list is automatically generated from the XML files included in the schema using the <include> tag. The list contains only the filename portion and doesn't include the full path.
|
|
Return the filename for the archive file (LDF file).
|
|
Return the archiver instance. Returns the archiver instance. Can be used by the user application.
|
|
Return the instant datagram size divided by the number of events.
|
|
Return the average deadtime. Returns the average deadtime as a percentage for a TEM specified by temId or all TEMs in the schema as a dictionary.
|
|
Return number of events with a bad GGLT status.
|
|
Return the filename for the bad events archive.
|
|
Return the completion status code. Returns the code set by the script or COMPL_STATUS_UNDEFINED if it hasn't been set.
|
|
Return the description of the completion status. Returns the code as set by the script or 'UNDEFINED' if it hasn't been set.
|
|
Return the data distribution server instance.
|
|
Return number of events discarded. OES increments this counter when an event has been discarded. Currently this method always returns 0.
|
|
Return the elapsed time spent during test execution.
|
|
Return the test end time.
|
|
Return number of error events.
|
|
Return the filename for the error events archive.
|
|
Return number of events received.
|
|
Return the event rate.
|
|
Return the current event client instance.
|
|
Return failed event count. OES increments this counter when there is a packet transmission error.
|
|
Return number of failed event sends. OES increments this counter when there is a TCP transport problem between the SBC and the teststand.
|
|
Return the formatted timestamp used to name output files. Using this method, applications can request the formatted timestamp value used in naming archive, snapshot and housekeeping files. The format is YYMMDDHHMISS.
|
|
Return the filename for the FITS file.
|
|
Return the housekeeping class instance.
|
|
Return the filename for the housekeeping FITS file.
|
|
Return the instant datagram byte rate.
|
|
Return the instant datagram size.
|
|
Return the instant event rate.
|
|
Return the instant SBC event handling rate.
|
|
Return number of length mismatched events. OES increments this counter when an event size doesn't match the length specified in the event. Currently this method always returns 0.
|
|
Return number of packet error events.
|
|
Return the parameter verifier instance.
|
|
Return number of times the test is paused.
|
|
Return the amount of time spent in pause.
|
|
Return the raw timestamp as returned from gmtime().
|
|
Return the run id.
|
|
Return the filename for the message log for the current run.
|
|
Return the SBC event handling rate.
|
|
Return number of events handled by the SBC. OES increments this counter when an event has been received by the event handler.
|
|
Return the full path of the schema file.
|
|
Return the session variable identified by key.
|
|
Return snapshot result(s). Returns a dictionary of snapshot results or if snapId is specified, returns the corresponding snapshot status.
|
|
Return the test start time.
|
|
Return the state of the running script. If the script is running as part of a suite then the script state is simulated.
|
|
Return the name of the suite that this script is a part of.
|
|
Return the suite instance that this script is a part of.
|
|
Return number of trigger parity error events.
|
|
Return number of events filtered or prescaled. OES increments this counter when there is a filter or prescale set that prevents the event from being transmitted.
|
|
Return number of events successfully sent. OES increments this counter when an event has been successfully transmitted to the teststand.
|
|
Check if the script is being run from a suite.
|
|
Method that is called on the PAUSE transition |
|
Method that is called on every data event taken |
|
Read a configuration XML file.
|
|
Method that is called on the RESUME transition |
|
Set a custom archiver class. Check if FSM is None in case we are in a suite Set a custom archiver class. This is typically done in the __init__ method of the userApplication class.
|
|
Set the command client instance (used in suites).
|
|
Sets the completion status of the test. Please use one of the following:
Or a user defined completion status in which case a description needs to be supplied along with the code.
|
|
Set the event client instance. Used to set the custom event client.
|
|
Set the script as the last one in the suite. Called from rcSuite. |
|
Explicitly set preferences. When scripts are run in standalone mode it may be necessary to pass in a script defined set of preferences. The preferences specified in prefs get appended to the set of preferences read from the configuration file.
|
|
Set session variable key to value value. Session variables are data that is shared between different runs. They exist as long as the run control session they are defined in. Typical uses of session variables are to pass data from one suite script to another or to maintain state during a multiple step test run.
|
|
Set name of the suite for this script. Called from rcSuite.
|
|
Set the suite instance for this script. Called from rcSuite.
|
|
Method that is called on the SETUP transition |
|
Save the start time for exclusion from the run's elapsed time. This method allows excluding some amount of time from the run's elapsed time. The start time is the time that the method is called. Note that time spent in the PAUSED state is also excluded from the elapsed time value. Overlapping time is excluded from the elapsed time only once. |
|
Method that is called on the START_RUN transition |
|
Method that is called on the STOP transition |
|
Method that is called on the STOP_RUN transition |
|
Take a snapshot of the hardware. If snapshots are enabled in Run Control preferences, two snapshots will be taken, one before and one after the test has been run. This method allows the application to take a snapshot at a specific point of the run. It is the application's responsibility to add the resulting file to the list of exported files by calling the addExportedFile method. Since snapshots essentially have the same format as configuration blocks, configName and configVersion parameters can be used to output a named configuration.
|
|
Method that is called on the TEARDOWN transition |
|
Return the trigger used in this script or initialize the trigger.
|