With the PLECS C-Script block you cannot link against external libraries, so you must include your external code as source code. In other words, you must include the “controller.c” file in the Code Declarations section, as you have done so far.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Include paths in C-Scripts | 2 | 1051 | June 9, 2020 | |
how to share global variable in different c script? | 4 | 1648 | January 13, 2021 | |
From Matlab function to C-script block | 5 | 1745 | June 21, 2023 | |
C-script cannot be loaded in rt box | 1 | 638 | September 24, 2021 | |
Path configuration of library C-scripts for RT-box | 1 | 29 | January 31, 2025 |