You need to use EasyEDA editor to create some projects before publishing
Adding a model for a transistor - device doesn't show up on netlist
2435 4
periata 5 years ago
I'm trying to set up a simulation using a custom transistor model.  My schematic is here: [https://easyeda\.com/editor\#id=\|64304ef7d2394a47bb9c27d53624aeaa](https://easyeda.com/editor#id=|64304ef7d2394a47bb9c27d53624aeaa) Following the instructions I found here: [https://docs.easyeda.com/en/Simulation/Chapter14-Device-models/index.html#How-to-change-the-model-attached-to-a-symbol](https://docs.easyeda.com/en/Simulation/Chapter14-Device-models/index.html#How-to-change-the-model-attached-to-a-symbol) I added a generic NPN transistor from the library, and then changed its name attribute to match the name in my model directive.  I added a text item, pasted the model into it, and changed its type to be a spice directive.  However, when I run a simulation or export the netlist, the transistor is missing (although the model is correctly included). What do I need to do to get the transistor included?
Comments
periata 5 years ago
Ok, think I've figured it out ... even if you intend to associate your own model with a device, you have to choose a device that already has a model to start with.  Otherwise, it looks like it always gets (silently) ignored.
Reply
periata 5 years ago
... although now I just keep getting a rather unhelpful message "ERROR: error" when I run a simulation.  The netlist looks OK to me visually, but it won't run...
Reply
andyfierman 5 years ago
For help in getting simulations to run smoothly, please refer to: [https://docs.easyeda.com/en/Simulation/Chapter1-Introduction/index.html](https://docs.easyeda.com/en/Simulation/Chapter1-Introduction/index.html)
Reply
andyfierman 5 years ago
In your model: `.model 2SC3356 NPN(IS=6E-16 NF=0.98 ISE=32E-16 NE=1.93 BF=120 IKF=0.0.17 VAF=10 NR=0.991 ISC=0 NC=2 BR=12 IKR=0.17 VAR=3.9 RB=4.16 IRB=1.96E-04 RBM=3.6 RE=0.38 RC=2  XTB=0 EG=1.11 XTI=3 CJE=2.8E-12 VJE=1.3 MJE=0.5 TF=15E-12 XTF=6 VTF=10 ITF=0.2 PTF=0 CJC=1.1E-12 VJC=0.7 seiresMJC=0.55 XCJC=0.3 TR=1E-09 CJS=0 VJS=0.75 MJS=0 FC=0.5 Vceo=12 Icrating=100m mfg=cel)` if you delete: `Vceo=12 Icrating=100m mfg=cel` then your simulation will run. This text at the end of the model is not part of the spice model syntax. It is a proprietary LTspice (and possibly Pspice) add-on which throws an error because it is not recognised by ngspice.
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice