Hi! I have an exponential V-I converter circuit that I'd naturally like to do a logarithmic V-I graph of. But while it'll do a linear graph just fine, when I switch it to logarithmic the graph comes up completely blank (no axes, nothing). Circuit is here, just run the DC sweep and switch between linear and log in Advanced Graphing. https://www.circuitlab.com/circuit/j37gbybujkkn/whynolog/ Thanks! |
by wrs
April 14, 2021 |
Hi @wrs, cool circuit! The plotter is having a problem with logarithmic y-axis because your current is negative, and $\log (x)$ is undefined for $x \le 0$. You currently are plotting
I tried the first of these and the plot worked fine with logarithmic scale! The curve showed a linear relationship on a log-linear scale. |
by mrobbins
April 15, 2021 |
Aha, that makes sense! May I suggest that instead of a blank screen the graph could show an error message? BTW, the second transistor is there for temperature compensation — which I think can’t be modeled in CircuitLab? Or is there some workaround I could use? (Messing with transistor parameters or something?) |
by wrs
April 15, 2021 |
That's a good suggestion, thanks. Temperature: there is a global parameter $$V_\text{th} = \frac { k_B T_\text{absolute} } {q_e}$$ The CircuitLab parameter Here's an example simulation with a DC Sweep that adjust |
by mrobbins
April 15, 2021 |
That sounds perfect. I’m glad I asked! The documentation says “Temperature-dependent effects are not currently modeled.” |
by wrs
April 15, 2021 |
Please sign in or create an account to comment.
CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.