Lab sampling support in a SmartStep application 智能向?qū)?yīng)用支持實(shí)驗(yàn)采樣

在智能向?qū)?yīng)用中,可通過測(cè)試組的Lab-AutoLab-Manual模式支持實(shí)驗(yàn)采樣环揽。
在這些模式中岔留,測(cè)試儀設(shè)法將過程維持在穩(wěn)態(tài)。測(cè)試儀的目的是在保持因變量處于測(cè)試限的前提下箕慧,最小化MV的動(dòng)作(即最小控制器動(dòng)作)服球。
該模式與REPOSITION模式類似,不同之處在于其因變量限制保持不變颠焦。操作變量和因變量的復(fù)合狀態(tài)指示將被設(shè)成Lab以指示這種特殊模式的操作斩熊。
測(cè)試組可以通過使用STGREQ項(xiàng)手動(dòng)輸入Lab模式。
如果測(cè)試組處于TestTest-NoPulse模式伐庭,那么其將暫停測(cè)試粉渠,同時(shí)請(qǐng)求保持在Lab
如果測(cè)試組狀態(tài)STGSTS是Reposition(復(fù)位)似忧、Suspend(掛起)或Control(控制)渣叛,那么它會(huì)立即切換到Lab-Manual(實(shí)驗(yàn)手動(dòng))模式。
如果當(dāng)Lab模式需要手動(dòng)盯捌,而測(cè)試組狀態(tài)是Lab-Auto(實(shí)驗(yàn)自動(dòng))時(shí)淳衙,那么在完成有效實(shí)驗(yàn)樣本前,測(cè)試儀將等待,然后切換到Lab-Manual(實(shí)驗(yàn)手動(dòng))模式箫攀。
Lab-Auto模式允許測(cè)試組經(jīng)過基于用戶指定計(jì)劃的實(shí)驗(yàn)樣本時(shí)間自動(dòng)切換到Lab模式肠牲。

指定實(shí)驗(yàn)采樣時(shí)間表
實(shí)驗(yàn)采樣時(shí)間表可以由下述XML文件語法指定:


<labsamples intimefmt="%m-%d-%Y  %H:%M:%S"  outtimefmt="%m-%d-%Y      %H:%M:%S">

<sample name="Top Comp 1" desc="Overhead composition lab 300ppm"  samp_time="05-04-2001 02:00:0" ss_mins="120" exp_mins="15" rpt_hrs="24">

<target type="dep" name="DRAWT" llimit="250.0" ulimit="300.0" restore="yes"/>

<target type="dep" name="OHTEMP" ulimit="115.0"  restore="no"/>

</sample>

<sample  name="Top Comp 2" desc="Overhead composition lab 300ppm" samp_time="05-04-2001 10:00:0" ss_mins="120" exp_mins="15" rpt_hrs="24">

<target type="dep" name="DRAWT" llimit="275.0"  ulimit="325.0" restore="no"/>

<target type="dep" name="OHTEMP" ulimit="112.0"/>

</sample>

<sample name="Top Comp 3" desc="Overhead composition lab 300ppm" samp_time="05-04-2001 18:00:0" ss_mins="120" xp_mins="15" rpt_hrs="24">

<target type="dep" name="DRAWT" llimit="290.0" ulimit="340.0" restore="yes"/>

<target type="dep" name="OHTEMP" ulimit="109.0" restore="no"/>

</sample>

</labsamples>

XML注釋
默認(rèn)XML文件名是tester-name_lab.xml.
注意:CONFIG部分中的STLABXML條目可用于指定不同lab的XML文件。
當(dāng)STLABLOAD條目被設(shè)成1(Load)靴跛,測(cè)試應(yīng)用從在線應(yīng)用目錄中加載實(shí)驗(yàn)XML文件:
ONLINEAPPS\app\tester-name

<labsamples>節(jié)點(diǎn)
實(shí)驗(yàn)室XML文件的頂層節(jié)點(diǎn)是<labsamples>缀雳,并且其具有下列屬性:
?該節(jié)點(diǎn)的intimefmt屬性指定出現(xiàn)在XML文件中采樣時(shí)間的格式。
?該節(jié)點(diǎn)的outtimefmt屬性用于在Aspen Production Control Web Server提供的實(shí)驗(yàn)詳細(xì)視圖頁面中顯示時(shí)間戳值梢睛。

