12-02-2012 03:33 AM
Hi,
I would like to create a component called MAX16823 as attached.
I have created this component yesterday, and it could work.
Since I would like to be familiar with the component creating process, I try to create another same MAX16823 with different name today.
However, each time Multisim said that "
SPICE Netlist Error in schematic RefDes, element 'csc16823' : Redefinition of subckt 'csc16823'. Second definition ignored.
SPICE Netlist Error in schematic RefDes, element 'da1' : Redefinition of subckt 'da1'. Second definition ignored.
SPICE Netlist Error in schematic RefDes, element 'dr16823' : Redefinition of subckt 'dr16823'. Second definition ignored.
"
I find that the properties of the two components created yesterday and today are identical.
I don't know why today's component does not work.
Thanks.
Best regards,
PP
12-03-2012 08:40 AM
Hi PP,
The attached .cir file is a complete model and you need to include everything. When you copied this model to Multisim, I suspect you only copied up to this line:
.ENDS MAX16823
When you pass the MAX16823 end statement, you will see three additional models, CSC16823, DA1 and DR16823 and these models are called inside MAX16823 model. If you didn't include these models, the SPICE engine will complain.
To call another model, the line begins with "X". Here is an example; this line is within the MAX16823 model:
XDG2 GND LG1 DA1
What this line says is; call a subcircuit model name "DA1" and connect it to node GND and LG1.
12-03-2012 09:31 PM
Hi Tien,
Thanks for your reply.
Previously, I selected "load from file", the errors occur.
Now, I copy the file and paste directly to "Model Data", the errors disappear.
However, it said that "SPICE Netlist Error in schematic RefDes 'u2', element 'xu2': Unable to interpret 'u2_open_cs1' ".
Thanks.
Best regards,
PP