IF logical operator in Spice 3f5?

Status
Not open for further replies.

lighty

Member level 3
Joined
Oct 2, 2002
Messages
57
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,288
Location
Universe
Activity points
490
pspice logical operator

I wanted to check out some PSpice model which use IF operators and I was surprised to learn that Spice 3f5 doesn't support it.

Is there any simple way for substituting IF with some other syntax?
 

Probably you might use the table function to do that.
Could you give some details about your question?
 

Just found the following statement in the Spice 3 manual
This could explain why sometimes my model work and sometimes doesn't.

However question still remains how can I then use the following statement in Spice 3 without too much hassle:

Code:
E_EBREAKDN_CONTROL         6 0 VALUE {
+  IF(ABS(V(1,2))>V_BREAKDN|ABS(I(V_VSENSE))>I_SUS,12,0) }
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…