1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

LTspice-Matlab

Discussion in 'General Electronics Chat' started by Harsha1991, Aug 31, 2017.

  1. Harsha1991

    Harsha1991 New Member

    Joined:
    Aug 31, 2017
    Messages:
    2
    Likes:
    0
    I have created the netlist file filename.net in matlab. When i try to run the netlist file in matlab or in ltspice,
    I get 'Encountered a sharing violation while accessing a filename.net file' error message.

    If I terminate matlab and run netlist file in ltpsice or by double click, it will run without any issue.

    What should I do, to run netlist file directly from matlab environment ?
     
  2. dougy83

    dougy83 Well-Known Member

    Joined:
    May 18, 2008
    Messages:
    2,672
    Likes:
    215
    Location:
    Brisbane, Australia
    Did you close the file after writing to it?
     
  3. Harsha1991

    Harsha1991 New Member

    Joined:
    Aug 31, 2017
    Messages:
    2
    Likes:
    0
    Yes, if I close the file written in Matlab, it will run.
    I have created a batch file to run netlist automatically. When I call batch file in Matlab program, it wont run and it says 'Could not open input deck for reading'
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. tomizett

    tomizett Active Member

    Joined:
    Aug 11, 2013
    Messages:
    419
    Likes:
    45
    Location:
    UK

    Think that's a windows thing, not letting two processed have the same file open at once.
    Is there a way for the second process to open it read-only? It might let you do that...
     
    • Like Like x 1

Share This Page