davorin
September 30, 2024, 12:32pm
1
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;
holger
September 30, 2024, 8:17pm
2
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.
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.
holger
October 1, 2024, 1:15pm
5
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…