The Test action type is used in Host-based command sequencing to wait for a specified period. The primary use of this action is to halt the process until the well test time has elapsed before processing the well test record. This is also useful is a variety of situations such as waiting for the purge time to complete and testing if a point value changed to a desired value after a UIS command action.
The Test action type also supports a series of conditional properties that can be used to interact with the primary test action. They represent the values of an expression and when the expression is true, the conditional actions defined will be executed. For example, specify an Exit action to exit the well test sequence. In the XML configuration these conditional actions are specified in the <ExitOnTagValueActions> element.
The Monitor or Test action types support the configuration of sleep time action(s) to specify how long the Test or Monitor action type will "sleep" before updating the actual timeout value and evaluating the conditional expression. If any actions are specified for the Sleep time actions, then for every sleeptime timeout specified, those actions will be executed. For example, wait five seconds and then poll the device. In the XML configuration these conditional actions are specified in the <SleepTimerActions> element.
Click the following image for more information:
| Sample Test Action Configuration |
To configure a Test action
A Test action type can be configured from several different places within the well test configuration control. However, the base configuration is always the same. Perform the following steps to configure this type of action, referring to the property definitions below:
The properties for the Test action type are described below.
| Property | Description | XML |
|---|---|---|
|
Type |
Specifies the action type for the action. |
|
|
Timeout |
||
|
Value (UDC or sec) |
Specifies how the amount of time the test action will wait. Options include an actual value in seconds or a value from an associated point:
|
|
|
Type |
Specifies the timeout value type. Values include Self or UDC. |
|
|
Relative facility link |
Specifies the relative facility tag to use for the action. E.g., Separator Note: The facility tag used as the starting point for the relative resolution depends on where this action type is configured. If the action is defined at a position level, then the base facility tag will be the well facility. If defined at the header level, the base facility will be the header facility. |
|
|
Update |
Indicates whether to update the actual timeout. Click the check box to enable the update. Options include True or False. If this value is set to True, then the point resolved in this action will be updated with the actual time spent waiting. |
|
|
Actual UDC |
Specifies the actual UDC to use to post as a running count of how long the actions have been in the timeout. Click the browse button to open the Select UDC dialog box and select an appropriate UDC. |
|
|
Condition |
||
|
UDC |
Specifies the UDC to use for the conditional expression. Click the browse button to open the Select UDC dialog box and select an appropriate UDC. |
|
|
Relative facility link |
Specifies the relative facility tag to use for the conditional expression for this action. Note: The facility tag used as the starting point for the relative resolution depends on where this action type is configured. If the action is defined at a position level, then the base facility tag will be the well facility. If defined at the header level, the base facility will be the header facility. |
|
|
Operator |
Specifies the operation used for the comparison. Acceptable values include:
|
|
|
Value |
Specifies the alphanumeric value to compare to the point value in the conditional expression. |
|
|
Actions |
The Test action type also supports a series of conditional properties that can be used to interact with the primary test action. They represent the values of an expression and when the expression is true, the conditional actions defined will be executed. For example, specify an Exit action to exit the well test sequence. In the XML configuration these conditional actions are specified in the <ExitOnTagValueActions> element. To add a condition action
|
|
|
Sleep time |
||
|
Value (ms) |
Specifies the time in milliseconds that the Monitor or Test action will "sleep" before updating the actual timeout value and evaluating the defined conditional actions. When the Sleep time timeout (sleeptime) expires, the actions defined in the Sleep time Actions grid <SleepTimerActions> will be executed. For example, wait five seconds and then poll the device. |
|
|
Actions |
The Monitor or Test action types support the configuration of sleep time action(s) to specify how long the Test or Monitor action type will "sleep" before updating the actual timeout value and evaluating the conditional expression. If any actions are specified for the Sleep time actions, then for every sleeptime timeout specified, those actions will be executed. For example, wait five seconds and then poll the device. In the XML configuration these conditional actions are specified in the <SleepTimerActions> element. To add a sleep time action
|
|