daily pastebin goal
58%
SHARE
TWEET

LTspice_Encrypted_Lib

Python253 May 16th, 2018 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .LIB -- Include a Library
  2.  
  3. Syntax: .lib <filename>
  4.  
  5.  
  6. This directive includes the model and subcircuit definitions of the named file as if that file had been typed into the netlist instead of the .lib command. Circuit elements at global scope are ignored.
  7.  
  8.  
  9. An absolute path name may be entered for the filename. Otherwise LTspice looks first in the directory <LTspiceIV>\lib\cmp and then <LTspiceIV>\lib\sub and then in the directory that contains the calling netlist, where <LTspiceIV> is the directory containing the scad3.exe executable, typically installed as C:\Program Files\LTC\LTspiceIV.
  10.  
  11.  
  12. No file name extension is assumed. You must use ".lib myfile.lib" not ".lib myfile" if the file is called "myfile.lib"
  13.  
  14.  
  15. It is possible to specify a URL of the following form as a file name:
  16.  
  17.  
  18. .lib http://www.company.com/models/library.mod
  19.  
  20.  
  21. The file "library.mod" will be http-transferred to the circuit directory and included as a library. For subsequence simulations, in the interest of avoiding downloading the file each time you run the simulation, you can edit the .lib statement to
  22.  
  23.  
  24. .lib library.mod
  25.  
  26.  
  27. Note that if the URL you specify doesn't exist, most web servers don't return an error, but return a html web page to be displayed in your web browser that explains the error. LTspice can't always read these pages as error conditions so you may get some cryptic error message when the simulation tries to proceed with the included html language error page included in the simulation as valid SPICE syntax.
  28.  
  29.  
  30. If the http-transferred URL is a .pdf file, the simulation will abort after the download. For example the following deck will download this manual as a .pdf file:
  31.  
  32.  
  33. * Dummy simulation to download the help file.
  34.  
  35. * The simulation will abort with an error, but
  36.  
  37. * you'll be left with the file scad3.pdf in the
  38.  
  39. * same directory containing the netlist.
  40.  
  41. .lib http://ltspice.linear.com/software/scad3.pdf
  42.  
  43. .end
  44.  
  45.  
  46.  
  47. Encrypted Libraries
  48.  
  49.  
  50. LTspice can generate and read a special form of encrypted libraries. This allows one user to prepare a library that another user can use in a simulation without revealing the implementation of the library. A reasonable attempt has been made to make the encrypted library difficult to decode by unauthorized concerns, but it cannot be considered perfectly secure if for no other reason than it is implemented in software.
  51.  
  52.  
  53. To prepare an encrypted library, you need to invoke LTspice from the command line with the command line option "-encrypt". You will need to first backup the library because it will be replaced with the encrypted version. THERE EXISTS NO UTILITY TO CONVERT AN ENCRYPTED LIBRARY BACK TO CLEAR TEXT. Below summarizes the two steps:
  54.  
  55.  
  56. 1. Make a backup copy of the library. The
  57.  
  58. version you encrypt is deleted.
  59.  
  60.  
  61. 2. From a command line, type
  62.  
  63. scad3.exe -encrypt <filename>
  64.  
  65.  
  66. The file <filename> will be replaced with an encrypted version. The encryption process will take a few minutes.
  67.  
  68.  
  69. One this process is finished, you have an encrypted ASCII file. It's possible to add a copyright notice above the "* Begin:" line, but the first 9 lines of the file must remain unchanged and each line of copyright notice you add must begin with the character '*'.
  70.  
  71.  
  72. That is, here an encrypted file written by LTspice:
  73.  
  74.  
  75. * LTspice Encrypted File
  76.  
  77. *
  78.  
  79. * This encrypted file has been supplied by a 3rd
  80.  
  81. * party vendor that does not wish to publicize
  82.  
  83. * the technology used to implement this library.
  84.  
  85. *
  86.  
  87. * Permission is granted to use this file for
  88.  
  89. * simulations but not to reverse engineer its
  90.  
  91. * contents.
  92.  
  93. *
  94.  
  95. * Begin:
  96.  
  97. 50 3E 46 0F FA 6E 67 FF B8 4D D9 62 14 32 60 24
  98.  
  99. 36 71 35 0B 66 4F AD 52 B8 F5 9E 22 9F C0 18 8B
  100.  
  101. FB FE 1D...
  102.  
  103.  
  104. you can change this to be
  105.  
  106.  
  107. * LTspice Encrypted File
  108.  
  109. *
  110.  
  111. * This encrypted file has been supplied by a 3rd
  112.  
  113. * party vendor that does not wish to publicize
  114.  
  115. * the technology used to implement this library.
  116.  
  117. *
  118.  
  119. * Permission is granted to use this file for
  120.  
  121. * simulations but not to reverse engineer its
  122.  
  123. * contents.
  124.  
  125. *
  126.  
  127. * Copyright © 2005 Acme SPICE Modeling
  128.  
  129. * For additional information, see
  130.  
  131. * www.acmespicemodels.com
  132.  
  133. *
  134.  
  135. * Begin:
  136.  
  137. 50 3E 46 0F FA 6E 67 FF B8 4D D9 62 14 32 60 24
  138.  
  139. 36 71 35 0B 66 4F AD 52 B8 F5 9E 22 9F C0 18 8B
  140.  
  141. FB FE 1D...
  142.  
  143.  
  144. Source:
  145. http://ltwiki.org/LTspiceHelp/LTspiceHelp/_LIB_Include_a_library.htm
  146. ...
RAW Paste Data
Top