Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #394445

Re: LTSPICE square wave

From Joerg <news@analogconsultants.com>
Newsgroups sci.electronics.design
Subject Re: LTSPICE square wave
Date 2016-01-18 16:10 -0800
Message-ID <dg5d83Fm7fhU1@mid.individual.net> (permalink)
References (1 earlier) <r6eq9b91fu5n77eibaq8ssn1drfdp7juuc@4ax.com> <dg51e2Fjbl5U1@mid.individual.net> <likq9bl49m7i6ud9j6i1rgf2t2mn2r8v8j@4ax.com> <dg53qqFjur3U2@mid.individual.net> <05uq9bhar3vvpei5s8spnh31ak528s80l1@4ax.com>

Show all headers | View raw


On 2016-01-18 15:46, John Larkin wrote:
> On Mon, 18 Jan 2016 13:30:05 -0800, Joerg <news@analogconsultants.com>
> wrote:
>
>>>
>>> Can a resistor value track some node voltage in real time?
>>>
>>
>> Yes. In the same way you did it you just enter an expression such as
>> R=((V(X))*1MEG) in place of the resistor value and then it'll follow
>> node X with whatever formula you drape around it. Quite handy for
>> simulating LDRs, strain gauges or potmeter actuation.
>
>
> I can't get that to work.
>
>
> Version 4
> SHEET 1 880 680
> WIRE 80 64 48 64
> WIRE 112 64 80 64
> WIRE 288 64 176 64
> WIRE 448 64 288 64
> WIRE 48 112 48 64
> WIRE 448 112 448 64
> WIRE 176 128 176 64
> WIRE 288 128 288 64
> WIRE 48 240 48 192
> WIRE 176 240 176 192
> WIRE 288 240 288 208
> WIRE 448 240 448 192
> FLAG 48 240 0
> FLAG 176 240 0
> FLAG 288 240 0
> FLAG 448 240 0
> FLAG 80 64 VX
> SYMBOL ind 272 112 R0
> WINDOW 0 49 30 Left 2
> WINDOW 3 57 72 Left 2
> SYMATTR InstName L1
> SYMATTR Value 1
> SYMBOL cap 160 128 R0
> SYMATTR InstName C1
> SYMATTR Value 1
> SYMBOL voltage 48 96 R0
> WINDOW 0 -79 76 Left 2
> WINDOW 3 -214 117 Left 2
> WINDOW 123 0 0 Left 2
> WINDOW 39 0 0 Left 2
> SYMATTR InstName V1
> SYMATTR Value PULSE(10 1 2 20)
> SYMBOL current 448 112 R0
> WINDOW 0 44 56 Left 2
> WINDOW 3 9 94 Left 2
> WINDOW 123 0 0 Left 2
> WINDOW 39 0 0 Left 2
> SYMATTR InstName I1
> SYMATTR Value PULSE(1 0 1)
> TEXT -128 113 Left 2 !.tran 25
>
>
> I tried setting the value of C1 to
>
> {v(vx)}
>
> and
>
> v(vx)
>
> and Spice complains. What am I doing wrong? Does it work for resistors
> and not caps?
>
> My old DOS simulator, ECA, would let you do anything.
>

Caps need the charge specified, not C. But I had trouble getting that to 
work myself and we had a discussion about it here. Cranking up the time 
machine ... ah, here it is ... I believe you answered your own question 
early last year :-)

https://dl.dropboxusercontent.com/u/53724080/Circuits/Caps/Modulated_Cap_1.asc

-- 
Regards, Joerg

http://www.analogconsultants.com/

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

