Xmod Co-simulation Page

Imagine you are designing a Field Oriented Control (FOC) algorithm for a BLDC motor.

# Define ports self.input_ports = [XModPort("F_ext")] self.output_ports = [XModPort("x"), XModPort("v")] xmod co-simulation

class SpringMassDamper(XModModel): """x = position, v = velocity, F_ext = external force input.""" Imagine you are designing a Field Oriented Control

While standard simulation runs purely in software on a PC, and full deployment runs purely on hardware, co-simulation sits in the sweet spot between the two. Today, we are exploring how XMOD technologies facilitate this bridge, allowing engineers to validate code generation, test control strategies, and debug hardware without leaving the comfort of their simulation environment. v = velocity

def get_state(self): return "x": self.x, "v": self.v