Hey, I just downloaded some Vishay libraries for an optocoupler and when I try to open them in the Pspice Model Editor, they appear empty and a message with "(the library) does not contain any models". How can I use them for my simulations? I read in a forum that the problem was the encoding of the library, and it was right. When changing it to UTF-8 it appeared on the editor and thus I could use it in my schematic. However, when the time to simulate arrived, another problem appears:
The library is wihin the configuration filies and everything, so I don't know what the problem is.
For some reason the model text is encoded as UTF-8 and the Model Editor is expecting ANSI text. As a consequence, the model text is not recognised as valid. You can use a text editor, like Notepad, to open the provided model text and save it as ANSI formatted, after which, the Model Editor will recognise the LIB file as containing a model.
I still keep getting an error. I modified the .lib using Notepad++ and changing its encoding to ANSI. The model appeared in the Model Editor, but when I use it in my schematic and try to run a simulation, I get an error (The library is already in the configuration files, and thanks for your answer :) )
Copy and save the library to a new notepad.And change CSW to ISWITCH in “.model SSR_Switch CSW”.
.model SSR_Switch ISWITCH(Ron=13.5 Roff=500Meg It=2mA Ih=0.5ms)
Thank you! It works perfectly now