我如何以程式來啟動及停止 Shared Variable Engine?
主要軟體:
主要軟體版本: 8.2
主要軟體修正版本: 8.2
次要軟體: LabVIEW Modules>>LabVIEW Real-Time Module
問題: 當我的 VI 開始時,我希望能用程式的方式來啟動 Shared Variable Engine。我該如何在 Windows XP 下做到?
解答: Shared Variable Engine (SVE) 是一個 Windows 的服務,所以沒有專屬的 LabVIEW VI 來控制。若要停止或啟動 SVE,用 System Exec.vi 以及正確的命令列指令呼叫。將欲執行的命令列連接至 System Exec.VI 的 Command Line 輸入接點,如下圖。
要啟動 SVE,輸入以下指令: net start "national instruments variable engine"
要停止 SVE,輸入以下指令: net stop "national instruments variable engine"
相關連結:
附加檔案:
報告日期: 06/09/2007
最後更新: 12/19/2007
文件偏號: 4A8IT78H
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.