Hi JH -
Sorry, I can't help you because it looks to complicated what you have done.
Maybe it helps if you post the whole circuit. Even then the result thru help is not a whole faster reconfiguration but with new parameter settings. tripdt etc.
It is maybe faster to not use compares but formulate all as
float-operations: mul, div.
max/min is not in the help-file because the whole counter circuit is a hack and surely not very liked by Mike.
- H.
tindelsurf@... [LTspice] schrieb:
toggle quoted message
Show quoted text
Henry,
I was able to figure it out with your help... and got my simulation
time down to ~4.25 minutes, a great improvement... but now I at least
know that the count table isn't what is slowing me down
significantly. I just have a complex loop. And as Helmut pointed
out... I knew the DFF solution wasn't very stable.
One final question: is there a good way to speed up the transitions
of the Sample and Holds? I tried using td/trise/tfall, but it didn't
appear to effect anything.
Thanks for giving me the hint on the max/min counts too... that
helped a lot! I couldn't find anything in the help files about that!
Love this place - you guys always get me pointed the right direction.
Just FYI - if anyone ever reads this again (the yahoo search sucks,
so I doubt it)... I was able to make Henry's suggestion a window
comparator by setting Vdir to be centered about 0 and making the
following statement for B1:
V=if(V(dir)<-0.05,-1,if(V(dir)>0.05,1,0)). I also speed up the clock
to 1k to get my 1ms count increments.