• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. PSpice
  3. External libraries appear empty on Pspice Model Editor.

Stats

  • State Verified Answer
  • Replies 4
  • Subscribers 28
  • Views 5590
  • Members are here 0
More Content

External libraries appear empty on Pspice Model Editor.

MujikaJulen
MujikaJulen over 1 year ago

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.

  • Sign in to reply
  • Cancel
  • oldmouldy
    0 oldmouldy over 1 year ago

    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.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • MujikaJulen
    0 MujikaJulen over 1 year ago in reply to oldmouldy

    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 :) )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Muhyun
    +1 Muhyun over 1 year ago in reply to MujikaJulen

    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)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • MujikaJulen
    0 MujikaJulen over 1 year ago in reply to Muhyun

    Thank you! It works perfectly now Slight smile

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information