在<labsamples>節(jié)點(diǎn)下可能會(huì)出現(xiàn)任何數(shù)量的<sample>節(jié)點(diǎn)肥印。每個(gè)<sample>節(jié)點(diǎn)描述了計(jì)劃實(shí)驗(yàn)樣本信息。
每個(gè)<sample>節(jié)點(diǎn)具有以下屬性:

?name
計(jì)劃實(shí)驗(yàn)樣本的名稱绝葡。最長(zhǎng)為12個(gè)字符串深碱。

?desc
計(jì)劃實(shí)驗(yàn)樣本的描述。最長(zhǎng)為80個(gè)字符串藏畅。

?samp_time
實(shí)驗(yàn)樣本預(yù)計(jì)采出的時(shí)間敷硅。采樣時(shí)間的格式必須與<labsamples>節(jié)點(diǎn)的intimefmt屬性相匹配。

?ss_mins
系統(tǒng)至穩(wěn)態(tài)所需要的時(shí)間(min)愉阎。實(shí)驗(yàn)樣本的開始時(shí)間由采樣時(shí)間之前的ss_mins所計(jì)算绞蹦。此時(shí),實(shí)驗(yàn)樣本中指定的目標(biāo)將得到執(zhí)行榜旦,測(cè)試組被切換到Lab-Auto模式幽七。

?exp_mins
自采樣時(shí)間后樣本過期的時(shí)間(min)。如果在這一時(shí)刻樣本是活躍的溅呢,則其被標(biāo)記為完成锉走。最初的因變量測(cè)試限得到恢復(fù),測(cè)試組切換出Lab-Auto模式藕届。在先前的時(shí)間里挪蹭,操作員亦可通過設(shè)定STLABCNCL值為1來標(biāo)記一個(gè)活躍的實(shí)驗(yàn)樣本為完成狀態(tài)。

?rpt_hrs
該屬性可用于在完成重復(fù)指定數(shù)目小時(shí)后自動(dòng)重置一實(shí)驗(yàn)樣本休偶。

一個(gè)<sample>節(jié)點(diǎn)可以有若干個(gè)<target>子節(jié)點(diǎn)梁厉。每個(gè)<target>節(jié)點(diǎn)描述了一個(gè)因變量的上下(and/or)測(cè)試限。當(dāng)所有的測(cè)試組都切換到Lab-Auto模式后踏兜,這些限制在實(shí)驗(yàn)樣本開始時(shí)(即samp_time前ss_mins時(shí))得到執(zhí)行词顾。

<target>節(jié)點(diǎn)具有以下屬性:

?type
此屬性支持唯一值dep,表示因變量碱妆。

?name
因變量名稱肉盹。

?llimit
可選的因變量低限。在實(shí)驗(yàn)樣本開始時(shí)該值將被寫入STCVMIN條目疹尾。如果其在工程限外或超過上限上忍,下限值將被拒絕骤肛。

? ulimit
可選的因變量高限。在實(shí)驗(yàn)樣本開始時(shí)該值將被寫入STCVMAX條目窍蓝。如果其在工程限外或低于下限腋颠,上限值將被拒絕。

?restore
可選屬性吓笙,值可以是yes或no淑玫。此屬性的默認(rèn)值是yes。此屬性控制在實(shí)驗(yàn)樣本完成時(shí)是否恢復(fù)原先的STCVMIN (and/or) STCVMAX限面睛。

計(jì)劃注意事項(xiàng)
加載實(shí)驗(yàn)XML文件時(shí)之前的所有實(shí)驗(yàn)日程信息將被清除絮蒿。可以通過將STLABLOAD項(xiàng)設(shè)置為2(清除)來強(qiáng)制清理實(shí)驗(yàn)日程信息叁鉴。當(dāng)測(cè)試應(yīng)用被重新啟動(dòng)或重新加載時(shí)歌径,實(shí)驗(yàn)日程信息也將被清除。
STLABCOUNT項(xiàng)表示排定實(shí)驗(yàn)樣本數(shù)亲茅。在前述例子的實(shí)驗(yàn)XML文件中,XML文件加載到測(cè)試后STLABCOUNT值將為“3”狗准。
STLABREQ項(xiàng)可用于啟用或禁用計(jì)劃實(shí)驗(yàn)樣本處理克锣。如果STLABREQ項(xiàng)設(shè)置為0(禁止),則實(shí)驗(yàn)樣本將不被激活腔长。這防止了因變量限或測(cè)試組模式的任何更改袭祟。

