pfalstad / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
1.64k stars 279 forks source link

'show frequency' is intermittent #85

Closed BETLOG closed 2 months ago

BETLOG commented 2 months ago

Whenever I scope something with a waveform faster than ~30KHz it often stops displaying the frequency as text. Other times it will display frequencies ABOVE ~35KHz.

Adding audio sources with 48KHz sample rates triggers the option to increase horizontal scale resolution, which is sometimes helpful, but I'm not sure if the value propagates to existing scopes.

options>other options> Auto-Adjust Timestep / Minimum time step size (s)

Doesnt seem to help, and I'm not sure if its setting always propagates either.

I'm an electronics noob who is trying to see what I remember, so I tend to work around the intermittent frequency display, and havent done any empirical testing on the problem, so maybe its just me, but it feels like an intermittent bug.

2024-04-25--18-01-35_betlogbeast_20240425175405betlogbeastfalstadcomcircuitcircuitjshtmlGoogleChromepngGeeqie

pfalstad commented 2 months ago

Hi, when you post a circuit, could you post a link (File->Export As Link) rather than a screenshot.

The frequency doesn't show up steadily if the simulator is having trouble figuring out the frequency. To help with this, adjust the scale and/or make the scope bigger.

BETLOG commented 2 months ago

adjust the scale and/or make the scope bigger.

Yeah, i tried a few things, adding oudio and maxing its sample rate seems to help, but there is almost always a dead spot when i hit 30KHz

https://falstad.com/circuit/circuitjs.html?ctz=CQAgbArCAMB00IQJjNALARjNnvsgGYAOJWAdjCQhIzQIE57ow1wp3oQIBTAWgwwAoLFExgQWTmhYTUE1hnK0CaItCRE0TMASQE+ZQQHcuGJCDEW1FrDEEAnQpon1zxVhqIx5EJMa5oCq4BChp2JhCBEmGqnGZe0P6x0V7uKeE24p6ZIFTiiRFmOahelokAbrlEpbbZed5SnPQNMLAQggAmVV712fG5IB3cAGYAhgCuADYALv4EBOL9af0FhAs5aWWCSNDN84th+zmccIgIjBeXV4wgRLCYSBqoZLRg9BDrp9AYEv7ZlkctiY+od1isHE4gm5nCsLDs5s5LMkgTlsmlsqtLBhgstgokAMZWTi6KTWMoSPheCCwEpgMj0MjQapaMjUVoIISFNw7UzmLaE9HVSHHCm8VKwIgELAYBZgMwyhhIVhfTkhdIldKJRwajAUcBM3JK7yUBAQjXZc1GuI7VbmoUarYAB3AZHMj1YdL5tgIDX8nuKBq2XUiHiNlo8gxGExmnX1Xn6Or15iGYymsxM4Zdbqt2wEWcNrEZCiicSJCF+AHtcotvBB+hgTrAfnFBFWUBJvJgGxJG83fsQBgAxPsy8u68v8EAAJW4AGcAJaz6ajAB2+O4giAA

pfalstad commented 2 months ago

Reducing the timestep will help and will also make the simulation more accurate. See Options->Other Options and reduce it to maybe 0.5u .