首頁
支援
TestStand 錯誤: 538179 Object Invalidated Method Called on Interface Class
TestStand 錯誤: 538179 Object Invalidated Method Called on Interface Class
更新 Oct 30, 2024
產品資訊
產品資訊中描述經過驗證可以使用本文所述解決方案之產品。此解決方案可能也適用於其他類似產品或應用。
軟體
TestStand
問題敘述
我想要在 TestStand 中呼叫兩個 VI,並將 reference data 從一個VI 傳遞到另一個VI,但卻跳出以下錯誤訊息:
Error 538179 occurred at Transmission Data Unit.lvclass:Write ADU Packet.vi:1
Possible reason(s):
The object used has been invalidated. A method was called on an interface class.
我能成功夠在 LabVIEW 中呼叫這兩個 VI,並用接線將 reference 從一個 VI 傳遞到另一個 VI。
解決方案
此錯誤發生的可能原因是因為 VI 在 TestStand 中的呼叫方式以及 LabVIEW Class Reference 在 TestStand 中的儲存方式:
使用
Class Member Call Call Type
呼叫需要在它們之間傳遞類 reference 的VI。
使用 object reference variable 來儲存在兩個 VI 之間傳遞的 reference。您可以參考這篇
Passing an Instance of a LabVIEW Class Object in the TestStand help
文章以了解更多詳細資訊。
相關資訊
查看
TestStand Using LabVIEW OOP Truck Example,
了解如何在 TestStand sequence 中傳遞 LabVIEW class reference 的說明。
其他支持選項
詢問NI社區
在我們的論壇中與其他用戶協作
搜索NI社區以尋求解決方案
請求工程師的支持
需要具備有效的服務合約或有效的租用版軟體,且支援選項因國家/地區而異。
打開服務請求
了解租用版軟體與服務
了解硬體服務計畫
Was this information helpful?
Helpful
Not Helpful