From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Why won't my rational polynomial VCCS work?

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

 

 

0 Kudos
Message 1 of 3
(3,171 Views)

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 ....

Garret
Senior Software Developer
National Instruments
Circuit Design Community and Blog

If someone helped you, let them know. Mark as solved or give a kudo. 🙂
Message 2 of 3
(3,151 Views)

Hello Garret,

 

Thank you for your helpful information.  I will try out your suggestion.

 

Regards,

 

- Craig

0 Kudos
Message 3 of 3
(3,149 Views)