Log Gain graph

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
rickou
Professional User
Posts: 143
Joined: Mon 2006-03-13 12:29
Location: Francin, Savoie, France
Contact:

Log Gain graph

Post by rickou »

hi there !!

i have a question regarding simulation and graphing the gain of the below schematic
{86EBC2AF-2718-436A-B380-2E3E5C6CBB44}.png.jpg
{86EBC2AF-2718-436A-B380-2E3E5C6CBB44}.png.jpg (137.02 KiB) Viewed 526 times
this is a log gain amplifier and i would like to graph the gain vs input voltage ...
the input freq is fixed to 40kHz (but it could be interresting to draw this gain vs input voltage with a freq sweep...)

i haven't found a way to do this simulation with the graphs...

Could someone help me ? (i have also attached the schematic file)
Attachments
simu US.pdsprj
(50.42 KiB) Downloaded 55 times
Eric BOUXIROT
AZIMUT MONITORING
+33(0)680544791
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Log Gain graph

Post by Ettore »

You find attached what (hopefully) you were searching for. The generators E1 and V1, respectively a linear dependent voltage-controlled voltage and independent voltage source, have been added because of Frequency Response analysis graph. Proteus makes use of standard SPICE analysis modes and, as a result, the OFFSET and AMP properties of the sine generator are removed once Frequency response analysis mode is made. The two generators restore the correct bias that makes your amplifier to work correctly. The correct offset is directly assigned in the Frequency response graph within the "User defined properties" field; the line X=1.5 assigns this value to variable X of the V1 generator.

About the GAIN vs VIN graph, a Dc Sweep Analysis mode has been used. The GAIN is simply computed by trace expression VOUT/VIN. I chose as the start and stop values those numbers that makes the simulation safe without warnings. Outside those values the gain is strongly non-linear and warnings about GMIN can be seen.

Just a note about the script:

Code: Select all

*DEFINE
X=0
I've added it just to allow for real time animation without warning about X undefined.

In the help file "Simulation Help", at the section ANALYSIS TYPES, you may get some further information about the analysis modes I've been used here.
Attachments
simu US_1.pdsprj
(82.6 KiB) Downloaded 49 times
Kind regards,
Ettore Arena - Labcenter Electronics.
rickou
Professional User
Posts: 143
Joined: Mon 2006-03-13 12:29
Location: Francin, Savoie, France
Contact:

Re: Log Gain graph

Post by rickou »

Hello !

thank you so much..

but... i have only v8.6SP3 version of proteus... and i can't open your file.... :roll:

Eric.
Eric BOUXIROT
AZIMUT MONITORING
+33(0)680544791
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Log Gain graph

Post by Ettore »

I kept an old Proteus installation in my emulated partition so you had lucky enough. So, here it is a file that you may hopefully open up.
Not a bad idea to update at some point ? :)
Attachments
simu US_1_8.6.pdsprj
(82.11 KiB) Downloaded 52 times
Kind regards,
Ettore Arena - Labcenter Electronics.
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Log Gain graph

Post by Ettore »

And a screen shot if you have still problems.
Attachments
ScreenShot 2020-08-21 102030.jpg
ScreenShot 2020-08-21 102030.jpg (305.1 KiB) Viewed 506 times
Kind regards,
Ettore Arena - Labcenter Electronics.
rickou
Professional User
Posts: 143
Joined: Mon 2006-03-13 12:29
Location: Francin, Savoie, France
Contact:

Re: Log Gain graph

Post by rickou »

Cool !!!!

Thank you so much !!!

i will play with this simulation now.. (and try to understand what you've done...)
Eric BOUXIROT
AZIMUT MONITORING
+33(0)680544791
Post Reply