No Sim.Name field

Good afternoon (o;

Have a simple simulation schematic with few resistors and a CNY17-1 optocoupler.
I downloaded the model from Digikey and assigned it to the part.

When I want to run the simulation I get following screen with absolute no meaning to me (o;

You will need a spice model of the CNY17-1 (your symbol U1 ?) for simulating it.

What ‘model’ did you download from Digikey?

I don’t see Digikey offering such a spice model.

I downloadedhttps://www.digikey.com/en/products/detail/vishay-semiconductor-opto-division/CNY17-1/1731498 this model:

https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/705/BJT_10mA_V2.txt

from:

https://www.digikey.com/en/products/detail/vishay-semiconductor-opto-division/CNY17-1/1731498

KiCAD runs ngspice, more info on that here: ngspice tutorial for beginners

I don’t believe ngspice works with non-text model files, at least I’ve never had luck with them. The one you downloaded is not text.

That’s exactly the problem. You may see it by just opening the Digikey model file in your browser. For some time Vishay did publish model files in a text encoding UTF-16 Little Endian, which was a bug.

Meanwhile Vishay has corrected the issue, see https://www.vishay.com/docs/80016/spicebjt10ma.zip . Digikey however has not managed to fixing the bug.

Still the same error window appears with the model directly from Vishay…

And many times KiCAD just crashes when I try to modify simulation settings…on macOS and Linux.

Sadly I can’t add any files here as I’m not allowed…

This topic was automatically closed after 90 days. New replies are no longer allowed.