Comments (8)
Odd. I can't reproduce this problem - it seems to reference to ground - see this example:
http://tinyurl.com/z9sznvo
Do you have the file that displays this problem?
Now, it is an interesting question whether a meter that has one terminal unconnected should display any reading at all!
from circuitjs1.
The scope probe shows the voltage of the 2nd terminal minus the 1st terminal. (The 1st terminal is where you intially place the probe, the 2nd terminal is where you drag and release it) So I can reproduce this behavior if the 1st terminal is at ground (or empty space) and the 2nd terminal is at 5V; but it works fine if the 2nd terminal is at ground (or empty space). So, just swap the terminals and you should be fine.
from circuitjs1.
DOH of course! I do think we should add a little label to differentiate the terminals on the meter though.
from circuitjs1.
No, the starting and ending terminal is not the issue. The bug is caused by the y coordinate of the ending terminal somehow influencing the sign of the voltage calculation.
Here is 2 voltage probes starting at the same corner on the circuit. The only difference between the 2 probes is the y coordinate of their ending terminal. You can also see this in action if you go into select and drag mode and drag the ending terminal up or down in y coordinate. You'll see the +/- sign flip as you drag.
$ 1 0.000005 10.20027730826997 50 5 43
v 208 352 208 128 0 0 40 5 0 0 0.5
162 208 128 336 128 1 2.1024259 1 0 0 0.01
r 336 128 336 352 0 100
w 336 352 208 352 0
p 208 128 112 32 1 0
p 208 128 96 192 1 0
g 208 352 208 416 0
Sharpie, by the way, I am learning EE on my own and I really like your tool!
from circuitjs1.
Oh, I forgot about that. I apparently did that on purpose, in an attempt to guess which way the voltmeter should be oriented. Higher on the screen is generally higher voltage, so we assume the top end of the voltmeter should be positive. It's a feature!
from circuitjs1.
Ugh, I really cannot agree with that as a feature :(
Actually, I agree with both you and sharpie in your earlier comments.
The rules are:
- v = terminal 2 - terminal 1 (or vise versa is fine; consistent is key)
- label the probe point and the reference point on the screen. I think its a very good idea to make this work in a conceptual way that is similar to a real oscilloscopes probe with a grounding reference clip. If the ground is not specified assume it's the same as circuit ground.
One more suggestion, the tool has a feature to show a component in the scope. In this situation, the tool is doing differential probing. Again, labeling the probing point and reference point would be very nice.
from circuitjs1.
Yes, I was playing with the the sim last night and I realized that the scope probe had a mind of its own as to which end was positive!
I do think this behaviour needs a revision. It's pretty odd.
from circuitjs1.
Should now be fixed on mine (also another polarity thing to do with no polarity being shown on AC sources with a bias). Thanks for reporting.
from circuitjs1.
Related Issues (20)
- Feature-RTL logic
- Feature-Transistor current de/amplifier HOT 1
- Bug-dialogue missing for logic and switches HOT 2
- LED Flashing circuit runs very slow compared to real breadboard HOT 2
- Feature-Move intersection
- Feature-Transverse drag of row column
- Please describe how to operate Plot XY - or is this it? HOT 2
- Feature Request - Dynamic images
- Using Sparse Matrix Solvers to Improve Efficiency?
- Feature request: led duty-cycle
- potentiometers can only be even width
- Bug: Scope Properties toolbar hides scope on resizing in XY Mode
- Offline macOS Arm version is corrupted HOT 3
- Bug: Using a DP3T switch in my particular circuit makes it render really wonky HOT 1
- Show tooltip when adding a component
- Question: Memory HOT 14
- Fix help
- Feature request: Batteries HOT 2
- Unusual behavior of sampling capacitor through analog switch when use trapezoidal approximation HOT 4
- (Measurement) tools only work when connected directly with the junction points of an element HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circuitjs1.