How do I show the value of a variable in a text block?
I'm wanting to generate spice models in MathCad Prime worksheets. The problem I'm having is I can't seem to find a way to substitute the value of a variable into a text block.
I calculate some variables such as:
Model_Name:="HDS10M"
Nf=2.4
Isf=1.86e-7
Then I want to create a text block that contains something like this.
.model Model_Name diode(N=value(Nf) Is=value(Isf)... )
but I want this to be displayed in the worksheet so I can just copy and paste it into a text file to have a model..
.model HDS10M diode(N=2.4 Is=1.86e-7)
This would be very useful when there are a bunch of parameters like in a FET model or in a subcircuit to eliminate opportunity for human error. Is there any way to do this?
Best Regards,
Chris




