Is C block compatible with SimCoder in PSIM?

Alvaro Zarate
Alvaro Zarate Altair Community Member
edited February 23 in Community Q&A

 I'm trying to use the C block (not the Simplified C block) with peripherals of F28335 in the simulation, but it sends a message like there was no signal at the output of the C block.
I'm using the version PSIM 2022.2.

Tagged:

Answers

  • Albert_Dunford
    Albert_Dunford
    Altair Employee
    edited February 23

    No the regular c block is not compatible as it contains functions that are called at the beginning and end of the simulation. there is the simple c block which is OK and then there is the simcoder c block which allows for functions, macros, and code injections into other interrupt routines to occur.

    also recall you cannot use the delt or t variables when you do code gen.

    What are you trying to accomplish?