Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
get_table_schema('ScriptsTasks')


Code Block
languagejson
{
  "table_type": "ScriptsTasks",
  "data": [
    {
      "Name": "ML_Predict_Periodic",
      "Language": "CSharp",
      "Execution": "Periodic",
      "Period": 5000,
      "Code": "@Script.Class.<ClassName>.Predict(\n    @Tag.Plant/Reactor1/Temperature.Value,\n    @Tag.Plant/Reactor1/Pressure.Value,\n    @Tag.Plant/Reactor1/Flow.Value,\n    @Tag.Plant/Reactor1/EnergyConsumption.Value);"
    }
  ]
}

...

After creating all objects:

  1. ?? Confirm the solution is set to Multiplatform before starting the runtime. ML.NET requires .NET 8+ — if the solution was created as Windows (.NET 4.8), training will fail with a System.Math / CpuMath error. Instruct the user:

    "Before starting the runtime, please confirm your solution is set to Multiplatform: Solution → Settings → Target Platform = Multiplatform, then Product → Modify."

    Only proceed if the user confirms this is already set.
  2. Do NOT start the runtime automatically. Inform the user that all scripts are configured and that they can start the runtime whenever ready. Only call designer_action('start_runtime') if the user explicitly requests it.
  3. Wait for training — the model needs MinTrainingSize data points before predictions begin
  4. Check output tags — verify LastPrediction timestamp is updating
  5. Screenshot — if a dashboard exists, take a screenshot to confirm predictions are flowing

...