Confusing units display in WaveForm

BUG

Concise problem statement:

There are some cases where the way units are displayed in WaveForm will confuse users.

I have put some simulations in the folder:

New WaveForm Test

to try to show examples of how WaveForm presents trace information.

To summarise:

1) If the user multiplies or divides a trace by a number or a parameter, then there are no units shown.

The units of the scaled trace (V, A, etc.) shown in WaveForm should be the same as for the original unscaled trace.

2) If the user multiplies two or more voltages (or currents), then there are no units shown.

The units of the scaled trace shown in WaveForm should be shown as V^2 (or A^2) squared (or V^3, I^3 etc., if necessary).

3) Multiplying a voltage by a current correctly displays power in W. Dividing a voltage by a current or a current by a voltage displays the correct units (i.e. Ohms or Mhos).

Can (1) and (2) be made so that the units are correct (i.e. what the user would expect to see)?

Examples:

https://easyeda.com/editor#id=JB6CUO6oG

No Y axis units for probe when multiplied by number.

If a trace is multiplied or divided by a number directly or using let and then displayed using probe, there are no Y axis units shown. This is not correct.

https://easyeda.com/editor#id=TLha4mgyQ

Y axis units for probe when multiplied by parameter.

If a trace is multiplied by another voltage in the circuit or by a parameter directly or using let and then displayed using probe, the Y axis shows units.
However, multiplying two voltage together does not show as V^2 on the Y axis. This is not correct.

https://easyeda.com/editor#id=UB7pjBvN5

No Y axis units for probe when dividing

If a trace is divided by a number, a parameter or a voltage either directly or using let and then displayed using probe, there are no Y axis units shown.

It is to be expected that dividing a voltage by a voltage gives a unitless result but dividing a voltage by a unitless number or parameter should give a voltage result.

https://easyeda.com/editor#id=a2WQK2jBv

Examples of correct derived units display.

These examples display the correct derived units.
An offset sinusoid is used to avoid error messages due to divide by zero at the zero crossings.

Browser:Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0

#Bug Reports#
Bug Reports
WaveForm shows plot but sim has not run

BUG

Concise problem statement:

If a sim has run OK and then a change is made to the circuit that stops the next sim running then when the user runs the next sim, WaveForm shows the plots from the last sim but with no warning that a new sim has not been run.

It is only if the user remembers to open the Simulation Results window that they see a warning.

Steps to reproduce bug:

  1. Open:

https://easyeda.com/file_view_Wallman-2_l31nJG20m.htm

  1. Ctrl+R

  2. Edit Q1 or Q2 from 2N3904 to PN2222A

  3. Save then Ctrl+R

  4. After WaveForm window opens, go back to schematic and do:

Simulate > Simulation Results...

then read the Simulation Report.

Results:


Circuit: wallman 2

Error on line 13 : q2 q2_1 r5_1 q1_1 pn2222a
Unable to find definition of model

ngspice stopped due to error, no simulation run!

errors/warnings in your design, please fix them if you need.
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000

Warning: v1: no DC value, transient time 0 value used

Initial Transient Solution

Node Voltage


r1_1 15
in 0
out 0
re_1 1.80895
c6_1 1.45425
q2_1 11.5159
r5_1 4.75926
r2_1 2.45243
q1_1 3.97069
pn2222a 11.5159
v1#branch 0
v2#branch -0.00196994

No. of Data Rows : 1008

ngspice-26 done


Expected results:

Need to warn the user that the sim has not run. Do not show any plots (or warn that plots are from the last successful sim and not the last attempt?).

Url:

https://easyeda.com/file_view_Wallman-2_l31nJG20m.htm

(but same problem can be seen in any sim).

Browser:Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0

#Bug Reports#
Bug Reports
Filenames not updated in Anonymous mode

BUG

Concise problem statement:

To check what users can and cannot do in Anonymous mode (i.e. not logged in), I copied the Wallman amplifier circuit:

https://easyeda.com/file_view_Wallman-amplifier-circuit_IT1VrXR93.htm

edited it, did Save, without changing the name, closed it and then renamed (Modify) it from:

Wallman amplifier circuit

to:

Wallman 2

https://easyeda.com/file_view_Wallman-2_l31nJG20m.htm

The problem is that the name shown under Anonymous Files is still:

Wallman amplifier circuit

so I cannot easily see which is the original and which is my edited copy because there are now two Anonymous Files with the same name.

If I paste the Share link into a browser, the name is correctly shown as:

Wallman 2

If I open either the original or my copy of Wallman amplifier circuit and do:

Save As...

and rename the files as:

Wallman 2

then the name is is shown correctly under Anonymous Files.

Url: https://easyeda.com/file_view_Wallman-2_l31nJG20m.htm

Browser:Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0

#Bug Reports#
Bug Reports
Which schematic parts have spice models?

BUG

Concise problem statement:

How does the user know which schematic parts have spice models?

In playing with:

https://easyeda.com/file_view_Wallman-2_l31nJG20m.htm

in Anonymous mode, I wanted to replace the default npn transistors with different ones that had spice models.

So I did:

Find Libraries...

and found that there is a 2N3904 in the System libs.

The trouble is that there is no way to tell if this part has a spice model associated with it.

It turns out that the 2N3904 does have a spice model associated with it, so when I type 2N3904 into the transistors in the (uploaded LTspice) schematic and save it, it simulates correctly.

However, if I search for 2222 and find PN2222A and change the transistors in the schematic to PN2222A then the simulation does not run because EE cannot find a spice model.

I thought we used to have a little 'S' inside the symbols in Find Libraries... that showed which devices had models and which did not. Is that going to come back again or is there some other way to show users which devices have models and which do not?

Url:

https://easyeda.com/file_view_Wallman-2_l31nJG20m.htm

(but any schematic file has the same problem.)

Browser:Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0

#Bug Reports#
Bug Reports
3D libs: SOT32 drawn as SOT23

This is not really a bug; it is just a drawing/naming mistake.

:)

Concise problem statement:

There is a SOT32 package which is drawn more like a SOT23.

A SOT32 package does exist:

http://www.nxp.com/packages/SOT32.html

but I guess the package name is wrong and that it is meant to be SOT23:

http://www.nxp.com/packages/SOT23.html
Browser:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36

#Bug Reports#
Bug Reports