Aspen Production Control Web Server 中查看實(shí)驗(yàn)詳細(xì)信息頁面
實(shí)驗(yàn)詳細(xì)信息頁面提供了有關(guān)計(jì)劃實(shí)驗(yàn)樣本的全面信息。
當(dāng)STLABCNT大于0時(shí)捞附,此頁面的鏈接顯示在主頁巾乳、操作視圖、工程視圖和Aspen Production Control Web Server概述界面中鸟召。
為了標(biāo)記實(shí)驗(yàn)樣本完成和終止測(cè)試組Lab-Auto**模式胆绊,STLABCNCL標(biāo)簽可使用實(shí)驗(yàn)詳細(xì)界面鏈接旁邊的按鈕來設(shè)置。


附原文:
Lab sampling is supported in a SmartStep application through use of the Lab-Auto and** Lab-Manual** modes for a test group.
In these modes, the tester will try to maintain the process at a steady state. The objective for the tester is to hold the dependent variables within their test limits while minimizing the movement of the manipulated variables (that is, min-move controller).
This mode is similar to the REPOSITION mode, with the exception that the dependent limits remain unchanged. The combined status indicator for the manipulated and dependent variables will be set to** Lab** to indicate this special mode of operation.
A test group can be requested to enter** Lab** mode manually using the STGREQ entry.
If the test group is in Test or Test-NoPulse mode, then it will suspend the testing while the request remains at
Lab
.
If the test group status** STGSTS **was Reposition, Suspend, or Control, then it will immediately switch to Lab-Manual mode.
If the test group status is Lab-Auto when the Lab mode is manually requested, then the tester will wait until the completion of the active lab sample before switching to Lab-Manual mode.
The
Lab-Auto
mode allows the test groups to automatically switch to Lab mode for the duration of a lab sample based on a user specified schedule.

Specifying a lab sampling schedule
The lab sampling schedule is specified using the following XML file syntax:

XML notes
The default XML file name is** tester-name_lab.xml**.
Note: The STLABXML entry in the CONFIG section can be used to specify a different lab XML file.
When STLABLOAD entry is set to 1 (Load), the tester application loads the lab XML file from the online applications directory:
ONLINEAPPS\app\tester-name

The <labsamples> node
The top level node in the lab XML file is <labsamples>, and it has the following attributes:
?The intimefmt attribute of this node specifies format of the sample times appearing in the XML file.
?The outtimefmt attribute is used to display the timestamp values in the Lab Detail page of view provided by Aspen Production Control Web Server.
Any number of <sample> nodes may appear below the <labsamples> node. Each <sample> node describes information about a scheduled lab sample.

Each <sample> node has the following attributes:
?name
The name of the scheduled lab sample. It can be up to 12 characters long.
?desc
The description of the scheduled lab sample. It can be up to 80 characters long.
?samp_time
The time when lab sample is expected to be taken. The format of the sample time must match the intimefmt attribute of the <labsamples> node.
?ss_mins
The time to steady-state in minutes. The start time for the lab sample is calculated as ss_mins prior to the sample time. At this time, the targets specified for the lab sample are implemented and the test groups are switched to Lab-Auto mode.
?exp_mins
The time in minutes after the sample time when the sample is considered as expired. If the sample is active at this time, then it is marked as completed. The original dependent variable test limits are restored and the test groups are switched out of the Lab-Auto mode. The operator can signal the completion of an active lab sample by setting STLABCNCL entry to 1 at a prior time as well.
?rpt_hrs
The attribute can be used to automatically reschedule a lab sample after the specified number of repeat hours following its completion.

A <sample> node can have a number of <target> child-nodes. Each <target> node describes the upper and/or lower test limits for a dependent variable. These limits are implemented at the start of the lab sample (i.e., ss_mins prior to samp_time) when all the test groups are switched to Lab-Auto mode.

