您可以透過列印VI或以程式方式來儲存LabVIEW Block Diagram的圖片。
要列印VI,請遵循以下步驟:
- 開啟想要儲存LabVIEW Block Diagram的VI。
- 點選File » Print 。
- 選擇要列印的VI或VIs。
- 如果只需要Block Diagram的圖片,請選擇Icon, description, panel and diagram。如果需要完整的VI文件,請選擇VI documentation 。點擊Next 。
- 如果選擇VI documentation ,請確保有勾選Block diagram 。如果需要包含hidden frames的圖片(像是Case Structures、Event Structures或是Stacked Sequence Structures ),請確保有勾選Hidden frames 。點擊Next 。
- 選擇HTML file。點擊Next 。
- 選擇圖片格式和色彩度。點擊Save。
- 在硬碟上選擇一個位置以儲存HTML檔案。HTML檔案含有Block Diagram圖片以及每個hidden frame圖片。
要以程式方式取得Block Diagram圖片,請遵循以下步驟:
- 開啟要儲存Block Diagram圖片VI的VI reference。
- 使用Block Diagram: Get Image Scaled invoke node取得圖片。
- 使用一種Graphics Formats VI將圖片數據寫入檔案。
- 關閉VI reference。
完成此操作步驟的範例VI,如下圖所示:
請注意,此方法不會儲存hidden frame的圖片。