You need to use EasyEDA editor to create some projects before publishing
Signal Generator doesn't work??!?!!?
1771 4
Atarashii 3 years 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)
Comments
andyfierman 3 years 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.
Reply
Atarashii 3 years ago
@andyfierman thank you very much sir!
Reply
AustinDale 2 years ago
Where can I find that XFG1 component? I can find it anywhere in the Commonly Library that took the place of the EELib and if I try to search the library nothing remotely close comes up. Please help if you can, thank you.
Reply
andyfierman 2 years ago
@AustinDale, The Function Generator is only available in **SIM** mode. As a newcomer to simulation in EasyEDA you are strongly advised to read - and play with the example in - all of the Simulation Tutorial, (3) in (2) in: [https://easyeda.com/forum/topic/How-to-ask-for-help-and-get-an-answer-71b17a40d15442349eaecbfae083e46a](https://easyeda.com/forum/topic/How-to-ask-for-help-and-get-an-answer-71b17a40d15442349eaecbfae083e46a)
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