You need to use EasyEDA editor to create some projects before publishing
Voltage Controlled Switch attributes wrong
2128 6
example 11 years ago
**BUG** Concise problem statement: Description of Part Attributes for Voltage Controlled Switch do not match attributes in .model statement. Part attributes are mapped onto model statement like this: .model SW_S1 sw vh=0 vt = 0.5 ron= 5 roff=1k : : V(on) V(off) Steps to reproduce bug: 1. Click on S1 2. Read Properties > Part Attributes > V(on) and V(off) 3. Super Menu > Miscellaneous > Netlist for Document > Spice then compare Part Attributes above with .model statement in netlist. Results: Part attributes are mapped onto model statement like this: .model SW_S1 sw vh=0 vt = 0.5 ron= 5 roff=1k : : V(on) V(off) Expected results: Rename V(on) => Vh V(off) => Vt Url: https://easyeda.com/file_view_LM317-3-Terminal-Adjustable-Negative-Regulators-spice-simulation_urlDVd7pH.htm Browser:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/30.0.1599.114 Chrome/30.0.1599.114 Safari/537.36
Comments
dillon 11 years ago
There is another bug in Voltage Controlled Switch. When you change the V(On), the model will not change, the Vh will always keep 1v. I will fixed it soon. Thanks.
Reply
example 11 years ago
"...another bug in Voltage Controlled Switch. When you change the V(On), the model will not change, the Vh will always keep 1v." I didn't see this problem but I think you have changed the code since this bug report was raised to try to fix it but now the **vt** and **vh** have no values in them! So of course all the examples using these switches fail with errors now. If you look at the exported netlist for: https://easyeda.com/file_view_LM317-3-Terminal-Adjustable-Positive-Voltage-Regulator-spice-simulation_urlDVd7pH.htm you can see that the switches are netlisted like this now: ~~~~ S2 S2_3 GND SHRTCCT GND SW_S2 OFF .model SW_S2 sw vh= vt = ron= 1m roff=2k S1 S2_3 GND LOADSW GND SW_S1 OFF .model SW_S1 sw vh= vt = ron= 2.55 roff=2k ~~~~ The Part Attributes still refer to **V(on)** and **V(off)** where I think they should say **vh** and **vt**. Is this why the values in the netlist are empty?
Reply
example 11 years ago
Sorry ... my Markdown was wrong ... The switches in the netlist look like this: `S2 S2_3 GND SHRTCCT GND SW_S2 OFF .model SW_S2 sw vh= vt = ron= 1m roff=2k` `S1 S2_3 GND LOADSW GND SW_S1 OFF .model SW_S1 sw vh= vt = ron= 2.55 roff=2k` where **vh** and **vt** are empty on both switches.
Reply
example 11 years ago
Switches seem to be fixed ... :) but can you make the default values so that: `Vh=0` `Vt=0.5` I am not sure what default logic 1 output voltage is for the Xspice logic parts. If they default to 5V or 3.3V type levels then, to simplify controlling switches from 5V and 3.3V logic levels please make them: `Vh=0` `Vt=1.65` Note that adding hysteresis to a switch may cause convergence problems (because of the discontinuity during hysteretic switching). Setting `Vh=0` sets the switch hysteresis to 0. The user can add hysteresis if they want by setting `0 < Vh < Vt/2`
Reply
example 11 years ago
Might be best to make the default `Roff=1G` R values above 1G may start causing convergence problems and `initial state = OFF` then any shorting switches at device outputs, start open circuit which may help startup of transient sims. :)
Reply
dillon 11 years ago
Done !
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