Skip to content

C Code

Symbol

Description

C Code

The "C Code" model allows the user to write C Code directly in SIMBA to build custom control models. See this documentation for more information.

Library

Control > Code

Pins

Name Description

Parameters

Name Description
NumberOfInputs Number of Inputs
NumberOfOutputs Number of Output
OptionalAdditionalIncludeDirectory Optional file to an additional include directory
Code C Code to be compiled
SamplingTime -none or 0: No sampling. The system will be solved in the Newton loop (default).
-auto: Inherit the sampling time of its source device.
-Sampling Period: defined in seconds.