Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: PWL sources (was but not related to: "Discrete data points in plot view")
开云体育Thanks to all for helping. I already posted the solution on my side to the list. I found it out myself but the message bounced since I always forget to disable he signing of the email when posting :-(Editing the file is easy for me. I’m using jupyter notebook (python) to generate the file and send the file directly in place to the LTSpice directory where my LTspice-project resides. It’s a small python script: nrise="500n" nhold="1us" nfall="500n" werte=[0,4.5,14,45,77,84.5,57,45,40.5,37,33,29.5,24.5,20.4,15,8.2, ? ? ? 0,-8.2,-15,-20.4,-24.5,-29.5,-33,-37,-40.5,-45,-57,-84.5,-77,-45,-14,-4.5,0] print(werte) print(len(werte)) delta=0.3057805136377/32 print(f'delta={delta:2.7f}s') for i in range(32): ? ? ?print(f'{delta*i}s 0mV +{nrise} {werte[i]}mV +{nhold} {werte[i]}mV +{nfall} 0mV ') with open("/Users/kuku/Documents/LTspiceXVII/pulses_discrete.txt", "w") as f: ? ? for i in range(32): ? ? ? ? print(f'{delta*i}s 0mV +{nrise} {werte[i]}mV +{nhold} {werte[i]}mV +{nfall} 0mV ',file=f) — Christoph
|
Re: Warning: Multiple definitions of model ...
开云体育I think a social media campaign would achieve little, except maybe get you elevated to ignore status. A lot of engineers don't even have a FB account. I don't. I neither have the time nor the inclination.The current LTspice dev' team established communication channels with this group some while ago. This user group is almost certainly the largest LTspice interest (lobby) group on the planet - about 70,000 (all time) members at last count, although only minority are currently active. No other SPICE interest group is within a magnitude of that, and is never likely to be. In fact, LTspice ranks 2nd in all of the publicly listed groups on groups.io, behind groups.io/updates in term of popularity. Beyond mild curiosity, I have no desire or intention to use any other SPICE tool than LTspice. I have invested way too much time and effort into it. At the moment, it beats the crap out of any other similar tool (IMHO). My desire is that it retains that position. LTspice is great tool. Could it be better? Of course. When operational program bugs get reported, they usually get fixed - quickly, if serious. Even when Mike was in sole charge, some reports were acted upon almost by return of email. Others plunged into a black void. I realise that the standard libraries situation irritates some people more than others. As far as ADI are concerned, repairs are likely to be prioritised according to the impact on sales. Library goof-ups have caused a number of their /examples/Applications schematics (the ones featuring their own premium parts) to fail, as models have been pulled without updating the schematics that call them. Once realised, that must have caused some consternation, and they have been focussed on fixing those schematics. I whinge about the standard libraries because I feel like I should. Does it irritate me that they are a mess? Yes. Do I lose sleepover it? No. If you want to use a particular device in an important project, you can keep a verified model in your project folder and make sure it's the one that gets used. Am I bothered whether the BC847B from the standard library is from NXP or Rohm? No. Most likely, it doesn't matter for 95% of circuits. If it did, I would make sure I set set aside the one I wanted, making sure it fulfilled my needs, then any future changes in standard.bjt would not affect my important projects. --
Regards, Tony On 11/07/2023 18:17, Christopher Paul
wrote:
|
Re: SG3524.zip uploads
Also FYI --
There are a couple of places in the group's Files with other SG3524 (or SG1524) models already: Files > z_yahoo > Files sorted by message number > msg_45136 /g/LTspice/files/z_yahoo/Files%20sorted%20by%20message%20number/msg_45136/ Files > z_yahoo > Files sorted by message number > msg_77851 /g/LTspice/files/z_yahoo/Files%20sorted%20by%20message%20number/msg_77851/ Files > z_yahoo > Files sorted by message number > msg_59940 /g/LTspice/files/z_yahoo/Files%20sorted%20by%20message%20number/msg_59940 This one is puzzling, it MIGHT be an attempt to mimic the behavior of a SG3524, using other components.? I think the messages about that one are here, especially this reply and this reply. Andy |
SG3524.zip uploads
This is for Aime Dugras, who has uploaded two copies of SG3524.zip to the Temp folder, without explanation.
Aime, you forgot to include the model file "Sborka.lib"? Also, the 1N3890 model is missing.? The simulation "test1.asc" can not be run without them.? Remember, uploads should be complete, and include all required files and models that didn't come with LTspice. I am puzzled why your TIP127.asy symbol requires Sborka.lib, yet there is a separate model file TIP127.lib, which is not used.? Maybe it was a mistake in your TIP127.asy symbol. In your other schematic "test2.asc", there are three generic diodes "D".? That might work OK, but as a general rule, real diode models might simulate better than the generic default model "D".? The "D" diode model lacks some parameters (e.g., Rs>0, Cjo>0) that can make it less simulation-friendly than a real diode's model. After you have uploaded a file, please announce it.? Send a new message, tell us what you uploaded a file, and what it is for. Andy |
Re: Warning: Multiple definitions of model ...
开云体育Hi Tony, ? ??????????????? Thanks for your reply. ? ??????????????? An email from a disgruntled individual doesn’t always elicit the desired response, as you’ve found. ? ??????????????? I’m talking about possible efforts from a number of individuals in this group to complain publicly: Twitter, Facebook, comments on an EDN Design idea, things such as that. Proposals for using non-ADI tools for analysis would be included. ? Regards, ? Chris ? From: [email protected] <[email protected]> On Behalf Of Tony Casey
Sent: Tuesday, July 11, 2023 11:56 AM To: [email protected] Subject: Re: [LTspice] Warning: Multiple definitions of model ... ? People at ADI already know because I told them a couple of years ago, along with what I thought of the status. Shortly after that, my emails stopped getting answered. But just before that happened, it was suggested that the standard library maintenance might have been one of the things that have been "outsourced". -- ? On 11/07/2023 16:13, Christopher Paul wrote: There are ways using social media to gain the attention of and action from recalcitrant companies. Anybody interested? Comments??-----Original Message-----From: [email protected] <[email protected]> On Behalf Of Bernhard WeiskopfSent: Monday, July 10, 2023 4:35 PMTo: [email protected]Subject: Re: [LTspice] Warning: Multiple definitions of model ...?Some transistor models are very far from real behavior. Nobody checks that.What bothers me is that ADI violates the SPICE rule that model names must be unique. And nobody at ADI seems to care.Bernhard ? |
Re: Warning: Multiple definitions of model ...
开云体育However you obtain the
information about the contents of the box, there is no
paradox.? You might get it by measuring the vibration of the
box due to the cat breathing (or not). Whatever you do to get
the information, the result is the same. ======================================================================================
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 16:49, Tony Casey wrote:
That's only because visible light waves don't pass through the box wall. X-ray vision would reveal the status of the contents. |
Re: Warning: Multiple definitions of model ...
开云体育People at ADI already know because I told them a couple of years ago, along with what I thought of the status. Shortly after that, my emails stopped getting answered. But just before that happened, it was suggested that the standard library maintenance might have been one of the things that have been "outsourced".--
Regards, Tony On 11/07/2023 16:13, Christopher Paul
wrote:
There are ways using social media to gain the attention of and action from recalcitrant companies. Anybody interested? Comments? -----Original Message----- From: [email protected] <[email protected]> On Behalf Of Bernhard Weiskopf Sent: Monday, July 10, 2023 4:35 PM To: [email protected] Subject: Re: [LTspice] Warning: Multiple definitions of model ... Some transistor models are very far from real behavior. Nobody checks that. What bothers me is that ADI violates the SPICE rule that model names must be unique. And nobody at ADI seems to care. Bernhard |
Re: Warning: Multiple definitions of model ...
开云体育That's only because visible light waves don't pass through the box wall. X-ray vision would reveal the status of the contents.--
Regards, Tony On 11/07/2023 16:39, John Woodgate
wrote:
That points up the (philosophical) flaw in the Principle. It has even been suggested that a single electron can 'observe' and collapse the wave function.? You can look at it another way. While the box is shut, no-one can know its status; that information simply isn't available. To elevate that lack of knowledge to a paradox is over-egging the pudding indeed. |
Re: PWL sources (was but not related to: "Discrete data points in plot view")
开云体育"?" can also be a 2 byte character, and that was one of the things that alerted me. As it happens, LTspice ignored the entire first line, when I wrote out what I thought was was Chris's 1st line in a separate file. When it encounters more than two increments with the same amplitude, it ignores the middle one. When it encounters a whole lone of the same amplitude, the whole line gets ignored. There's a message to that effect in the ErrorLog. Whereas with Chris's string, it threw an error message because there were the wrong number of sub-strings - the parser bombed out when it encountered an "illegal" character. The two files looked the same, but I noticed they differed in length by one byte, so the "?" was a double byte character, not extended ASCII. It might depend what keyboard and character set Chris is using, and how the "?" got there. They still looked the same to me, until I compared them in Meld (a file comparison tool). Then the difference was highlighted. It was a "duh!" moment.So I then did a global search and replace of "u" for "?" on Chris's whole text and it worked straight away. --
Regards, Tony On 11/07/2023 16:49, John Woodgate
wrote:
? is character 181_10 (B5 in hex) in extended ASCII. Does the parser accept any extended ASCII characters? |
Re: PWL sources (was but not related to: "Discrete data points in plot view")
开云体育It works!Final problem was, that I wrote ?s into the time values - 1us that should have been. PWL REPEAT FOREVER file=pulses_discrete.txt ENDREPEAT 0.0s 0mV +500n 0mV +1us 0mV +500n 0mV 0.009555641051178124s 0mV +500n 4.5mV +1us 4.5mV +500n 0mV 0.01911128210235625s 0mV +500n 14mV +1us 14mV +500n 0mV 0.028666923153534373s 0mV +500n 45mV +1us 45mV +500n 0mV 0.0382225642047125s 0mV +500n 77mV +1us 77mV +500n 0mV 0.04777820525589062s 0mV +500n 84.5mV +1us 84.5mV +500n 0mV 0.057333846307068746s 0mV +500n 57mV +1us 57mV +500n 0mV 0.06688948735824687s 0mV +500n 45mV +1us 45mV +500n 0mV 0.076445128409425s 0mV +500n 40.5mV +1us 40.5mV +500n 0mV 0.08600076946060312s 0mV +500n 37mV +1us 37mV +500n 0mV 0.09555641051178124s 0mV +500n 33mV +1us 33mV +500n 0mV 0.10511205156295937s 0mV +500n 29.5mV +1us 29.5mV +500n 0mV 0.11466769261413749s 0mV +500n 24.5mV +1us 24.5mV +500n 0mV 0.12422333366531561s 0mV +500n 20.4mV +1us 20.4mV +500n 0mV 0.13377897471649375s 0mV +500n 15mV +1us 15mV +500n 0mV 0.14333461576767187s 0mV +500n 8.2mV +1us 8.2mV +500n 0mV 0.15289025681885s 0mV +500n 0mV +1us 0mV +500n 0mV 0.1624458978700281s 0mV +500n -8.2mV +1us -8.2mV +500n 0mV 0.17200153892120623s 0mV +500n -15mV +1us -15mV +500n 0mV 0.18155717997238435s 0mV +500n -20.4mV +1us -20.4mV +500n 0mV 0.19111282102356247s 0mV +500n -24.5mV +1us -24.5mV +500n 0mV 0.20066846207474062s 0mV +500n -29.5mV +1us -29.5mV +500n 0mV 0.21022410312591874s 0mV +500n -33mV +1us -33mV +500n 0mV 0.21977974417709686s 0mV +500n -37mV +1us -37mV +500n 0mV 0.22933538522827498s 0mV +500n -40.5mV +1us -40.5mV +500n 0mV 0.2388910262794531s 0mV +500n -45mV +1us -45mV +500n 0mV 0.24844666733063123s 0mV +500n -57mV +1us -57mV +500n 0mV 0.2580023083818094s 0mV +500n -84.5mV +1us -84.5mV +500n 0mV 0.2675579494329875s 0mV +500n -77mV +1us -77mV +500n 0mV 0.2771135904841656s 0mV +500n -45mV +1us -45mV +500n 0mV 0.28666923153534374s 0mV +500n -14mV +1us -14mV +500n 0mV 0.29622487258652186s 0mV +500n -4.5mV +1us -4.5mV +500n 0mV
|
Re: PWL sources (was but not related to: "Discrete data points in plot view")
开云体育? is character 181_10 (B5 in
hex) in extended ASCII. Does the parser accept any extended
ASCII characters? ======================================================================================
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 15:30, Tony Casey wrote:
Chris, |
Re: Warning: Multiple definitions of model ...
开云体育That points up the (philosophical) flaw in the Principle. It has even been suggested that a single electron can 'observe' and collapse the wave function.? You can look at it another way. While the box is shut, no-one can know its status; that information simply isn't available. To elevate that lack of knowledge to a paradox is over-egging the pudding indeed. There are many cases where the
mathematics gives an answer that is not wrong but is not
valid. Consider a theoretical square wave, varying between -1
and 1 with instantaneous transitions. The maths says that in
the middle of the transition the value of the function is 0. ======================================================================================
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 15:20, Christopher Paul
wrote:
|
Re: PWL sources (was but not related to: "Discrete data points in plot view")
开云体育Chris,It's the the micro (?) characters. Wow, that was subtle! Do a global replace to "u" and that will fix it. The pwl syntax parser obviously cannot deal with unicode characters. --
Regards, Tony On 11/07/2023 14:37, Christoph wrote:
|
Re: Warning: Multiple definitions of model ...
开云体育Necessarily by a human or could it be by another cat? ? From: [email protected] <[email protected]> On Behalf Of Tim Hutcheson via groups.io
Sent: Monday, July 10, 2023 7:51 PM To: [email protected] Subject: Re: [LTspice] Warning: Multiple definitions of model ... ? ...?that the cat remains both alive and dead until the state has been observed. |
Re: Warning: Multiple definitions of model ...
开云体育I read that the crystal model drifted off-spec; "how far
off-spec" was my first question -- then underlying that question
is, why did the parameters drift so far? Are we talking about
bit-rot? radiation? time? gravitational distortion of the local
space-time continuum? incipient Godzilla visitation? LTdune
running out of spice??? Inquiring minds need to know! ;-) On 2023-07-11 09:38, Andy I wrote:
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." |
Re: Warning: Multiple definitions of model ...
There are ways using social media to gain the attention of and action from recalcitrant companies. Anybody interested? Comments?
toggle quoted message
Show quoted text
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Bernhard Weiskopf Sent: Monday, July 10, 2023 4:35 PM To: [email protected] Subject: Re: [LTspice] Warning: Multiple definitions of model ... Some transistor models are very far from real behavior. Nobody checks that. What bothers me is that ADI violates the SPICE rule that model names must be unique. And nobody at ADI seems to care. Bernhard |
Re: Warning: Multiple definitions of model ...
开云体育Maybe there *is* a route to a true rand() function! ? From: [email protected] <[email protected]> On Behalf Of
Andy I
Sent: Tuesday, July 11, 2023 6:39 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] 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." |
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.? |