The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 18th, 2024, 2:24pm
Pages: 1
Send Topic Print
Transition filter starting at t=0? (Read 3317 times)
Bob Atwell
New Member
*
Offline



Posts: 9
Tucson, AZ
Transition filter starting at t=0?
Apr 12th, 2012, 9:55am
 
Is there a way to get a transition filter to start at t=0?  

Assume I want a voltage to ramp from 0 to 1 in 1 sec.  starting at t=0 and ending at t=1.

v <+ transition(1, 0, 1) just starts at 1.

Using @initial_step and @timer doesn't seem to work either.  Am I missing something or is this just not possible?
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Transition filter starting at t=0?
Reply #1 - Apr 13th, 2012, 11:49am
 
If you do this:

real x;
@(initial_step)
 x = 0;
@(timer(1p))
 x = 1;

V(x) <+ transition(x,0,1);

I would think you could get pretty close to what you were looking for; you can make the argument to @timer smaller, though I guess it has to be always > 0.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Bob Atwell
New Member
*
Offline



Posts: 9
Tucson, AZ
Re: Transition filter starting at t=0?
Reply #2 - Apr 13th, 2012, 3:18pm
 
Thanks, that was what I came up with too.  
I don't like it much but I don't see any other way around it.
Back to top
 
 
View Profile   IP Logged
boulate
New Member
*
Offline



Posts: 2

Re: Transition filter starting at t=0?
Reply #3 - Apr 19th, 2012, 10:36am
 
Why don't you do this?
V() <+ $abstime;
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.