1.2 KiB
1.2 KiB
TargetLink Configuration of State Flow
[TOC]
TargetLink Configuration of Ports in State Flow
If ports and locals are not properly configured in State Flow, the signals may end up as Float64, which is not a native data type. Do not choose data type double, this will result in Float64 as data type.
Do not choose "Inherit: Same as Simulink" either as this may also result in Float64. It is best to choose single as Datatype for inputs or boolean for logical signals.
The above configurations can also be done in the TargetLink Property Manager. In the property manager, TL classes can also be set, see below. The TargetLink properties can be configured by choosing TargetLink -> Property Manager in the menu.
A properly configured outport is marked by blue in the picture below. The outport marked by red can cause the undesired behavior.