Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: AES17-20k Filter
[...] in my defence [...]I hope I'm not perceived as dismissive of your efforts, I honestly had no intention of that. My apologies if this is how it turned out. On the contrary, seeing that you made the effort to provide such an example, I thought I'd contribute with a suggestion, backed by a minor proof. That's all. It also has the advantageIt only uses G+C+R, so this one should also be SPICE friendly. The whole package might not, though. There's AES17_Filter_2.zip in Temp with what I meant. It also includes the 7 design possibilities (that I know of) to serve as a few choices. -- Vlad ______________________ ltspicegoodies.ltwiki.org -- holding, among others: a universal analog/digital filter, block-level models for power electronics (and not only), math blocks with a more stream-lined approach, some digital ADC, DAC, (synchronous-)counter, JKflop, etc. |
Is it possible to dynamically change a part's location in one simulation ?
Hi, : It occurred to me, and confused me a while, typically I hope to dynamically change a part's location in the schematic of LTspice when I am running simulation, that means different circuit topologies but similar, it helps to "batch" those result in one-click simulation. Like the 'step' directives, but step doesn't support different topology (part's location). I never used that, but I think if it's possible, that would be great. Actually, more great stuff is the parts (which change locations) could be changed their 'model', I mean dynamically change, eg: R -> C, C->L, etc, and the polarities. Like the '.list' directives, but '.list' only change the fixed part's intrinsic value. Though it's almost impossible, but I better ask one time to get the exact answer. Which maybe I could inherit something, maybe store it in my mind. Thank you very much. Have a nice day! Best regards. |
Re: encapsulating a long set of spice directives
Ah, Shift-Ctrl-Alt-H works but ONLY for text attached to components (i.e., only for hidden Attributes).? It has no apparent effect on Comments or on SPICE Directives. Making the Comment or SPICE Directive text hidden, and later visible, moves the text around relative to other components.? So my recommendation is DON'T USE IT. Regards, Andy |
Re: encapsulating a long set of spice directives
Stephane wrote: "Unfortunately, the following LTspice set of directives must be issued on the main schematic : .param R1e 3.5? ? ? ? ?; ohm (coil copper resistance) .param L1e 390?? ? ? ;? henry (main coil) .param K1e 0.81? ? ? ?; Le1 Le2 coupling? .param L2e 3.7n? ? ? ?; henry (eddy current coil) .param R2e 68?? ? ? ?; ohm (eddy current resist.) .param Bl 4.2? ? ? ? ? ? ; A*m or N/A (magnetic force) .param Mms 5.5m? ? ;? kg (moving mass) .param Rms 0.87? ? ?; ohm (resistive loss) .param Cms 1.36m? ?; m/N (suspension compliance) .param Sd 52 * 1e-4 ; m^2 (piston area) .meas Fs avg 1/(2*pi*(sqrt(Cms*Mms))) ; Hz .meas Vas avg rho*c*c*Sd*Sd*Cms*1e3 ; litres .meas Qes avg (2*pi*Fs*Mms*R1e)/(Bl*Bl) .meas Qms avg (1/Rms)*sqrt(Mms/Cms) .meas Qts avg (Qms*Qes)/(Qms+Qes) .meas Rend_pc avg 100*(4*pi*pi*Fs*Fs*Fs*Vas*1e-3)/(c*c*c*Qes) .meas SPL_2.83v avg 112.1+10*log10(Rend_pc/100)+10*log10(8/R1e) .param Po 101k ; Pa .param rho 1.184 ; air density kg/m3 .param c 346 ; speed of sound in air m/s" All the .param and .meas directives can be placed in a text file, and .included. I'm pretty sure that it used to be the case that the netlist parser would not open included files for parameters that were component values, and would throw an error. At some time over the years, this seems to have been fixed - perhaps at the same time parameter scope rules were changed. The .meas directives are only required after the simulation has run, and it has always been possible to load them from a file. There is even an LTspice UI method hiding under the "File" menu that explicitly does just that: [Waveform Viewer] File > Execute .meas script Regards, Tony |
Re: Edge triggered b-source logic and integrated averaging in LTspice
¿ªÔÆÌåÓýVlad(imir) is a Slav name. Most, but by no
means all, Romanian names are of Latin origin. So, not only
Russian. Best wishes John Woodgate OOO-Own Opinions Only J M Woodgate and Associates Rayleigh, Essex UK On 2018-11-28 07:49, Andy
ai.egrps@... [LTspice] wrote:
? |
Re: AES17-20k Filter
On 2018-11-28 08:19, Vlad wrote: "I see you are using an ideal approach, so you could use a different Where you end up often depends on where you start. You are right, of course, but in my defence, I started from a physically realisable circuit and optimised it as a simulation tool. It also has the advantage that it should work with any SPICE. Feel free to offer a more efficient alternative. Regards, Tony ?
|
Re: encapsulating a long set of spice directives
AS wrote, "You have to zoom out all the way to get it to show everything hidden.? It only reveals what is in the current zoom level." Did that.? No change.? Anyway, the hidden text would not have moved, would it?? If it was in my screen area, shouldn't it still be there? Maybe I zoomed out too far? Andy |
Re: Edge triggered b-source logic and integrated averaging in LTspice
I had guessed Romanian, not Russian. If so, his original native language might have been Romanian. I love the international nature of this group.? It's not something I see very often here in USA. (FYI - in this case, "articles" means a kind of word, in grammar.? If you don't already know English grammar, or if you use Google to translate to your own language, maybe the word "articles" does not translate correctly.) Andy |
Re: Edge triggered b-source logic and integrated averaging in LTspice
Hello Vlad, You know how to use definite and indefinite articles perfectly, but you have a Russian name, so you must be either second generation or first generation (before the age of seven) Russian American.? I have worked with absolutely brilliant Russian and Polish guys in the past who knew English perfectly except for how to use articles.? They always had me review their otherwise impeccable papers to correct articles before publishing. What do you know of traditional Russian foods?? I know praniki is a generic term, but do you know of the unleavened hard biscuit/cookie that is made from white flour, sugar and mint?? They are like a teething biscuit for babies.? They are better than chocolate. ---In LTspice@..., <imbvlad@...> wrote : Hello analogspiceman > Earlier today I received a message from Mike. There is a now a new updateYes, I happened to update late yesterday and I saw the changelog. Thank you for the notice. -- Vlad ______________________ ltspicegoodies.ltwiki.org -- holding, among others: a universal analog/digital filter, block-level models for power electronics (and not only), math blocks with a more stream-lined approach, some digital ADC, DAC, (synchronous-)counter, JKflop, etc. |
Re: AES17-20k Filter
Hello Tony
In the pretend world of simulation, the same requirements applyI see you are using an ideal approach, so you could use a different topology that is simpler, with the same effect. For example, if you would use the custom filter I made with fc=0 BWp=20k BWs>BWp (any value greater than BWp) Asc=0 Ap=0.1 As=65 N=8 you would achieve the same results, with less components. Or use BWs=25k and N=0, it will improve the stopband rejection slightly but extend the transition width (still within constraints). The topolgy uses 5xG, 2xC, 1xR (1xG per 2nd order coefficient) and 4 nodes, considering one 2nd order stage (I/O will be shared between). Insertion loss at 20kHz: < 0.1dB-- Vlad ______________________ ltspicegoodies.ltwiki.org -- holding, among others: a universal analog/digital filter, block-level models for power electronics (and not only), math blocks with a more stream-lined approach, some digital ADC, DAC, (synchronous-)counter, JKflop, etc. |
Re: encapsulating a long set of spice directives
You have to zoom out all the way to get it to show everything hidden.? It only reveals what is in the current zoom level.
---In LTspice@..., <ai.egrps@...> wrote : analogspiceman wrote: ? ? "Shift-Ctrl-Alt-H: Temporarily highlights all hidden text within the schematic." I tried that (and a few other combinations).? Never got it to show the hidden text. Andy |
Re: Edge triggered b-source logic and integrated averaging in LTspice
Hello analogspiceman
Earlier today I received a message from Mike. There is a now a new updateYes, I happened to update late yesterday and I saw the changelog. Thank you for the notice. -- Vlad ______________________ ltspicegoodies.ltwiki.org -- holding, among others: a universal analog/digital filter, block-level models for power electronics (and not only), math blocks with a more stream-lined approach, some digital ADC, DAC, (synchronous-)counter, JKflop, etc. |
Re: encapsulating a long set of spice directives
"5 - How to automatically open and view the "SPICE Error Log" after each simulation run ?" If you build your simulation to generate a non-fatal minor error, it will automatically open the Error Log after the simulation completes (at fatal error will cause it to stop before finishing). |
Re: encapsulating a long set of spice directives
Shift-Ctrl-Alt-H: Temporarily highlights all hidden text within the schematic.
---In LTspice@..., <ai.egrps@...> wrote : Steph, Yours is a very long message.? I'll try to reply to it all.? I tend to say too much when I reply, so I'll try keeping it short.? Kick me if I don't ? ? "1 - The "Text Edit on the Schematic" tool allows to opt for the "(not visible)" modality through the "Justification" drop-down list. I tried this. There is a problem. Once you opt for the?"(not visible)" modality, the whole set of directives vanishes from the schematic. And there is no way to retrieve the set. Do I miss something ?" Text that has been made "not visible" reverts to visible the next time you open the schematic.? That's the good news.? The bad news is that there is no way to make the not visible thing "sticky", and no way to make it visible again except by closing and opening the schematic. ? ? "2 - How how to encapsulate the above directives into a file ?" Open your favorite text editor.? Copy and Paste works between Windows programs.? Paste it into the file and save it.? Name it whatever you want. ? ? "3 - How to invoke the directives file on the main schematic ?" Add this line to the schematic: ? ? .inc filename.ext with the actual filename.? (.inc is short for .include) ? ? "4 - How to ensure that the directives get read by the schematic, and by the sub-circuits ?" If there is no error message, then it opened and used the file.? If you're paranoid about it, you could add another parameter and use it to set a voltage source; then probe that voltage source and see that it indeed was affected by the parameter.? But you shouldn't need to do that. User-defined parameters are used by the schematic, but not necessarily by subcircuits.? The scope of user-defined parameters includes subcircuits unless overridden by another definition for the same parameter within the subcircuit. ? ? "5 - How to automatically open and view the "SPICE Error Log" after each simulation run ?" You can't.? You have to use your fingers. Well, you could include an intentional error in your simulation, which forces LTspice to open the Error Log file for you.? But there is no way to automatically view the file.? You have to tell your brain and your eyeballs to do that. ? ? "6 -? How to define a piecewise linear (PWL) element, in the Frequency-Impedance plane :" I think you would use a Table().? But I'm not certain so don't take my word.? Read the Help about using the table() function.? Be aware that it would work only in the frequency domain with an .AC simulation, not a .TRAN simulation. There have been messages here about doing this sort of thing, so if you check the Files or weed through messages you might find it.? Sorry I can't help off the top of my head. I haven't yet read the last 3/4 of your message. Regards, Andy |
Re: Jim Thompson
I have probably never met Jim Thompson (unless inadvertently at an industry conference), but I have corresponded with him briefly several times via email.? I believe he is either dying very soon or already dead.? He plans to have his preservative-free body frozen and shipped to Oregon for a natural burial in an organic box so that he can return to the earth from whence he came. He suffered the premature loss of his outstanding, all-that-a-father-could-ever-want son perhaps a decade ago, something no parent should ever have to endure.? I grieve for him, but we all pass.? He brought knowledge and enlightenment to the world, staving off the inevitable close of chaos a little bit longer.? May he live on in our memory and in our simulations. |