Using the delay function in the c block

reza hakimi_20486
reza hakimi_20486 Altair Community Member
edited November 2023 in Community Q&A

Hello

I used delay function in c block

 

But there is no change in the answer output

And by the way, the code composer software gets an error from this function

 

What should I do to fix this error?

Or what should I do to delay the c block. 

image

Tagged:

Answers

  • NikosDimitrakopoulos
    NikosDimitrakopoulos
    Altair Employee
    edited November 2023

    Dear User,

    The "C block" and the "Simplified C block" in PSIM support a specified list of functions. You can find this list by navigating to the "Help" option of the "C block":

    image

    image

     

    The delay function is not a part of that list and won't work the way you want it in the simulation. What you can do is add a "Unit Delay" block at the output of the "C block" if a certain condition is met. This can add the delay to the output signal.