Usage with SCADE Suite#
Settings#
Select the target Proxy for Python
in the Code Integration
tab.
The settings page Python
is visible when the target is selected:
Module name (default $(project_name)): Name of the Python proxy. Provide either a name or use one of the following macros:
$(project_name)
: aaa_BbbCcc –> aaa_bbb_ccc$(ProjectName)
: aaa_BbbCcc –> AaaBbbCcc$(PROJECT_NAME)
: aaa_BbbCcc –> AAA_BBB_CCC$(projectname)
: aaa_BbbCcc –> aaa_BbbCcc (unchanged)
Enable co-simulation
(default false): When selected, the Python proxy contains additional instructions to open a SCADE Simulator session and automatically redirects the changes to the inputs and the calls to the cyclic function.kcg_size
(default int64): Corresponding C type forkcg_size
, which is defined as int by default inkcg_types.h
.kcg_false
(default 0): Value ofkcg_false
.kcg_true
(default 1): Value ofkcg_true
.
Code Generation/Build#
Build the application using the Code Generator target Proxy for Python
,
as described in the former section.
This produces a DLL and its Python interface.
The implementation of the generated module relies on the ctypes
module.
It is important to know its usage to access I/Os of complex types,
for example structures and arrays.