diyAudio (
-   Software Tools (
-   -   Computer program for tube curves and Spice models (

Jim Tonne 19th May 2009 10:47 PM

Computer program for tube curves and Spice models
I have finally managed to create a workable
Windows program to allow matching published
(or measured) curves. Once that is done you
will have a nice Spice model for accurately
designing circuits. And you can print have
the program print out the set of curves in
presentation quality.

The program uses the Koren parameters. You
adjust those to make the program-generated
curves match (by overlay) the published curves.
At that point the Spice model is available.

To get the installable routine, go here:

The file at that location is an installer which
installs the program "TubeCurves". To use that
program is not all that obvious so here are some

It would be a very good idea to print out this
stuff so you can go through it step by step until
you "get the hang of it" and then you can go off
on your own.

After the program is installed, start
"TubeCurves.exe" and you will see the opening
screen. (I had fun with the graphic!)

Click on "Start"
See the "Initialize" screen
Click on "Get old design"
For this trial, click on "12AU7design"
Then click on "Open"
Click on "Get graphic"
For this trial, click on "1-12AU7.jpg"
Then click on "Open"
If you have been living a good life then the
computed plot will overlay on the called-up
graphic. If not, use the buttons in the upper-right
corner to make the outside of the computed plot
agree with the graphic.
Before leaving this page, remember the maximum
volts and amps.
Click on "Continue"
You may now have fun with what I have been
calling the Koren Variables. You can step them
with the buttons or enter tuff into the textboxes.
If you go the latter route, click on the "Refresh"
button to accept those entered values.
Option: if everything matches satifactorily, you
may click on "Save" to store that design to the
hard drive.
To onward, click on "Examine"
This allows you to rescale things so that the fullscale
values are more to your liking. I suggest, for example,
using a fullscale voltage value of 400 volts, step 50.
And perhaps 20 milliamperes step 5 mills. By the
way, the internal parser accepts "m" for millli. Etc.
The full Spice set of prefixes. (Except "M" is for

You should be able to match the published graphic.

Now - here is a real slick thing: you can extract from
the plot the value of mu and also of Gm at a given
operating point. This is quite hard to put into print
but I'll try.

At a given operating point, put the curser on a blue
line immediately above or below your operating
point and left-click. Then go ONE BLUE LINE
VERTICALLY and right-click. The value of Gm
will show in the upper-left corner.

Similarly, you can extract the value of mu at a given
point by left-clicking at a given current, on a blue
line, and then moving to the same current, left or
right to the nest blue line and right-clicking. The
value of mu will show in the upper-left corner.

This program will write nice circuit files as well as
a nice test circuit for LTspice. Since you fellows
are well-versed on those things I won't pursue that
except to suggest you try it.

This program is fine for the usual audio fellow who
wants to generate a Spice model so he can accurately
design amplifiers. It also allows generating nicely-
printed families of curves for a given tube.

It does not do grid current. I would hope that based
on this effort it could be expanded to do that and
also do tetrodes and pentodes, hopefully with screen
current as well. However, I don't have the math or
tube smarts to do that on my own. Give me the
equations and I can probably move forward on that

Feedback requested. Have fun! :-)

kevinkr 20th May 2009 12:30 AM

Cool, I've used several other variants and am always interested in new ones. I will install in windows, but generally run Linux. Will this work with Wine 1.0.1?

Guess I can answer the wine question, it almost works.. (An ocx file failed to register properly.)

grindstone 20th May 2009 06:06 AM

works in wine
seems functional in (old) wine 0.9.30

had to nab mscomctl.ocx, pitch it in system32 and run
wine regsvr32 mscomctl.ocx

now there's all these buttons ;)


Yvesm 20th May 2009 08:50 AM

Hi Jim,

Congrats, Beautifull !

May I ask . . . if you be able to import this kind of file:

For each line:

Plate voltage
Plate current
Grid 1 voltage
Grid 1current
Grid 2 voltage
Grid 2 current

All voltages in volts and current in amps.
expandable to any number of grids . . .

Or, better, we could exchange informations on how to merge our projects.

Mine is here:

Major hardware revision pending:



Jim Tonne 20th May 2009 11:36 PM

Loggin in to this site (I am a newbie) is too difficult.

The program "TubeCurves" only overlays computer-generated
curves onto a standard graphic. I have no intention to work
on importing database kinds of files.

I have added mscomctl.ocx to the installer routine. Please
see if that is now functioning.

The buttons are used to "tune" items. Or you can enter stuff
into the text boxes.

It may be easier to communicate via the usual e-mail:
tonne (at) comcast (dot) net (Surely faster!)

- Jim Tonne

kevinkr 21st May 2009 03:28 AM

Seems to be working fine with wine 1.0.1 adding the missing ocx file definitely did the deal.
Will spend some time evaluating it.

I take it I can take an existing .crv file and match it to a jpg the curves of a tube I am trying to model and then save this new .crv file..

aa7qu 21st May 2009 03:33 PM


For many years I have used, and admired, your excellent program ELSIE. With this program, you've done it again. Thanks for your outstanding contributions to the DIY community.

Russ Carpenter

jungle1971 19th November 2010 09:50 PM

@Jim / @all

i would like to work with the tubecurves application.
the bad - i canīt find the file on the server.... the file is missing.

please tell me how i can get in touch with this program.

thanks in advance

taj 20th November 2010 07:37 PM

I contacted Jim and discovered that the link above is broken because he updated the software's revision number. Here's the current link. If it breaks again sometime in the future, just try higher numbers in the filename.

Curiously, he doesn't list this program on his software menu page.


jungle1971 21st November 2010 10:10 AM

great thanks

All times are GMT. The time now is 10:33 PM.

Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 18.75%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio