Potentiometer in LTSPICE XVII

eetech00

Joined Jun 8, 2013
4,709
These are my files
here is your fixed model.

You were attempting to create a hierarchial block based symbol as opposed to a .subckt based symbol.
I have fixed the hierarchial block. see attached.

When creating a hierarchial block, leave all symbol file attributes blank, including the prefix field, or the part will not work.
You can then add the params values in the param field like i previously described..

Symbols used with .subckts must have an X in the prefix attribute along with the model name in the "Value" attribute .
The prefix attribute is not optional and must be an "X".
Attach files

1592690380923.png
 

Attachments

Papabravo

Joined Feb 24, 2006
22,083
I was able to change the instance name from U1 to P1 using the attribute editor that is invoked from the schematic capture screen by holding down the control key and right clicking the potentiometer symbol. I was using Helmut Senewald's Potentiometer_standard.lib This is available from the LTspice User's Group at groups.io. As long as you have the X prefix, spice could care less what the reference designator is. In fact U which is traditionally used for IC's is actually intended for a Uniform RC-line in Spice.
 

Thread Starter

Mayank_2606

Joined Jun 10, 2020
57
Symbols used with .subckts must have an X in the prefix attribute along with the model name in the "Value" attribute .
The prefix attribute is not optional and must be an "X".
Alright i will take care of this part from now on.
Also thank you for taking the time to correct my model.
 

Thread Starter

Mayank_2606

Joined Jun 10, 2020
57
I was able to change the instance name from U1 to P1 using the attribute editor that is invoked from the schematic capture screen by holding down the control key and right clicking the potentiometer symbol. I was using Helmut Senewald's Potentiometer_standard.lib This is available from the LTspice User's Group at groups.io. As long as you have the X prefix, spice could care less what the reference designator is. In fact U which is traditionally used for IC's is actually intended for a Uniform RC-line in Spice.
Okay. Got it!
I will read more about it
 
Top