How to debug 'unknown device' message?


Mike Cowlishaw
 

Hello,

I'm experimenting with adding a custom model to use in SwitcherCADiii (I'm
adding a Max931, but with a 'DIP8' symbol and using the Spice model from
Maxim -- almost the same as an LTC1540). I have the symbol part working
(Ralph's guide was very useful, I have some experiences to add about the
semantics of PINs and their ordering if anyone interesting).

I'm now as far as having the model start to run, but just get a message box:

Spice error
Error: Unknown device type in: xu1 n003 n002 n001 0 n002 n002 out 0
max931.fam max931

(which just looks like the call to the subcircuit with the filename and
Value added). There's no additional information in the .log file.

Anyone know how I can get more detailed information on the unknown device
type, or do I just have to plough through the model 'by eye'?

--
Mike Cowlishaw
Coventry, UK


Ralph R. Reinhold
 

Mike
It looks like you may have not included a ".lib" command line in the
schematic. For example,

.lib standard.opamp

.lib dly-line.sub

.lib potentiometer.sub

My guess is that you may need an include statement for this particular
case to call the library.

.include max931.fam

But, I haven't used that command yet.

Ralph



--- In LTspice@y..., "Mike Cowlishaw" <mfcowli@a...> wrote:
Hello,

I'm experimenting with adding a custom model to use in
SwitcherCADiii (I'm
adding a Max931, but with a 'DIP8' symbol and using the Spice model
from
Maxim -- almost the same as an LTC1540). I have the symbol part
working
(Ralph's guide was very useful, I have some experiences to add about
the
semantics of PINs and their ordering if anyone interesting).

I'm now as far as having the model start to run, but just get a
message box:

Spice error
Error: Unknown device type in: xu1 n003 n002 n001 0 n002 n002 out
0
max931.fam max931

(which just looks like the call to the subcircuit with the filename
and
Value added). There's no additional information in the .log file.

Anyone know how I can get more detailed information on the unknown
device
type, or do I just have to plough through the model 'by eye'?

--
Mike Cowlishaw
Coventry, UK


Mike Cowlishaw
 

Ralph R. Reinhold wrote:
Mike
It looks like you may have not included a ".lib" command line in the
schematic.
OK, will investigate ... thanks! Though I think it is finding the file OK,
because it complained when I had the wrong number of parameters on the
.subckt statement.

Mike Cowlishaw


 

--- Mike Cowlishaw <mfcowli@...> schrieb: >
Ralph R. Reinhold wrote:
Mike
It looks like you may have not included a ".lib"
command line in the
schematic.
OK, will investigate ... thanks! Though I think it
is finding the file OK,
because it complained when I had the wrong number of
parameters on the
.subckt statement.

Mike Cowlishaw
Hello Mike,
sorry for the late response, but I am more in open
newsgroups until now. There I often help people
starting with LTspice.

If you still have problem with that MAX931 model, then
let me know and I will do it as an example for you.

Best Regards
Helmut

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Weihnachts-Einkufe ohne Stress! http://shopping.yahoo.de


Mike Cowlishaw
 

Helmut Sennewald wrote:
Hello Mike,
sorry for the late response, but I am more in open
newsgroups until now. There I often help people
starting with LTspice.
Hi .. thanks for the reply! Which newsgroup do you suggest?
I only went for the yahoo list because the LTspiceman
pointed me towards it.

If you still have problem with that MAX931 model, then
let me know and I will do it as an example for you.
That's very kind of you, I may take you up on that.
(For now, I've switched to an LT device.)

Mike