From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



如何將NI SoftMotion Development Module 2.x所開發的程式升級到LabVIEW NI SoftMotion Module呢?



主要軟體:
主要軟體版本:
主要軟體修正版本:
次要軟體: N/A

問題: 我之前已使用NI SoftMotion Development Module 2.x API來開發我的應用程式,那我要如何能夠升級到目前最新的LabVIEW NI SoftMotion Module呢?

解答:

要能夠正確的將您的程式由NI SoftMotion Development Module升級到LabVIEW NI SoftMotion Module前,您必需要先了解這兩明軟體間的差別。NI SoftMotion Development Module和NI Soft Motion Module是完全不同的產品。LabVIEW NI SoftMotion Module是在2009的八月才上市的軟體模組,裡面包含了Supervisory Control、Motion I/O控制、NI 951x C Series模組支援、Trajectory Generation、Fault Handing等相關的新功能。這和2004年就上市的NI SoftMotion Development Module是大不相同的,該模組只提供了Trajectory Generator的功能而已。

目前NI SoftMotion Development Module已停售,並已將其功能整合到2009年八月才上市的LabVIEW NI SoftMotion Module中,就是您所熟悉的Trajectory Generator介面,如果你還想知道更多關於LabVIEW NI SoftMotion Module,請參照LabVIEW 2009 NI SoftMotion Module Readme

NI SoftMotion Module提供了多樣化的API,舉例而言,像是在NI SoftMotion Development Module就有的Trajectory Generator介面,其功能描述如下:

  1. Function Block API: NI SoftMotion Module所提供的高階馬達控制元件。
  2. Axis Interface: NI SoftMotion Module所提供的低階控制元件,像是Trajectory Generator、 LabVIEW Project axis參數設定、Motion和Digital I/O資訊顯示等。
  3. Trajectory Generator Interface: NI SoftMotion Module所提供可控制Trajectory Generator的低階元件。
  • 現在您應該清楚之前的NI SoftMotion Development Module是如何整合到最新的NI SoftMotion Module中,目前提供兩個建議升級的方法。
    1. 使用新的Axis Interface API去開發您的應用程式,請不要再使用Trajectory Generator API。
    2. 不要使用NI SoftMotion Module Scan Engine所支援的任何元件。

    使用新的Axis Interface API去開發您的應用程式,請不要再使用Trajectory Generator API

    在升級之前請先詳讀Using the NI SoftMotion Axis Interface這份文件,而您必需要使用Axis Interface重寫您的程式,才能夠使用NI SoftMotion所提供的新功能,像是您可以直接使用LabVIEW Project去設定各軸的參數,或是測試各軸的運作情況,以及Servo Motor參數調整,還能夠直接去控制Motion的I/O接腳等。

    注意: 您的RT設備必需要能夠支援NI Scan Engine才能夠使用Axix Interface API。

    不要使用NI SoftMotion Module Scan Engine所支援的任何元件

    如果您想要保留您目前所開發的程式,但又想要修正目前所使用Trajectory Generator相關的元件時,比較建議您選擇這個方式來升級,可是您必需要知道,這個方法並無法讓您使用到NI SoftMotion Module的新功能,因為該功能都必需要依靠NI SoftMotion Scan Engine才能夠使用。

    注意:如果您的應用程式有使用到NI SoftMotion Development Module 2.0,您必需要使用Tools中的NI SoftMotion Dev Module Upgrade Utility來升級您的程式。

    1. 當安裝RT端的軟體時,請記得要安裝LabVIEW NI SoftMotion Module,但是千萬不要安裝 LabVIEW NI SoftMotion Scan Engine Support.
    2. 之後開啟您含有NI SoftMotion Development Module 2.x元件的應用程式時,並不需要額外的調整即可使用。


    相關連結: Using the NI SoftMotion Axis Interface
    LabVIEW NI SoftMotion Module Product Page
    LabVIEW NI SoftMotion Module Readme


    附加檔案:





    報告日期: 08/11/2009
    最後更新: 11/27/2009
    文件偏號: 50A926AJ