Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: Warning: Multiple definitions of model ...
Dan wrote, "The problem I had was, that when I opened the model again, it was off its specifications, and so was not stable for use."
Are you saying that the model parameters didn't exist until you opened it and observed them? Or are you saying that the crystal model had drifted between the times you used it? :-) Andy |
Re: PWL sources (was but not related to: "Discrete data points in plot view")
Christoph wrote that there was an error message "V4: requires a minimum of 5 parameters. Only 0 specified.", and asked, "Does anyone see the error?"
No, we can't see the error, because you did not show us V4. The error was with voltage source V4, which is a PULSE voltage source.? It is not the PWL source.? Can you show us your V4? [EDITED NOTE:? What I wrote above was incorrect, because I had seen that error message only with PULSE sources, until now.? This was the first time I saw that error message about a PWL source.? Apparently V4 was this PWL source.] I am confused why this question is in your message topic about displaying waveforms in the plot window.? It is not related to that (and most of the people who replied to that question apparently did not bother to read your question because they are not about your question). Andy |
Re: PWL sources (was but not related to: "Discrete data points in plot view")
Ok, my post above is a bit confused - it's showing what the times would evaluate to - to carry the point that the t_slew errors should not accumulate, the 32th bit will be at a time defined as 32*t_bit.?
time? ? ? ? ? ? ? ? ? ? ? value 0? ? ? ? ? ? ? ? ? ? ? ? ? ?0 +tslew? ? ? ? ? ? ? ? ? ?bit[0] say 5V +tbit? ? ? ? ? ? ? ? ? ? ? same +tbit+tslew? ? ? ? ? ? bit[1] say 0V? +2x tbit? ? ? ? ? ? ? ? ? same +2x tbit +tslew? ? ? bit[2] say 5V + 3x tbit? ? ? ? ? ? ? ? ?same + 3x tbit? +tslew? ? ?next bit It's not mixing absolute and relative - it simply starts with a zero, as per the example in figure 5 in Simon Bramble's tutorial here: The t_slew errors should not accumulate, here is a corrected form, with relative timing:? time? ? ? ? ? ? ? ? ? ? ? value 0? ? ? ? ? ? ? ? ? ? ? ? ? ?0 +tslew? ? ? ? ? ? ? ? ? ?bit[0] say 5V +(tbit-tslew)? ? ? ? ? same +tslew? ? ? ? ? ? ? ? ? ?bit[1] say 0V? +(tbit-tslew)? ? ? ? ? same +tslew? ? ? ? ? ? ? ? ? ?bit[2] say 5V +(tbit-tslew)? ? ? ? ? same +tslew? ? ? ? ? ? ? ? ? ?bit[3] say 0V etcetera...? The main point though, is that PWL files carry one signal only, as far as I'm aware.? You need to define several if you want multiple voltage sources.? |
Re: Warning: Multiple definitions of model ...
This reminds me of a time when I designed a crystal filter model, based upon a file I found on the net. I tweeked it's bandwidth.? The problem I had was, that when I opened the model again, it was off its specifications, and so was not stable for use.??
|
Re: PWL sources (was but not related to: "Discrete data points in plot view")
开云体育Thanks to all.I was trying to follow the given recipes. But what I didn’t like with the suggestion(s) thath the rise hold and fall times would all pile ?up and would end with a significant offset at the end of my 32 pulse. So I thought of using the absolute time points to match exactly and start a rise-hold-fall sequence relatively to the distinct points. This would result in a line with all 0V amplitudes for the first value. I’m using the following syntax but it fails: 0.0 0mV +500n 0mV +1?s 0mV +500n 0mV 0.009555641051178124 0mV +500n 4.5mV +1?s 4.5mV +500n 0mV 0.01911128210235625 0mV +500n 14mV +1?s 14mV +500n 0mV 0.028666923153534373 0mV +500n 45mV +1?s 45mV +500n 0mV 0.0382225642047125 0mV +500n 77mV +1?s 77mV +500n 0mV 0.04777820525589062 0mV +500n 84.5mV +1?s 84.5mV +500n 0mV 0.057333846307068746 0mV +500n 57mV +1?s 57mV +500n 0mV 0.06688948735824687 0mV +500n 45mV +1?s 45mV +500n 0mV 0.076445128409425 0mV +500n 40.5mV +1?s 40.5mV +500n 0mV 0.08600076946060312 0mV +500n 37mV +1?s 37mV +500n 0mV 0.09555641051178124 0mV +500n 33mV +1?s 33mV +500n?0mV 0.10511205156295937 0mV +500n 29.5mV +1?s 29.5mV +500n 0mV 0.11466769261413749 0mV +500n 24.5mV +1?s 24.5mV +500n 0mV 0.12422333366531561 0mV +500n 20.4mV +1?s 20.4mV +500n 0mV 0.13377897471649375 0mV +500n 15mV +1?s 15mV +500n 0mV 0.14333461576767187 0mV +500n 8.2mV +1?s 8.2mV +500n 0mV 0.15289025681885 0mV +500n 0mV +1?s 0mV +500n 0mV 0.1624458978700281 0mV +500n -8.2mV +1?s -8.2mV +500n 0mV 0.17200153892120623 0mV +500n -15mV +1?s -15mV +500n 0mV 0.18155717997238435 0mV +500n -20.4mV +1?s -20.4mV +500n 0mV 0.19111282102356247 0mV +500n -24.5mV +1?s -24.5mV +500n 0mV 0.20066846207474062 0mV +500n -29.5mV +1?s -29.5mV +500n 0mV 0.21022410312591874 0mV +500n -33mV +1?s -33mV +500n 0mV 0.21977974417709686 0mV +500n -37mV +1?s -37mV +500n 0mV 0.22933538522827498 0mV +500n -40.5mV +1?s -40.5mV +500n 0mV 0.2388910262794531 0mV +500n -45mV +1?s -45mV +500n 0mV 0.24844666733063123 0mV +500n -57mV +1?s -57mV +500n 0mV 0.2580023083818094 0mV +500n -84.5mV +1?s -84.5mV +500n 0mV 0.2675579494329875 0mV +500n -77mV +1?s -77mV +500n 0mV 0.2771135904841656 0mV +500n -45mV +1?s -45mV +500n 0mV 0.28666923153534374 0mV +500n -14mV +1?s -14mV +500n 0mV 0.29622487258652186 0mV +500n -4.5mV +1?s -4.5mV +500n 0mV PWL REPEAT FOREVER file=pulses_discrete.txt ENDREPEAT The error is an alert box saying: V4: requires a minimum of 5 parameters. Only 0 specified. Does anyone see the error? — Christoph Am 09.07.2023 um 05:52 schrieb Bell, Dave <Dave.Bell@...>: |
Re: Warning: Multiple definitions of model ...
开云体育Yes, well, I have my own ideas
about the Uncertainty Principle, but I am not sure whether
they are right. Of course, you don't know if the cat is dead
until you look, but that doesn't mean it wasn't dead before
you looked. For 'cat' read 'electron' and for 'dead' read
'present'. ======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only Rayleigh, Essex UK I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC) On 2023-07-11 00:50, Tim Hutcheson via
groups.io wrote:
...?that the cat remains both alive and dead until the state has been observed. |
Re: Warning: Multiple definitions of model ...
Hahaha!? I'd say that depends on which side of the argument you were on.? I think it may also date from before that in slightly different form as "care killed the cat".? Shakespeare is supposed to have used a version of it.? I will bow to your emphatic statement on what improvement the second line makes, (or doesn't). It always used to irritate the dickens out of me when my mother threw it at me as a youngster!
|
Re: Warning: Multiple definitions of model ...
开云体育The first line dates from 1868.
The second was added in 1912. It is not an improvement. ======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only Rayleigh, Essex UK I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC) On 2023-07-10 23:10,
aburtonline@... wrote:
If I may chip in here and finish the little ditty you started with the rarely known second line John: |
Re: Warning: Multiple definitions of model ...
Robin Gangopadhya
toggle quoted message
Show quoted text
From: [email protected] <[email protected]> on behalf of Mike Fraser <mrfraser@...>
Sent: Saturday, July 8, 2023 5:18 AM To: [email protected] <[email protected]> Subject: Re: [LTspice] Warning: Multiple definitions of model ... ?
I have the latest update to LTspice 17.1.9.
In my opinion, the transistor listing has reached a point where it canot be trusted. ? ? ? ? ? Anyone using the built in BJT listing needs to double or triple check any selected model. I opened a schematic and placed 2 NPN devices. I then tried to select the BC847C as my choice. LTspice lists 2 models for this device. The NXP mfg. listing shows a rating of 45V and 100 mA. The ROHM mfg. listing shows a rating of 32V and 200 mA. When you try to select the ROHM model for your BJT, LTspice automatically selects the NXP model. Also, the spice model for the ROHM part is nothing more than completely worthless garbage. The real model can be found here : Additionally, the ROHM data sheet specifies 45V and 100 mA ratings. I can only hope that someone at Analog Devices will spend time and clean up this mess. Mike |
Re: Warning: Multiple definitions of model ...
开云体育Perhaps it's as well I'm a bit of a dog, then.--
Regards, Tony On 10/07/2023 19:54, John Woodgate
wrote:
|
Re: Warning: Multiple definitions of model ...
开云体育Yes, I did mean 'will'. My (limited) experience is that even different data books don't give the same graphical data, and models are no different in that respect.? Yes, you can tweak a model, but most people don't have your insight into the arcane parameters that are used in models. I agree about diodes being calculable, as long as the ohmic resistance component is included, which is rarely specified for small-signal diodes. Curiosity, of course, killed the cat. ? ======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only Rayleigh, Essex UK I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC) On 2023-07-10 18:42, Tony Casey wrote:
I presume you meant "It's unlikely that a model "will* produce curves that closely match those in the data sheet"? Of course that's not true. In many cases, you can tweak a model to produce almost overlay what's in the datasheets. Why not make the model as good as you can? Don't give the "simulations can't be trusted brigade" more ammunition. |
Re: .imp file
开云体育I say 'fictitious', because no
such signal with that waveform was the input for the
simulation.? I agree that the result of the inverse FFT is the
impulse response (within limitations). There is quite a lot
about cepstrum analysis on the web, although not millions of
hits, of course. ======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only Rayleigh, Essex UK I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC) On 2023-07-10 18:39, Andy I wrote:
John wrote, "...?an inverse FFT will produce a (fictitious) waveform whose spectrum is the frequency response. I can't see much use for that."? It might be useful to see the impulse response of your network.? Why do you say fictitious? |
Re: Warning: Multiple definitions of model ...
I presume you meant "It's unlikely that a model "will* produce curves that closely match those in the data sheet"? Of course that's not true. In many cases, you can tweak a model to almost overlay what's in the datasheets. Why not make the model as good as you can? Don't give the "simulations can't be trusted brigade" more ammunition.
toggle quoted message
Show quoted text
And there again, there are many cases where the model is nowhere "close enough", even for diodes. Basic discrete diodes are quite simple to optimise as there are relatively few model parameters. You don't even need LTspice for this, it can easily be done in a spreadsheet using its internal solver. There's nothing very mysterious about the diode equations. As far as understanding what each parameter does, LTspice gives us the tools to analyse them: just change one and see what it does. Whatever happened to curiosity? --
Regards, Tony On 10/07/2023 17:58, John Woodgate wrote:
|