跳至內容
測試伺服器
開發伺服器

Recipe Code Generator#

該Recipe Code Generator pylon Viewer 可讓您產生範例程式碼,以便在開發環境中使用您的 vTool 配方。

運作原理#

使用Recipe Code Generator 會執行以下操作:

  • 此工具會將目前開啟的配方儲存為.precipe檔案,並存放在指定的資料夾中。
  • 此工具會產生 C++ 範例程式碼,讓您能夠載入、執行及處理該配方。範例程式碼檔案會儲存於與配方檔案相同的資料夾中。

產生食譜程式碼#

若要為您的應用程式產生食譜程式碼:

  1. 建立一道食譜,或開啟現有的食譜。

  2. 點擊「Workbench 」工具列中的「Recipe Code Generator 」圖示,或點擊 Workbench > Recipe Code Generator。

    Workbench 工具列畫面

    此時 Recipe Code Generator 視窗開啟:

    Recipe Code Generator 視窗

  3. 調整設定

    • Name: Enter the desired name for the recipe.
      The name will be used as the recipe file name (<name>.precipe). Also, the name is used in the generated code.

    • 目標資料夾:選擇要用來儲存所產生檔案的資料夾。若該資料夾不存在,系統會自動建立。

  4. 按一下 Generate。
    產生的檔案將會放置在指定的目標資料夾中。