LTSPICE square wave bitrex <bitrex@de.lete.earthlink.net> - 2016-01-18 13:12 -0500
  Re: LTSPICE square wave Przemek Klosowski <przemek@tux.dot.org> - 2016-01-18 18:20 +0000
    Re: LTSPICE square wave Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-01-18 14:05 -0500
      Re: LTSPICE square wave bitrex <bitrex@de.lete.earthlink.net> - 2016-01-18 15:38 -0500
        Re: LTSPICE square wave Joerg <news@analogconsultants.com> - 2016-01-18 12:42 -0800
        Re: LTSPICE square wave Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-01-18 16:55 -0500
  Re: LTSPICE square wave Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-01-18 11:37 -0700
    Re: LTSPICE square wave Tim Wescott  <Tim@seemywebsite.com> - 2016-01-18 11:01 -0800
      Re: LTSPICE square wave "Tim Williams" <tiwill@seventransistorlabs.com> - 2016-01-18 13:20 -0600
    Re: LTSPICE square wave Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-01-21 10:00 -0700
  Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-18 11:15 -0800
    Re: LTSPICE square wave Joerg <news@analogconsultants.com> - 2016-01-18 12:49 -0800
      Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-18 13:00 -0800
        Re: LTSPICE square wave Jeroen Belleman <jeroen@nospam.please> - 2016-01-18 22:29 +0100
        Re: LTSPICE square wave Joerg <news@analogconsultants.com> - 2016-01-18 13:30 -0800
          Re: LTSPICE square wave Jeroen Belleman <jeroen@nospam.please> - 2016-01-18 22:34 +0100
          Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-18 15:46 -0800
            Re: LTSPICE square wave Joerg <news@analogconsultants.com> - 2016-01-18 16:10 -0800
              Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-18 17:20 -0800
                Re: LTSPICE square wave Joerg <news@analogconsultants.com> - 2016-01-19 07:30 -0800
                Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-19 08:43 -0800
                Re: LTSPICE square wave Joerg <news@analogconsultants.com> - 2016-01-19 09:01 -0800
                Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-19 09:31 -0800
                Re: LTSPICE square wave John Fields <jfields@austininstruments.com> - 2016-01-19 14:07 -0600
                Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-19 12:46 -0800
                Re: LTSPICE square wave Joerg <news@analogconsultants.com> - 2016-01-19 13:22 -0800
                Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-19 14:51 -0800
                Re: LTSPICE square wave John Fields <jfields@austininstruments.com> - 2016-01-20 14:18 -0600
                Re: LTSPICE square wave John Fields <jfields@austininstruments.com> - 2016-01-19 15:23 -0600
                Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-19 15:07 -0800
                Re: LTSPICE square wave John Fields <jfields@austininstruments.com> - 2016-01-20 14:30 -0600
                Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-20 13:22 -0800
                Re: LTSPICE square wave John Fields <jfields@austininstruments.com> - 2016-01-21 12:02 -0600
                Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-21 10:20 -0800
                Re: LTSPICE square wave John Fields <jfields@austininstruments.com> - 2016-01-21 19:40 -0600
  Re: LTSPICE square wave John Fields <jfields@austininstruments.com> - 2016-01-18 14:11 -0600
    Re: LTSPICE square wave bitrex <bitrex@de.lete.earthlink.net> - 2016-01-18 15:44 -0500
      Re: LTSPICE square wave Joerg <news@analogconsultants.com> - 2016-01-18 12:52 -0800
        Re: LTSPICE square wave bitrex <bitrex@de.lete.earthlink.net> - 2016-01-18 16:20 -0500
          Re: LTSPICE square wave bitrex <bitrex@de.lete.earthlink.net> - 2016-01-18 16:24 -0500
            Re: LTSPICE square wave Joerg <news@analogconsultants.com> - 2016-01-18 13:32 -0800
              Re: LTSPICE square wave bitrex <bitrex@de.lete.earthlink.net> - 2016-01-18 17:11 -0500
    Re: LTSPICE square wave John Larkin <jjlarkin@highlandtechnology.com> - 2016-01-18 13:02 -0800
      Re: LTSPICE square wave John Fields <jfields@austininstruments.com> - 2016-01-21 10:39 -0600
  Re: LTSPICE square wave legg <legg@nospam.magma.ca> - 2016-01-18 19:19 -0500

csiph-web