コンテンツにスキップ
ステージングサーバー
開発サーバー

Recipe Code Generator#

pylon ViewerのRecipe Code Generatorを使用すると、サンプルコードを生成して、開発環境でvToolレシピを使用できます。

仕組み#

Recipe Code Generatorの使用により、次のことを実行できます。

  • このツールは、現在開いているレシピを.precipeファイルとして指定されたフォルダーに保存します。
  • このツールは、レシピをロード、開始、処理できるC++サンプルコードを生成します。サンプルコードファイルはレシピファイルと同じフォルダーに保存されます。

レシピコードの生成#

アプリケーションのレシピコードを生成するには:

  1. レシピを作成するか、既存のレシピを開きます。

  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]をクリックします。
    生成されたファイルは、指定した保存先フォルダーに配置されます。