BUG
This is the 2nd part of trying to show what has gone wrong with subckt calls and parameter passing to subckts.

Subckt calls and parameter passing to subckts is broken.

Something has changed in EE.

Up until a day or two ago my example circuits as originally posted, worked OK.

This is a second demonstration of the problem.

With no parameter appended to the name of F1:

Properties > Part Attributes > Model = FUSE

In the netlist, the subckt call for XF1 to FUSE has the instance XF1 appended to it:

FUSE_XF1

This works in this example only because the the name of the pasted in subckt that is to be called is:

fuse_xf1

If Ifuse=200m is appended to the Model of F1:

Properties > Part Attributes > Model > FUSE Ifuse-200m

Then this example no longer runs.

However, if the Model of F1 is change and then Ifuse=200m is appended:

Properties > Part Attributes > Model > FUSE_XF1 Ifuse-200m

Then this example does run.

This shows that it is the error in the naming of the subckt call that is breaking the parameter passing to the subckt.

Note that if a second fuse, F2, is added to the schematic, the name in the netlist appears as FUSE_XF2.

This is wrong: subckt calls to the same subckt MUST have the same name.

This example runs OK in ngspice.com:

http://www.ngspice.com/index.php?public_circuit=S0g47Q

Url:

https://easyeda.com/file_view_Simple-Fuse-Demo-param-passing_7xrlDUcuo.htm

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

#Bug Reports#
#BugReports#
Bug Reports

No comments yet. Be the first to comment!