[Error]#3006: SimCoder does not support 't' and 'delt' in Simplified C Block ...again..

Altair Forum User
Altair Forum User
Altair Employee
edited August 2023 in Community Q&A

Hello,All

I have a problem in simplified C block.
At first, I simulated my "simplified-C block" FOC-PMSM circuit.
(1) It showed [Error]#3006: SimCoder does not support 't' and 'delt' in Simplified C Block …[pic1]
I solved this error by changing the "t" to another variable.
Then, I could simulate successfully.
(Is it a regular method?)
(2) But, when I deployed the "Hardware config."&"ADC"(F2806x), the [Error]#3006 appearing again!
I am sure there is no "t" in these Simplified C Blocks.
Even, I give a simpler input signal, [Error]#3006 still appears. [pic2]

I need your help, please.
Thank you!

image

 

image

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2023

    SimCoder does not support 't' and 'delt'.

    SimCoder is to generate code which runs on target MCU.
    't' and 'delt' are the variables used in simulation, not on target. You must define those variables in your code.

    What is in your S1 block? How do you connect the 3-phase power circuit nodes inside the MCU code?