+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 2
    Points: 20, Level: 1

    Join Date
    Dec 2016
    Posts
    2
    Helped
    0 / 0
    Points
    20
    Level
    1

    Nested SPICE .cir to PSPICE .lb

    HI,

    How can I convert the nested LV.cir(SPICE model) file to PSICE library? The file LV.cir refer to subcircuits and for e.g LVNOMI.CIR.
    ZIP file attached contains both the .cir files.

    I tried changing the extension of LV.cir & LVNOMI.cir to LV.lib & LVNOMI.lib and opening it in PSPICE Model editor. However, no luck.

    Need support for the importing the nested .cir files

    Many Thanks
    Prashant

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 52,015, Level: 55
    Achievements:
    7 years registered
    erikl's Avatar
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    8,101
    Helped
    2675 / 2675
    Points
    52,015
    Level
    55

    Re: Nested SPICE .cir to PSPICE .lb

    Actually no statements need to be converted, I think. Perhaps you should rename the model file LV.CIR to LV.sp .
    Quote Originally Posted by prash_tajne View Post
    ... Need support for the importing the nested .cir files
    The .INC statement
    Code:
    .INC c:\spice\lv\lvnomi.cir
    in the LV.CIR model file should work fine, if the path is correct or changed accordingly to your setup.


    Show your error message(s) if you still get ones.



    •   AltAdvertisement

        
       

  3. #3
    Newbie level 2
    Points: 20, Level: 1

    Join Date
    Dec 2016
    Posts
    2
    Helped
    0 / 0
    Points
    20
    Level
    1

    Re: Nested SPICE .cir to PSPICE .lb

    Hi,

    I am not sure the if file format LV.sp is supported by PSPICE model editor. I have renamed the LV.CIR to LV.lib. Also LVNOMI.cir to LVNOMI.lib.

    Tried changing the path of .INC statement to the local path.For e.g both as .INC c:\spice\lv\lvnomi.cir & .INC c:\spice\lv\lvnomi.lib in LV.lib. Then tried to open the LV.lib in PSPICE Model Editor. The error screen in attached as ErrorWhileOpening.jpeg

    Further, when i try to Export To Part Library from Model Editor using LV.lib(with .INC c:\spice\lv\lvnomi.lib) as input and LV.olb as output, get error as per attached LVError.zip



    •   AltAdvertisement

        
       

  4. #4
    Super Moderator
    Points: 52,015, Level: 55
    Achievements:
    7 years registered
    erikl's Avatar
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    8,101
    Helped
    2675 / 2675
    Points
    52,015
    Level
    55

    Re: Nested SPICE .cir to PSPICE .lb

    Quote Originally Posted by prash_tajne View Post
    I am not sure the if file format LV.sp is supported by PSPICE model editor. I have renamed the LV.CIR to LV.lib. Also LVNOMI.cir to LVNOMI.lib.
    This is ok, I think - I'm not a PSPICE user

    Quote Originally Posted by prash_tajne View Post
    The error screen in attached as ErrorWhileOpening.jpeg
    "... does not contain any models."
    Strange: The original LV.CIR contains the model
    Code:
    XLV4052 2  3  4  5  1  0  SWI1
    (not out-commented), and the sub-circuit SWI1 is declared in the (original) LVNOMI.CIR - so it should work - if not changed. Pls. check again.

    Quote Originally Posted by prash_tajne View Post
    Further, when i try to Export To Part Library from Model Editor using LV.lib(with .INC c:\spice\lv\lvnomi.lib) as input and LV.olb as output, get error as per attached LVError.zip
    "... does not exist" usually means it didn't find it. Path not correct?



--[[ ]]--