A little help? I downloaded the large file in post #2. It contains three files for each tube. An Open Office file XML which I assume was originally a Microsoft Excel file? And one labeled 'movie clip' what is that? When I tried to open the first .inc file I opened it with notepad. It opened but I did not find the *^* mentioned that needs to be changed. To my surprise now when I try to open any of the .inc files they open in notepad. I downloaded a 6N13S model which is also in notepad. Was the *^* the first line of the .inc files? In the 6N13S file the first line is *$. I downloaded LT Spice XVII and have a file in my documents folder for LT Spice XVII with examples and lib. Is the lib folder where these models are supposed to go? I have noticed within the object section of Spice there are three generic symbols for triode, tetrode and pentode. Does the program attach the files to those symbols somehow?
Last edited by a moderator:
I update the ZIP file and the link in post #2. After downloading the file, you need to unzip it, and open the *.inc files with a text editor and replace all the "^" with "**" before you can use them in LTSpice.
The simplest way to get going is to copy the text from the .inc file into a Spice Directive (Click Aa in the menu bar, click the SPICE directive button, paste the text into the box, click OK then place the text box on the screen). Then place the generic symbol, click on it and change where it says e.g. "tetrode" in the Value box to the name of the model, which appears after .SUBCKT in the model text. I've attached a basic example.
You can see in the model text where the ** are, these replace the ^ in the original Ayumi model, it is used in the equations to mean "to the power of".
You can see in the model text where the ** are, these replace the ^ in the original Ayumi model, it is used in the equations to mean "to the power of".
Attachments
What program/extension do I use to open the .inc files to convert them? None of those I've tried seems to work. Can a note file be transformed into an .asc file? Is that the file I'm trying to end up with?
Ok, I haven't given up. What is so frustrating about this is three years ago I could actually use LT Spice. Can I use notepad to edit the files? And in from second post am I changing the ^ to ** . And lastly, I'm using the newest version of Spice. Spice put files in the documents of my computer. But there are folders within that folder like cmp, sub and sym. And files within sym like misc.
I used notepad to change ^ to ** for 2A3 and tried putting it in most of the folders and files but Spice still doesn't recognize them. I'm assuming when I get it right and I use object and go to the correct folder the tube model will show up. Is that correct?
Thanks for any help, and the extension of your patience.
I used notepad to change ^ to ** for 2A3 and tried putting it in most of the folders and files but Spice still doesn't recognize them. I'm assuming when I get it right and I use object and go to the correct folder the tube model will show up. Is that correct?
Thanks for any help, and the extension of your patience.
Unless you set up your tube symbols properly, which takes a bit of work, the models will not be recognized by LTSpice, so just follow the direction given in post #1506, that's your best bet for now.
LTspice triode drop-down symbol
How about we try a drop-down triode symbol and library?
Just place the triode-w1_dd.asy file (remove the ".txt" at the end of the file name) in your "sym\Misc" folder. Place the triode-w1.txt file in your "sub" folder.
Restart LTspice if already running and select component and located under "[Misc]" will be triode-w1_dd, select and place on your schematic. Right click on the symbol and on the "spice model" line under the "value" column, right click or double left click where it says "rightclickme" and drop-down box will appear. Choose your tube model from there.
Note: Everybody else feel free to grab this! Contains a butt-load of triode models. May contain some experimental models also. 😉
@mr2racerOk, I haven't given up. What is so frustrating about this is three years ago I could actually use LT Spice. <snip>
How about we try a drop-down triode symbol and library?
Just place the triode-w1_dd.asy file (remove the ".txt" at the end of the file name) in your "sym\Misc" folder. Place the triode-w1.txt file in your "sub" folder.
Restart LTspice if already running and select component and located under "[Misc]" will be triode-w1_dd, select and place on your schematic. Right click on the symbol and on the "spice model" line under the "value" column, right click or double left click where it says "rightclickme" and drop-down box will appear. Choose your tube model from there.
Note: Everybody else feel free to grab this! Contains a butt-load of triode models. May contain some experimental models also. 😉
Attachments
Thanks for all the help. I even got it to work. Is it possible to add the 6N13S model from post 1269?
Hey, I followed tikiroo's advice in post #1506 and attached 6N13S to the generic triode symbol. Is there a way to save it or do you have to attach the text to each of the tubes. That could be cumbersome, there will be eight of them.
If you have quite a few tubes in the schematic, you can use the "include" directive, e.g., "inc. 6N13S.inc" to call the SPICE model, the actual text files of the models can be stored in the same directory as the .asc file. Of course, if you use the pull-down selection method from post #1510, then you simply select the model that you need, since they are already stored in the LTSpice library.
Sorry those old images were lost long time ago. I'm not sure what you are trying to do with the component or symbol, please elaborate.
I've been fooling around with Spice. I put the generic triode symbol on a schematic. Then right clicked to open Component Attribute Editor. In the 'value' box I put 2A3. On the schematic the generic triode symbol is now labeled 2A3. Does that mean the model is attached to the symbol or is it just named 2A3?
Use the SpiceModel box instad of the Value box. You should also read this post on how to add models to your simulations:
Installing and using LTspice IV. From beginner to advanced.
Installing and using LTspice IV. From beginner to advanced.
- Status
- Not open for further replies.
- Home
- Design & Build
- Software Tools
- Problems with using tube models in LTSpice