¿ªÔÆÌåÓý

Re: Error with SW()


 

¿ªÔÆÌåÓý

Almost exactly what I wrote, Andy.

I don¡¯t think I have ever edited a SW¡¯s Value field that way; I just edit the displayed ¡°SW¡±, but that¡¯s really the same thing¡­

?

From: [email protected] <[email protected]> On Behalf Of Andy I
Sent: Tuesday, May 14, 2024 5:52 AM
To: [email protected]
Subject: EXTERNAL: Re: [LTspice] Error with SW()

?

Al,

Open and read the Help page for voltage-controlled Switch elements.

Switches MUST use a .MODEL statement, which is a separate line on your schematic.? And the element itself is identified with the NAME of that .model, not any of its parameters.

Add this line to your schematic:

.model MySW SW(Ron=1k0 Roff=10meg Vt=1.65 Vh=100m Lser=1u Vser=0)

Then right-click on the symbol, and change its Value attribute to "MySW" (and nothing else).

I am pretty sure that is exactly what? Dave wrote, too.

Since Vser defaults to 0, you can omit it.

Andy

Join [email protected] to automatically receive all group messages.