06-24-2010 02:25 PM
Here it is:
.SUBCKT MD0100_A 1 2 PARAMS a=0 b=0 c=.0373 d=-1.139 e=0 g=.0109 h=.24663 i=0 j=0 k=.0010883 l=.259684 m=0 n=0
B1 2 1 I={(a+c*(V(1)-V(2))+e*(V(1)-V(2))^2+g*(V(1)-V(2))^3+i*(V(1)-V(2))^4+k*(V(1)-V(2))^5+m*(V(1)-V(2))^6+o*(V(1)-V(2))^7)/(1+b*(V(1)-V(2))+d*(V(1)-V(2))^2+f*(V(1)-V(2))^3+h*(V(1)-V(2))^4+j*(V(1)-V(2))^5+l*(V(1)-V(2))^6+n*(V(1)-V(2))^7)}
.ENDS
This much simpler one won't run either:
.SUBCKT MD0100_A 1 2 PARAMS a=0 b=0 c=.0373 d=-1.139 e=0 g=.0109 h=.24663 i=0 j=0 k=.0010883 l=.259684 m=0 n=0
B1 2 1 I={c*(V(1)-V(2))}
.ENDS
The unused parameters shouldn't cause harm ... should they? Also, I tried to use the built in nonlinear controlled source device ... but it didn't work either.
I am using Multisym 9 - Student Version and any assistance will be very much appreciated. Meanwhile ...
Regards to all,
- Craig
06-25-2010 03:25 PM
HI Craig,
Version 9 is very different from the current product, especially in terms of supported SPICE syntax, so my comments do not apply to the current product.
Version 9 didn't support the PARAMS statement. You should substitute the PARAMS values in your expression, and remove the PARAMS statement. I think the rest should be supported. But if this doesn't solve the problem, let me know, and I'll try to find this older version to test this out.
By the way, the PARAMS keyword needs to be followed by a colon, for example
.SUBCKT MD01100_A 1 2 PARAMS: a=0 b=0 ....
06-25-2010 03:46 PM
Hello Garret,
Thank you for your helpful information. I will try out your suggestion.
Regards,
- Craig