Zener library problem in library files: Fatal error: .ends without matching .subckt

The major issues is in line#6012, these characters should be removed.

image

In addition, diode 1N4728A line#2 mess up and requires proper separation.
Correct these two things and library should work in Qspice.

Qspice accepts .ends without model name, but in Qspice HELP, syntax of .subckt should end with .ends <model name> (this change is not necessary)

image

By the way, you only need one generic symbol and assign model name in schematic level if you are using a common library.

Here is an example with library fixed first two issues and modified with format changed to .ends <model name> in zenerki.txt, and a generic symbol and a simulation example.
Zener-subckt.qsym (600 Bytes)
Parent.Zener-subckt.qsch (6.8 KB)
zenerki.txt (227.8 KB)

2 Likes