From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



執行多 Time Loop 或 Timed Sequence 時出現 Error -808 錯誤訊息



主要軟體:
主要軟體版本: 2009
主要軟體修正版本: N/A
次要軟體: LabVIEW Modules>>LabVIEW Real-Time Module

問題: 我有多個timed loops使用在程式中, 然而執行程式時發生一個錯誤 Error -808 "LabVIEW: The given name is already being used by the following timed structure." 在timed structure的configuration node中,我有獨立唯一的名稱, 為何我會收到這樣的錯誤訊息? 我應該如何修正這個錯誤?

解答: 有時多個timed loops在相同的VI中會變成損毀, 此時timed loop或timed sequence可能回傳錯誤訊息, Error -808 "LabVIEW: The given name is already being used by the following timed structure, 儘管你的timed structures有獨立的名稱仍可能發生這錯誤。 首先辨認出是哪個timed structures回傳這錯誤訊息, 並且以他們的non-timed equivalent structure來取代。對timed loop來說, 在timed loop上按右鍵並且選擇"Replace with While Loop", 藉此以while loop來取代它的使用。而對timed sequence來說, 在timed sequence上按右鍵並且選擇"Replace with Flat Sequence", 藉此以flat sequence來取代它的使用。然後以使用相同方法的原本架構來取代, 這將會重新產生timed structure並且應該可以移除因為原本損毀而造成的任何錯誤。 這個錯誤也可能發生在當複製一個subVI(有使用timed loops)時, 儲存為一個獨立的名稱並且放在相同的程式中來做為原始的subVI; 然而當這個複製沒有被儲存時這些結果可能不會出現。 Error -808不是一個Automatic error handler會偵測到的錯誤, 所以錯誤叢集(error cluster)必須要接線通過這timed loops來去顯示它。為了要減少這樣的議題, 在subVI中的timed loops將會需要參考上面的步驟以while loops來取代使用。

相關連結: KnowledgeBase 3I0MILFQ: Why is a Timed Loop Slower Than a Regular While Loop in LabVIEW? KnowledgeBase 3G9I38L1: Timing Sources Available for LabVIEW Time Loop by Platform KnowledgeBase 3F2H4U41: Unexpected Timed Loop Behavior When Reentering the Loop

附加檔案:





報告日期: 06/08/2006
最後更新: 12/15/2015
文件偏號: 3Y6A471R