Signal Generator doesn't work??!?!!?
403 2
Atarashii 9 months ago
Hello there I've been using the SIM mode for quiet a long time. At first the signal generator worked as it should be then from the last month it doesn't give us the signal we wanted. In the picture you can see that I wanted a sinusoidal signal between 2V and 12V but when I'm measuring it it doesn't completely look like that. Hope the DEV will give a look and try to fix it thanks  ![image.png](//image.easyeda.com/pullimage/RMmbtcmy8c2BEY7HWr4HsHZWtyhafC6T9McILTBT.png) ![image.png](//image.easyeda.com/pullimage/7r0HArvxNqbjpraw6phLRpkuLilVP81Wp31CC4Ox.png)
Komentáře
andyfierman 9 months ago
I don't think that the Signal Generator has changed. Maybe you are using it in a different way. If you look at the netlist for a simple sim with just the signal generator in it: ![image.png](//image.easyeda.com/pullimage/VwCgXARQi21iPko2oMW2FBdxWMeT3sV5D2D2gSX8.png) you will find that the subcircuit of the signal generator is made up of two voltage sources: ``` ** sig gen ** XFG1 VP GND VN FUNCTIONGENERATOR_XFG1 .SUBCKT  FUNCTIONGENERATOR_XFG1 1  2  3 V1 1 2 SINE(2 12 4k) V2 2 3 SINE(2 12 4k) .ENDS .SAVE VN VP .tran 1m ``` If you then study the Simulation Tutorial: [https://docs.easyeda.com/en/Simulation/Chapter7-Configuring-Voltage-and-Current-Sources/index.html](https://docs.easyeda.com/en/Simulation/Chapter7-Configuring-Voltage-and-Current-Sources/index.html)<br> <br> you will see that the **Amplitude** refers to the peak voltage that the sinewave reaches so the peak-to-peak swing will be twice that. The **Offset** is simply a DC offset applied to that swing. The signal generator is configured so that both voltage sources produce the same swing but that from V2 is negative with respect to that from V1. So the positive output, VP, produces a swing of 24V peak-to-peak with an offset of +2V and negative output,VN, produces a swing of 24V peak-to-peak with an offset of -2V. On your screenshot you show that you have grounded the VN output, have left the COM pin unconnected and are measuring the voltage from the VP terminal. In other words you are measuring the difference between the VP and the VN outputs: V(VP)-V(VN). This will give what you see on your WaveForm plot: a peak-to-peak swing of 48V with a +4V DC offset. The Amplitude would be (24V+4V)=28V so the combined output swings from a positive peak of +28V down to a negative trough of (24V-4V) = -20V.
Odpovědět
Atarashii 9 months ago
@andyfierman thank you very much sir!
Odpovědět
Pro přidání komentáře se musíte Přihlásit nebo Registrovat
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
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.