Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

zetex

Hi all,
I am a new to multisim and I am having problem getting zetex zxct1080 current sensor spice model working. Any help will  be appreciated. Thanks

*
*Zetex ZXCT1080 Spice Model v2.0 Last Revised 28/04/08
*
.SUBCKT ZXCT1080 1 2 3 4 5
*
*Pins = Gnd, Vcc, S+, S-, Vout
*
R1 2 1 1E6
R2 4 1 1E8
R3 13 14 1000
R4 15 5 Rmod1 3.5
R5 16 12 9
R6 12 1 Rmod2 1
R7 3 1 1E6
R8 21 22 Rmod3 1
C1 14 1 3E-10
E1 16 1 value={((V(3)-V(4))*100)+(V(3)/466*(V(3)-V(4))+((V(2)-5)/100)+0.025+(V(21)*10))}
E2 13 1 value={V(12)-((V(12)-V(2))*(TANH((V(12)-V(2))*110)+1)/2)}
E3 15 1 value={V(14)*((TANH(V(14)*100)+1)/2)}
I1 1 21 1
V1 1 22 1
.MODEL Rmod1 RES (TC1=6e-3 )
.MODEL Rmod2 RES (TC1=5e-6 )
.MODEL Rmod3 RES (TC1=5e-5 )
.ENDS ZXCT1080
*
*$
*
* (c) 2008 Diodes Incorporated
*
* The copyright in these models and the designs embodied belong
* to Diodes Incorporated (" Diodes "). They are supplied
* free of charge by Diodes for the purpose of research and design
* and may be used or copied intact (including this notice) for
* that purpose only. All other rights are reserved. The models
* are believed accurate but no condition or warranty as to their
* merchantability or fitness for purpose is given and no liability
* in respect of any use is accepted by Diodes Incorporated, its distributors
* or agents.
*


* Diodes Incorporated, 1566 N. Dallas Parkway, Suite 850, Dallas, TX 75248, USA


