C Code (External File)
Description
C Code (External File)
The differences between the C Code (External File)
and the C Code
models are:
- The source code must be edited outside SIMBA in an external file. Use the
Source file path
parameter to point to the.c
file. - The code is compiled in Debug mode without optimization(lower performance).
- It is not possible to have multiple instances of the
C Code(External File)
model pointing to the same source file.
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 |
---|---|
SourceFilePath | Path to the Source File |
OptionalAdditionalIncludeDirectory | Optional file to an additional include directory |
NumberOfInputs | Number of Inputs |
NumberOfOutputs | Number of Output |
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. |