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

Recipe Code Generator#

pylon Viewer 的 Recipe Code Generator 允許您產生範例程式碼,以便在您的開發環境中使用 vTool recipe。

運作原理#

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

  • 該工具會將目前開啟的 recipe 儲存為指定資料夾中的 .precipe 檔案。
  • 該工具會 產生 C++ 範例程式碼,讓您可以載入、啟動和處理 recipe。範例程式碼檔案會與 recipe 檔案儲存在相同的資料夾中。

產生 Recipe Code#

若要為您的應用程式產生 recipe code:

  1. 建立一個 recipe 或開啟現有的 recipe。

  2. 按一下 Workbench 工具列中的圖示,或按一下 Workbench > Recipe Code Generator,即可開啟 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.

    • Destination folder:選擇要儲存產生檔案的資料夾。如果該資料夾不存在,將會自動建立。

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