error in C:\DOCUME~1\MARK\LOCALS~1\TEMP\02.CIR.cir(55):.model rmod1:xu1 r (  
error in C:\DOCUME~1\MARK\LOCALS~1\TEMP\02.CIR.cir(56):.model rmod2:xu1 r (  
error in C:\DOCUME~1\MARK\LOCALS~1\TEMP\02.CIR.cir(57):.model rmod3:xu1 r (  
Instrument operation performed   (2008, August 12, Tuesday, 23:09:39)
|   Instrument Analysis:Transient Analysis 
|   |   Plot title:
|   |   Analysis settings
|   |   |   Initial Conditions:Automatically generate initial conditions
|   |   |   Starting time (TSTART):0
|   |   |   Stop time (TSTOP):1e+030
|   |   |   Plotting increment (TSTEP):0.001
|   |   |   Maximum time step (TMAX):0.001 
|   |   Perform consistency check
|   |   Variables from analysis  
|   |   |   Show device values at the end of the simulation  
|   |   Representation as SPICE commands
|   |   |   begin-scope page
|   |   |   checknodes 3
|   |   |   save all
|   |   |   iplot all
|   |   |   set trtol = 7
|   |   |   set itl4 = 100 
|   |   |   set convlimit
|   |   |   set rshunt = 1e+012  
|   |   |   -param hrange 0 1e+030 
|   |   |   save
|   |   |   tran  -env-options 0.001 1e+030 0 0.001 auto_ic  
|   |   |   if-error end-scope audit-log-show
|   |   |   show all
|   |   |   showmod all  
|   |   |   end-scope
|   |   Multisim Default Analysis Options
|   |   |   Truncation error overestimation factor: 7
|   |   |   Upper transient iteration limit: 100
|   |   |   Enable convergence assistance for code models
|   |   |   Shunt resistance from analog nodes to ground: 1e+012
|   Output from instrument analysis  
0 Kudos
Message 1 of 8
(5,090 Views)

In my searching around, I could not find a spice model for a ZXCT1080 either from Zetex or Diodes Incorporated. The question becomes, where did you get this from? The reason I ask is that where ever you acquired it, it may not be a good model or at least not compatible with Multisim in some fashion. If you aquired it from Diodes Incorporated, then you may need to contact them and let them know that you are using Multisim and see if they can provide one that is compatible.

The only other option is to hope there is a person here that can decipher what is wrong with it and how to make it compatible with Multisim. Unfortunately, I am not the person that can do this.

I wish I could of been more help, but model deciphering is not my specialty.

Kittmaster's Component Database
http://ni.kittmaster.com

Have a Nice Day
0 Kudos
Message 2 of 8
(5,069 Views)

Hi lacy,

I downloaded the spice model from zetex website @ http://www.zetex.com/3.0/spice/zxct1080.mod and also, the full zetex product range spice model can be downloaded from  http://www.zetex.com/3.0/spice/zmodels.lib.

 

I have emailed their spice department regarding multisim, hopefully they will reply soon 🙂

 

mark

 

0 Kudos
Message 3 of 8
(5,060 Views)

Thanks for informing me about that. I looked at their site, but apparently I overlooked it. You did the right thing by contacting them. Most of the time these companies produce models for Pspice or some other EDA package and just ignore Multisim. Maybe if enough people contact these IC manufacturers and request spice model for Multisim, they may see that this package is just as popular or more so than any other and start producing compatible models. This may never happen, but it doesn't hurt to try.

 

In the meantime, if anyone else on the forum is more knowledgeable about spice models and would like to take a crack at getting this one to work for this user, please feel free.

Kittmaster's Component Database
http://ni.kittmaster.com

Have a Nice Day
0 Kudos
Message 4 of 8
(5,038 Views)

Hi,

 

It looks like you are running an earlier version of Multisim which was less compatible with the PSpice syntax used in this model. Which version are you running?

From the error log it appears that the resistor model syntax is the offending device. Try this modified syntax:

 

 .SUBCKT ZXCT1080 1 2 3 4 5
*
*Pins = Gnd, Vcc, S+, S-, Vout
*
R1 2 1 1E6
R2 4 1 1E8
R3 13 14 1000
R4 15 5 3.5 tc1=6e-3
R5 16 12 9
R6 12 1 1 tc1=5e-6

R7 3 1 1E6
R8 21 22 1 tc1=5e-5
C1 14 1 3E-10
E1 16 1 value={((V(3)-V(4))*100)+(V(3)/466*(V(3)-V(4))+((V(2)-5)/100)+0.025+(V(21)*10))}
E2 13 1 value={V(12)-((V(12)-V(2))*(TANH((V(12)-V(2))*110)+1)/2)}
E3 15 1 value={V(14)*((TANH(V(14)*100)+1)/2)}
I1 1 21 1
V1 1 22 1
.ENDS ZXCT1080

 

Note that I tried your circuit with the original model in both V10.0.1 and our latest release - V10.1 - and had no simulation or issues.

 

Message Edited by MaxNI on 09-09-2008 09:01 AM
Max
National Instruments
0 Kudos
Message 5 of 8
(4,873 Views)
I belive this user to be using Version 10. You can tell by the scattered toolbars. I believe I tried this in Version 10.1 and I got the same error message he did. I wonder why we got the same messages and you did not? Just curious.
Kittmaster's Component Database
http://ni.kittmaster.com

Have a Nice Day
0 Kudos
Message 6 of 8
(4,855 Views)

Please attached your circuit

Max
National Instruments
0 Kudos
Message 7 of 8
(4,852 Views)
Sorry Max, I went back and took another look at this and apparently I have confused this with another component that I was testing. It does work as is with 10.1. Sorry about my mistake as I am only perfect 99.9% of the time.
Kittmaster's Component Database
http://ni.kittmaster.com

Have a Nice Day
0 Kudos
Message 8 of 8
(4,842 Views)