Build Simulations
“Think of it as LEGO® for hardware simulation – snap a few bricks together, press Run, and your virtual device comes alive.”
1. What is SPX‑SDK?
2. Why should I care?
3. The 60‑second tour
# models.yaml
TemperatureSensor:
attributes:
temperature: 25.0
heating_power:
default: 0.0
hooks: { on_set: [refresh_model] }
actions:
- function: $in(temperature)
call: $in(temperature) + 0.5 *
(0.6 * $in(heating_power) - 0.02 * ($in(temperature) - 25))
{
"TemperatureSensor": {
"attributes": {
"temperature": 25.0,
"heating_power": {
"default": 0.0,
"hooks": {
"on_set": [
"refresh_model"
]
}
}
},
"actions": [
{
"function": "$in(temperature)",
"call": "$in(temperature) + 0.5 * (0.6 * $in(heating_power) - 0.02 * ($in(temperature) - 25))"
}
]
}
}
4.Simulation Building Blocks
Concept
What it represents
In-code example
5. Extending the toolbox
6. Typical Engineer Workflow
7. Next steps
Remember
Last updated

