Model
Base classes and helpers
Creating a model in Python
import yaml
from spx_sdk.model import Model
with open("system.yaml") as fh:
definition = yaml.safe_load(fh)
model = Model("Plant", definition)
# Access top-level containers
attrs = model["attributes"]
actions = model["actions"]
# Drive the model manually
model.prepare()
for _ in range(10):
model["timer"]["time"] += 0.1
model.run()Working with instances
Timers and polling
Differences vs. server core
Recommended workflow
Last updated

