Simcoder Add Header and External File

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hello PSIM,

How can I add header file(.h) and external file(.c) on PSIM. I got the error when I tried to generate code.

image

 

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Rhonda_20369"
    New Altair Community Member
    Updated by Rhonda_20369

    There are two ways to include external header files so that PSIM will know where to find it:

    1. Copy/move the file to the same folder as your PSIM schematic.

    2. In PSIM's "Options >> Set Path", add the path to the section "C Block Include Path".

    This is where you define the search path for the include files for C blocks. For C blocks, additional include files (such as header files) can be placed in any folder, and if this folder is added to C Block Include Path, PSIM will search for this folder and load the include files to the C blocks.