PathSim Codegen
Simulation to embedded C99. MISRA compliant. Zero dependencies. Full traceability.
Example
Python (PathSim)
Loading...
Generated C99
Loading...
Supported Blocks
Algebraic
Constant, Amplifier, Adder, Multiplier, Divider, Clip
Dynamic
Integrator, StateSpace, PT1, PT2, PID, LeadLag, TransferFunction, Butterworth, Allpass
Math
Sin, Cos, Tan, Exp, Log, Sqrt, Abs, Pow, Atan2, Sinh, Cosh, Tanh
Sources
Sinusoidal, Step, TriangleWave, SquareWave, Clock, GaussianPulse
Logic
GreaterThan, LessThan, Equal, LogicAnd, LogicOr, LogicNot
Events
SampleHold, Algebraic loops (delay-broken)
Solvers & Numeric Types
Euler
1st order, 1 stage. Fastest, lowest accuracy.
SSPRK22
2nd order, 2 stages. Strong stability preserving.
RK4
4th order, 4 stages. Recommended for most applications.
double
64-bit IEEE 754. Default for desktop and Cortex-M4F+.
float
32-bit IEEE 754. For targets with single-precision FPU.
Fixed-Point
Q-notation (Q7.8, Q15.16, etc.). For targets without FPU.
Terms
Free Use
The Free edition is available at no charge for personal, educational,
and non-commercial use.
Commercial Use
Commercial use requires a commercial license.
Contact info@pathsim.org for licensing.
Generated Code
Generated C code is owned by the licensee and can be freely distributed
as part of your products.
Privacy
We collect your email and optional company info. We do not sell or share
your data. Request deletion at info@pathsim.org.