sharpie7 / circuitjs1

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

Request: Simulated data download #461

Closed Sakastian closed 4 years ago

Sakastian commented 4 years ago

Hi:

In these times of pandemic, where it is difficult to go to a laboratory, it would be great to be able to download the data from the oscilloscopes. Something like: Right-click on the oscilloscope and then select "download data". The idea is that the file is similar to those obtained from a real oscilloscope. A .txt file with CSV would be great. In this way, you could make charts in Excel, for example, to later perform calculations, superimpose images, highlight parts of the waveform, use the info for a "lab" report, etc. Very good work with the simulator! Congratulations. Greetings from Chile.

Sebastián Arroyo Klein

pfalstad commented 4 years ago

Hi, under "Outputs and Labels" there is an entry for "Add Data Export", which can be added somewhere to record the voltage which can be saved and downloaded. Right-click and Edit the export element to download the data.

primebow commented 3 years ago

Hi, most students are using ecxel diagrams, ploting I-U-curves, for example with diodes. How can get synchronized datas in your example sheet: https://tinyurl.com/yzfqsehm thanks

pfalstad commented 3 years ago

You need to use a CCVS to convert the current to voltage, and then have two data export elements:

https://tinyurl.com/yjsvp4je

Click reset, let it run for a while, click stop, and then retrieve both sets of data by right-clicking on each export element, selecting Edit, and downloading the data link.

primebow commented 3 years ago

Thank you, very much.

Von: Paul Falstad @.> Gesendet: Dienstag, 18. Mai 2021 19:41 An: sharpie7/circuitjs1 @.> Cc: primebow @.>; Comment @.> Betreff: Re: [sharpie7/circuitjs1] Request: Simulated data download (#461)

You need to use a CCVS to convert the current to voltage, and then have two data export elements:

https://tinyurl.com/yjsvp4je

Click reset, let it run for a while, click stop, and then retrieve both sets of data by right-clicking on each export element, selecting Edit, and downloading the data link.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sharpie7/circuitjs1/issues/461#issuecomment-843393889 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AUD4CGGAH57M6U2RIQIDLL3TOKRCDANCNFSM4OU7332Q . https://github.com/notifications/beacon/AUD4CGCDQSRDH2OL2AIX7O3TOKRCDA5CNFSM4OU73322YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGJCSWYI.gif

primebow commented 3 years ago

Hello Paul,

I was able to test your circuit. However, the data is not as easy to process in excel as with a classic dc-sweep. Could there be such a simulation? Set the start and end of the voltage and record the current?

Best wishes,

Walter

Von: Paul Falstad @.> Gesendet: Dienstag, 18. Mai 2021 19:41 An: sharpie7/circuitjs1 @.> Cc: primebow @.>; Comment @.> Betreff: Re: [sharpie7/circuitjs1] Request: Simulated data download (#461)

You need to use a CCVS to convert the current to voltage, and then have two data export elements:

https://tinyurl.com/yjsvp4je

Click reset, let it run for a while, click stop, and then retrieve both sets of data by right-clicking on each export element, selecting Edit, and downloading the data link.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sharpie7/circuitjs1/issues/461#issuecomment-843393889 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AUD4CGGAH57M6U2RIQIDLL3TOKRCDANCNFSM4OU7332Q . https://github.com/notifications/beacon/AUD4CGCDQSRDH2OL2AIX7O3TOKRCDA5CNFSM4OU73322YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGJCSWYI.gif

pfalstad commented 3 years ago

Well you can use a stop trigger to stop the simulation when the voltage source reaches the top of the sweep:

https://tinyurl.com/yhatlgbk

Just click Reset and then Start to do the sweep.

primebow commented 3 years ago

Thank you very much, it works.

Best wishes

Walter

Von: Paul Falstad @.> Gesendet: Dienstag, 25. Mai 2021 19:46 An: sharpie7/circuitjs1 @.> Cc: primebow @.>; Comment @.> Betreff: Re: [sharpie7/circuitjs1] Request: Simulated data download (#461)

Well you can use a stop trigger to stop the simulation when the voltage source reaches the top of the sweep:

https://tinyurl.com/yhatlgbk

Just click Reset and then Start to do the sweep.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sharpie7/circuitjs1/issues/461#issuecomment-848083388 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AUD4CGCQR4S45SD3GZK7VR3TPPO43ANCNFSM4OU7332Q . https://github.com/notifications/beacon/AUD4CGEZ7J5SMCPXDQLMXLTTPPO43A5CNFSM4OU73322YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGKGLTPA.gif

primebow commented 3 years ago

Hi Paul,

I didn’t found any help online to scope the amplitude-frequency characteristic in that circuit

http://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWcMBsBmALAJhQdgWgJwAcYKCFICkIWVNCApgLRhgBQASrccbZHyy9wKGjTT0o0clKxIx0BOwAmPQQLWa6yxgDMAhgFcANgBd2Ac01osNIXzQI6Y9ljAYtwx3XtRatACp9SxA0Yg8bcXDQtBQ-SFcwO2FbB2jUvySsDAS3KI9fDAxBYRosnPYckvVBbP4+BWJCQnj2AHtwEBQPGhyScGg5WgRpPzoINHbO7r8+3CkUIZRoHv8JqYgZ3rIJMEGmZj4RsCwWeYhx0JAASQAdAGcAN3uHgDV2IA www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWcMBsBmALAJhQdgWgJwAcYKCFICkIWVNCApgLRhgBQASrccbZHyy9wKGjTT0o0clKxIx0BOwAmPQQLWa6yxgDMAhgFcANgBd2Ac01osNIXzQI6Y9ljAYtwx3XtRatACp9SxA0Yg8bcXDQtBQ-SFcwO2FbB2jUvySsDAS3KI9fDAxBYRosnPYckvVBbP4+BWJCQnj2AHtwEBQPGhyScGg5WgRpPzoINHbO7r8+3CkUIZRoHv8JqYgZ3rIJMEGmZj4RsCwWeYhx0JAASQAdAGcAN3uHgDV2IA

or describe attenuation over frequency.

I hope I don`t bother you to much.

Best wishes

Walter

Von: Paul Falstad @.> Gesendet: Dienstag, 25. Mai 2021 19:46 An: sharpie7/circuitjs1 @.> Cc: primebow @.>; Comment @.> Betreff: Re: [sharpie7/circuitjs1] Request: Simulated data download (#461)

Well you can use a stop trigger to stop the simulation when the voltage source reaches the top of the sweep:

https://tinyurl.com/yhatlgbk

Just click Reset and then Start to do the sweep.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sharpie7/circuitjs1/issues/461#issuecomment-848083388 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AUD4CGCQR4S45SD3GZK7VR3TPPO43ANCNFSM4OU7332Q . https://github.com/notifications/beacon/AUD4CGEZ7J5SMCPXDQLMXLTTPPO43A5CNFSM4OU73322YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGKGLTPA.gif

pfalstad commented 3 years ago

There's no good way to do that. You can use a AC sweep, which varies the frequency over time, but that doesn't give you the response.. You have to calculate it yourself from the output. Also, even if you could do it, the simulator doesn't model the capacitance of a diode, so you wouldn't get any interesting results. The frequency response would be flat.