The <target> node has the following attributes:
?type
The only supported value of this attribute is dep, which indicates a dependent variable.
?name
Name of the dependent variable.
?llimit
Optional lower limit of the dependent variable. This value will be written to the STCVMIN entry at the start of the lab sample. The lower limit value will be rejected if it is outside the engineering limits or if it is above the upper limit.
?ulimit
Optional upper limit of the dependent variable. This value will be written to the STCVMAX entry at the start of the lab sample. The upper limit value will be rejected if it is outside the engineering limits or if it is below the lower limit.
?estore
Optional attribute that can have values of yes or no. The default value for this attribute is yes. This attribute controls whether the original STCVMIN and/or STCVMAX limits are restored upon completion of a lab sample.

Scheduling notes
All the previous lab schedule information is cleared prior to loading a lab XML file. The STLABLOAD entry can be set to 2 (Clear) to force the clearing of lab schedule information. The lab schedule information is also cleared when a tester application is re-started or re-loaded.
The STLABCOUNT entry indicates the number of scheduled lab samples. In the example lab XML file shown above, the STLABCOUNT value will be "3" after the XML file is loaded into the tester.
The STLABREQ entry can be used to enable or disable the processing of scheduled lab samples. If the STLABREQ entry is set to 0 (disabled), then the lab samples do not become active. This prevents any changes to the dependent variable limits or test group modes.

Lab Detail page in Aspen Production Control Web Server view
The Lab Detail page provides comprehensive information about the scheduled lab samples.
A link for this page is displayed on the Home Page, Operation View, Engineering View and Overview pages of the Aspen Production Control Web Server view when STLABCNT is greater than zero.
The STLABCNCL flag can be set using a button that appears next to the Lab Detail page link, in order to signal the completion of the lab sample and to terminate the Lab-Auto mode for test groups.


2015/11/9

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末欧募,一起剝皮案震驚了整個(gè)濱河市压状,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌跟继,老刑警劉巖种冬,帶你破解...
    沈念sama閱讀 218,451評(píng)論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異舔糖,居然都是意外死亡娱两,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,172評(píng)論 3 394
  • 文/潘曉璐 我一進(jìn)店門金吗,熙熙樓的掌柜王于貴愁眉苦臉地迎上來十兢,“玉大人趣竣,你說我怎么就攤上這事〖涂妫” “怎么了期贫?”我有些...
    開封第一講書人閱讀 164,782評(píng)論 0 354
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)异袄。 經(jīng)常有香客問我通砍,道長(zhǎng),這世上最難降的妖魔是什么烤蜕? 我笑而不...
    開封第一講書人閱讀 58,709評(píng)論 1 294
  • 正文 為了忘掉前任封孙,我火速辦了婚禮,結(jié)果婚禮上讽营,老公的妹妹穿的比我還像新娘虎忌。我一直安慰自己,他們只是感情好橱鹏,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,733評(píng)論 6 392
  • 文/花漫 我一把揭開白布膜蠢。 她就那樣靜靜地躺著,像睡著了一般莉兰。 火紅的嫁衣襯著肌膚如雪挑围。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,578評(píng)論 1 305
  • 那天糖荒,我揣著相機(jī)與錄音杉辙,去河邊找鬼。 笑死捶朵,一個(gè)胖子當(dāng)著我的面吹牛蜘矢,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播综看,決...
    沈念sama閱讀 40,320評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼品腹,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來了红碑?” 一聲冷哼從身側(cè)響起珍昨,我...
    開封第一講書人閱讀 39,241評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎句喷,沒想到半個(gè)月后镣典,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,686評(píng)論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡唾琼,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,878評(píng)論 3 336
  • 正文 我和宋清朗相戀三年兄春,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片锡溯。...
    茶點(diǎn)故事閱讀 39,992評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡赶舆,死狀恐怖哑姚,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情芜茵,我是刑警寧澤叙量,帶...
    沈念sama閱讀 35,715評(píng)論 5 346
  • 正文 年R本政府宣布,位于F島的核電站九串,受9級(jí)特大地震影響绞佩,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜猪钮,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,336評(píng)論 3 330
  • 文/蒙蒙 一品山、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧烤低,春花似錦肘交、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,912評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至腻要,卻和暖如春复罐,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背闯第。 一陣腳步聲響...
    開封第一講書人閱讀 33,040評(píng)論 1 270
  • 我被黑心中介騙來泰國(guó)打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留缀拭,地道東北人咳短。 一個(gè)月前我還...
    沈念sama閱讀 48,173評(píng)論 3 370
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像蛛淋,于是被迫代替她去往敵國(guó)和親咙好。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,947評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容