C block using param

Hey.
I implemented a c block that works great. I was wondering if there is any way to use parameters inside the block itself?. Now I feed a parameter as an input to the block.
I know in PSIM that it’s indeed possible.
thanks you.

Yes you can. Below are the types that are understood:

I see. I’m having trouble with understanding how to work with this syntax. Maybe there is an example of defining a parameter to use inside the block ?
Sorry, maybe I lack basic spice understanding :frowning:

Here is an example of how you can add a parameter for C++ block.
Remember, whatever you change input, parameter or output, you should re-create the C++ template. So, copy your code, re-create C++ template and paste the code back.

2 Likes

Thank you KSKelvin. Very helpful, as always. :slight_smile:

1 Like