sharpie7 / circuitjs1

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

"Show Power Consumed" checkbox doesn't work with multiple plots in one scope #715

Open LawnchairLarry opened 2 years ago

LawnchairLarry commented 2 years ago

I can't show the drawn power from a device in the Osciloscope. not even from the powermeter xD

I was building an Powerampfifier for presentations and there is no way to compare the compare the power. I just can show the drawn power of the power source, thats it.

greetings and good Work so far! =) I would spend you an coffee if there where a "spend him a coffee" butten somewhere around here :D

pfalstad commented 2 years ago

Show a component in the scope, click the gear on the scope, and in the scope properties under “plots”, check “show power consumed”

LawnchairLarry commented 2 years ago

ja exaclty that does not work for some reson. I use your offline version, Cirquit ist in attatch B.zip .

LawnchairLarry commented 2 years ago

Hmm i just figgured out that it works if i put the resistor on an extra osci for some reason. Hmm why is that?

LawnchairLarry commented 2 years ago

Hey i think that is a wierd bug, i can add the Resistor to the osci first and then show tho power consuption. After adding the Power source to the same osci i cant push the button show power consuption anymore.

LawnchairLarry commented 2 years ago

Nope, doesn't even work in browser version: https://tinyurl.com/ycgo8442 i just can show the power consuption of one device in an osci, after that the "Show power consumption button" doesn't a shit anymore. So i can't compare input and output power of that power amplifier =/

pfalstad commented 2 years ago

that's weird all right...

LawnchairLarry commented 2 years ago

So doctor "pfalsdtad" to the op pleace? We need to do an operation on the open sorce code =)

pfalstad commented 2 years ago

Actually this example you sent has both the power and the voltage plotted in the same graph. How'd you do that? The green is voltage, the gray is power.

Obviously we should handle it better.. The power checkbox shouldn't just do nothing.

But here's how I view the power of any component: right click the component, view in scope, click on the scope gear, check "Show Power Consumed". That doesn't work for you?

LawnchairLarry commented 2 years ago

No, take a clother look: The one grey power plot is from the power sorurce. the other ones are from the resistor.

And no for some reason it doesn't work, in this particular case, try it by yourself. Remove the osci and try to show powe of both, resistor to the right and power source in the same osci: https://tinyurl.com/ycgo8442

pfalstad commented 2 years ago

Plot one, switch to Show Power, plot the other, switch to Show Power, combine:

https://tinyurl.com/y9qcw9gu

After you combine, the checkbox doesn't work. I may just gray it out. I don't know what that checkbox would do if you're already viewing the power of one device and the voltage of another.

LawnchairLarry commented 2 years ago

I see! Maybe you need to make a checkbox for eacht plot =/

Am 2022-01-25 18:49, schrieb Paul Falstad:

Plot one, switch to Show Power, plot the other, switch to Show Power, combine:

https://tinyurl.com/y9qcw9gu

After you combine, the checkbox doesn't work. I may just gray it out. I don't know what that checkbox would do if you're already viewing the power of one device and the voltage of another.

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. Triage notifications on the go with GitHub Mobile for iOS [3] or Android [4]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1] https://github.com/sharpie7/circuitjs1/issues/715#issuecomment-1021452013 [2] https://github.com/notifications/unsubscribe-auth/AW4JMXEPM7ASXPLOZBYPVHDUX3PC5ANCNFSM5MWKETUA [3] https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 [4] https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

pfalstad commented 2 years ago

yes, we really should.

LawnchairLarry commented 2 years ago

And you should implement an "spend a coffee for dev" button ;)

Am 2022-01-25 20:33, schrieb Paul Falstad:

yes, we really should.

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. Triage notifications on the go with GitHub Mobile for iOS [3] or Android [4]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1] https://github.com/sharpie7/circuitjs1/issues/715#issuecomment-1021536877 [2] https://github.com/notifications/unsubscribe-auth/AW4JMXCZYKGCXANAUFBCKATUX33HRANCNFSM5MWKETUA [3] https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 [4] https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub