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.



請問如何在LabVIEW下撰寫程式清除Chart圖表中的資料?



主要軟體: LabVIEW Development Systems
主要軟體版本:
主要軟體修正版本:
次要軟體:

問題: 我在LabVIEW的人機介面上有一個chart圖表,請問除了在圖表上按右鍵在選單上選擇Data Operations » Clear Chart之外,還有其他方式可以透過程式清理chart圖表的內容嗎?

解答: 您可以使用Property node在程式中清除chart圖表的內容,首先在chart圖表上按右鍵選擇Create >> Property Node來創造一個chart圖表的Property Node物件。然後在該物件上按右鍵選擇Properties » History Data,並將此物件的預設值改為寫入值(在物件上按右鍵選擇Change to Write.)。最後在物件上按右鍵並選擇Create Constant,此將會創造一個空的array物件並連結在Property Node物件之上。以後當程式進行到此部分程式碼時,空的array將會寫入chart之中即可清除chart內的歷史資料。

相關連結:

附加檔案:





報告日期: 01/22/1996
最後更新: 05/06/2003
文件偏號: 0HLH3PTA