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.
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
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.
Thank you KSKelvin. Very helpful, as always.