.MEAS syntax with variable parameters
7
I¡¯m frustrated by failure of a time measurement I¡¯m trying to make. My circuit generates a pulse train with parameterized width, Pw. I want to measure a delay, from a rising edge of one node, N0, to the next rising edge of another node, Nx. Due to a filter action, the amplitude of V(nx) is dependent upon a resistor whose value is stepped, from run to run. Because of that, I want to make the trigger (target) amplitude a variable, say 90% of the MAX() amplitude of node Nx. .meas VNx MAX V(Nx) FROM {5*Pw} TO {25*Pw} .meas T1 TRIG V(N0)=2.25 TD=3u RISE=1 TARG V(Nx)=250m TD=3u RISE=1 Measurement 1 correctly returns a peak value from say 0.5V to 4.5V. Measurement 2 returns a time that¡¯s too close to the stat of Rise, instead of near the peak level. T1 Fails if I use this instead: .meas T1 TRIG V(N0)=2.25 TD=3u RISE=1 TARG V(Nx)={0.9*VNx} TD=3u RISE=1 Help?? Dave
|
Inductance modeling using table issue.
6
Hi! I try to model an inductor using table. When i simulate this inductor, inductance value initially is changed according to the table that i include, but close to end off table inductance value didn't respect value from table. I try to change simulation time, and this make a negative effect on inductance (i don't know why!). Can someone help me with this? blob:/29cb438c-88fc-4eab-81d2-06d860dc8640 this is how inductance need to be changed with bias current. blob:/906f8161-46e1-4558-a50a-630d24f881b5 -- Circuit blob:/c5224e18-4379-40dd-b2de-90c8572811c4 -- Simulation result Text in InductorTable.txt: B1 tb 0 V = Table(I(V2), -70, 30u, -50.24, 30u, -49.75, 32u, -48.48, 37u, -46.35, 42u, -43.83, 45u, -41.60, 50u, -39.46, 57u, -37.51, 63u, -35.57, 69u, -33.52, 79u, -31.57, 86u, -29.52, 96u, -27.67, 107u, -26.10, 119u, -24.54, 127u, -23.26, 138u, -21.79, 149u, -20.13, 162u, -18.95, 173u, -17.67, 184u, -16.69, 195u, -15.50, 208u, -14.13, 222u, -12.94, 237u, -11.76, 250u, -10.67, 263u, -9.39, 276u, -8.20, 292u, -7.02, 305u, -6.13, 318u, -5.04, 330u, -3.86, 344u, -2.88, 351u, -1.80, 357u, -0.83, 362u, 0, 364u, 0.83, 362u, 1.80, 357u, 2.88, 351u, 3.86, 344u, 5.04, 330u, 6.13, 318u, 7.02, 305u, 8.20, 292u, 9.39, 276u, 10.67, 263u, 11.76, 250u, 12.94, 237u, 14.13, 222u, 15.50, 208u, 16.69, 195u, 17.67, 184u, 18.95, 173u, 20.13, 162u, 21.79, 149u, 23.26, 138u, 24.54, 127u, 26.10, 119u, 27.67, 107u, 29.52, 96u, 31.57, 86u, 33.52, 79u, 35.57, 69u, 37.51, 63u, 39.46, 57u, 41.60, 50u, 43.83, 45u, 46.35, 42u, 48.48, 37u, 49.75, 32u, 50.24, 30u, 70, 30u) My question is: Why inductance value didn't respect the table ? Thanks for your help ?
|
FFT spectrum calculation algorithm ?
8
Hi, : May I ask about FFT feature ? If in a waveform viewer, I want to do FFT analysis of a chosen node, which may has multiple frequency components varying during whole simulation time interval. Can it be done to separate the whole simulation time into several intervals by eg: zoom-in feature, then run the FFT feature only for the "zoom-in"ed waveform data, to see what's the freq component in these data ? I say so, because, some applications , eg: OFDM modulation, may have the multiple freq components in modulated signal, and may vary the amplitude depending on transmitted data in different time interval. It helps to analyze if FFT could do analyzing of separated time interval in a single waveform. Is this feature supported ? Thank you very much. Best regards.
|
Model of BF970 ?
3
BF970 is an PNP transistor for UHF band (fT=1000 MHz) from Vishay. I visited Vishay site but there was no sign of BF970 (very old). I hope its spice model exists somewhere or of equivalent UHF PNP transistor. Thank you.
|
Singular matrix
16
Hello everybody, I'm working on a schematic and encounter a "singular matrix" error. I know there are as many cause than people in the mankind, but I would like to have advices to avoid this sort of things. I'm aware that there are a lot of maths in the background too :'( Thanks a lot in advance for your help.
|
Sawtooth waveform by simple BJTs, but dips at the top.
17
Hi, : I have uploaded the file named '20250318_bootstrap time-based triangle-wave generator for frequency sweep.asc' at temp. /g/LTspice/files/Temp/20250318_bootstrap%20time-based%20triangle-wave%20generator%20for%20frequency%20sweep.asc The idea is to generate a sawtooth waveform for jittering in PWM. But at the top peak, Vout dips, it shows flaw of discontinuity. The image showing the phenomenon. /g/LTspice/photo/301350/3897404?p=Created%2C%2C%2C20%2C2%2C0%2C0 If you could share some opinions to fix it, I much appreciate you very well. Wish you all happy & healthy. Best regards.
|
Sallen Key Filter Capacitor at feedback network
4
Hello everyone, I am designing an Analog Front-End for biosignals (EMGs). You can find the corresponding circuit here /g/LTspice/files/EMG_AFE.asc. I have selected INA317 as an instrumentation amplifier and I am trying to design a 2nd order low pass filter after the InAmp stage. The problem is at Capacitor C3. If I remove the capacitor and connect the path to ground, the circuit behavior is not as expected. However the classic Sallen Key circuit topology does not contain this capacitor. Should someone has any idea why is it necessary in this particular configuration with the INA317, I would be very grateful. Thank you in advance.
|
LTspice non-inverting Opamp loop gain.
9
You will soon be told this forum is for LTspice-specific questions, not for electronic design. :{) But I would suggest: https://www.analog.com/en/resources/glossary/non-inverting-op-amp.html Dave
|
.STEPping a .WAVE file output
17
I want make multiple runs of a model which will output a waveform to a .wav file. Each run will step a parameter, all of which works as intended, except, I need to change the filename each time. This illustrates the intent, but not surprisingly, errors off on the last line: .step param stp 1 6 1 .param Vcon table({stp}, 1,-2, 2, -1, 3, 0, 4, 1, 5, 2, 6,3) .wave {Stp}.wav 16 44.1k V(Out) Any suggested better syntax? I¡¯ve tried several¡ Thanks! Dave
|
LTspice AKO
15
LTspice 24.1.5 I thought AKO could be used with NJF. Content of BJT_mod.txt: ........... .model NJ AKO:NJ20 NJF() .model NJ20 NJF ( VTO=-2.5 BETA=1m LAMBDA=0.01 RD=100 RS=50 + CGD=2p CGS=5p IS=1e-14 PB=0.7 FC=0.5 ) .......... Error produced in log: BJT_mod.txt(43): Syntax error: Unexpected input. .model NJ AKO:NJ20 NJF() ^^ I guess not? I tried removing NJF() from AKO statement but it didn't help.
|
groups.io - file sort-by-time in the Temp directory missing?
6
I just wandered into files/Temp to see what was new but can only sort by "Type" or by "Name". I'd bookmarked /g/LTspice/files/Temp?p=updated,,,20,2,0,0 so I can get them in new-to-old order, but (being lazy) I usually just got to Temp and choose sort by date. Is this intentional or should I make my bookmark much easier to hit? Many thanks, Donald.
|
What's the meaning of "**" ?
10
Hello, in some models I found some double "*": what's the meaning of this operator ? Thanks a lot in advance.
|
Four switch non inverting buck boost converter not converging
10
Hello everyone, I am trying to simulate Four switch non inverting buck boost converter with two different genesic switches G3R60MT07J and G3R75MT12J. The library files are encrypted, so I cannot make any changes there. I have tried various methods like increasing time step and tolerances, skipping initial operating point solution etc. but nothing is working for me. Any suggestions regarding how to resolve this issue?
|
Sorry but...
8
it's a lot of time that a looking for a a model ltspice lm317 and lm337 made by the same hand. Someone could kyndly tell me where I can find them? Many thanks Andrea
|
Compiling and publishing other group's member modified models
8
Hello, Recently I compiled several models created by another group's member into one single library. Moreover, I slightly modified them for my need but I think it could be useful for other people here. I tried to contact the original author on his own email to ask his authorization, but I didn't have his reply yet. Moreover, it seems that he didn't come on the group since a long time. His there a rules on the forum for this kind of situation, or am I free to publish here without his authorization (but by mentioning his name however...) ? Thanks a lot in advance for your advices, Pascal
|
Parts Number Re-numbering
16
Sorry for FAQ. How can I renumber the parts number? I heard "shift+ctrl+alt+R" is available. But no change appear. Hidehiko JA9MAT.
|
How to create IEC 61000-4-5 surge waveform in time & s behavioral ?
27
Hi, : May I ask a question about to generate the surge waveform using time equation & s-equation, on how to do that in LTspice ? For example, I asked the ChatGPT, about the 6.0KV surge waveform of time domain, then same as the s-domain equation, but I don't quite know how to express the s-equation exactly. I presume maybe some initial condition needed to be given, but brain twisted. And not sure if that's supported in BV's laplace expression, often it's for transfer function. In the following, it shows the equation for time & s as well. Then since I can't upload the file , (the policy of ... some confidential reason, though I don't know what needed to be confidential), I beg your pardon, please allow me to paste the .asc content in the tail if this thread. Have a nice day. Thank you very much. Best regards. the image about equation description here. (I don't know how to insert picture correctly here, it said me don't have the privilege.) /g/LTspice/photo/301279/3895874?p=Created%2C%2C%2C20%2C2%2C0%2C0 Version 4 SHEET 1 1120 680 WIRE 0 112 0 96 WIRE 192 112 0 112 WIRE 672 112 672 96 WIRE 864 112 672 112 WIRE 0 208 0 192 WIRE 192 208 192 192 WIRE 672 208 672 192 WIRE 864 208 864 192 FLAG 0 208 0 FLAG 192 208 0 FLAG 0 96 V_time FLAG 672 208 0 FLAG 864 208 0 FLAG 672 96 V_s SYMBOL bv 0 96 R0 WINDOW 3 -274 178 Left 2 SYMATTR InstName B1 SYMATTR Value V=6000*( exp(-3.5e6*time) - exp(-0.14e6*time) ) SYMBOL res 176 96 R0 SYMATTR InstName R1 SYMATTR Value 1 SYMBOL bv 672 96 R0 WINDOW 3 -274 178 Left 2 SYMATTR InstName B2 SYMATTR Value V=1*u(time) laplace=6000*( 1/(s+3.5e6) - 1/(s+0.14e6) ) SYMBOL res 848 96 R0 SYMATTR InstName R2 SYMATTR Value 1 TEXT 148 -90 Left 2 !.tran 200u startup
|
No recent files list with an empty window
4
Something burped, v24.0.12 I miss it Man, ADI has really ruined lots of features
|
proper way to simulate fluctuating load for voltage regulator
8
Hello ,I am trying to test a voltage regulator by re[lacing a steady resistor with some sort of varying resistor. Given the circuit in the attached Zip file , what kind of "resistor" you reccomend? /g/LTspice/files/Temp/regulator.zip Thanks.
|
Incandescent lamp model
26
I¡¯m trying to adapt and use the model in LampModel.zip, uploaded by analogspiceman last September. The test circuit supplied works fine for a 120VAC lamp. I want to adapt it to a small pilot lamp, as a stabilizer for a Wein network oscillator. There are a number of parameters defined in the model, but except foe ambient temperature, not well explained. I commented the .param block and passed them externally, and that works exactly the same, as expected. Now, can anyone suggest what needs ¡°tuning¡±, to get about 600 ohms at 10mA, after warm-up? Ka, ambient temp (Kelvin) is easy. Kc looks like design voltage (120RMS), but doesn¡¯t really act like it; left alone. Kf seems to be a heat transfer coefficient, maybe good for warmup timing, but slightly changes stable resistance. CTf is a coupling factor from Tambient to Tfilament, sets warmup timing; left alone. RTf is filament resistance, but changing that parameter makes only a very small difference to the preset, ~150 ohms. Thanks, Dave
|