Maker Pro
Maker Pro

Re: Measuring output impedance in LTSpice

E

ehsjr

John said:
I have the same problem. You are probably seeing the text file even
though LTSpice is loading the file. That is, LTS is loading the file as
a text file rather than an asc file. Look at the file name in the upper
left corner after LTS loads it and responds with the error message. On
mine it shows name(dot)asc(dot)txt. Somehow, TB is appending .txt before
handing it off to LTS, I think.

I don't know how to fix this.

John

Me neither. But I just opened the phase shift oscillator file (in
another thread) from Warren from his attachment. The difference
I saw in the process: when I double clicked on Warren's attachment,
the window that opened had LT spice (default) in the "open with"
box. With Joerg's or Phil's, the open with box had txtfile not
LT Spice. I had to select the launching app, and I chose scad3.

Looking at the Content-Type header info in their posts, I see what
may be a clue to the cause of the problem. In the following
order: Warren, then Joerg, then Phil content type information.
Content-Type: application/octet-stream; name="Phase_Shift_Osc.asc"

Content-Type: multipart/mixed;
boundary="------------070604080302010003040205"

Content-Type: multipart/mixed;
boundary="------------070304010100010408010508"

The line wrap occurred when I pasted the above here - there is
no wrap in the headers.


In my case, with Joerg's attachment, I do not get filename.asc.txt
The .txt is not appended, as it is in your case. I get
LTspice IV - [Diodenpulser_4.asc-4]

So we both get failures, but even the failure mode is different.

Ed
 
J

John - KD5YI

John said:
I have the same problem. You are probably seeing the text file even
though LTSpice is loading the file. That is, LTS is loading the file
as a text file rather than an asc file. Look at the file name in the
upper left corner after LTS loads it and responds with the error
message. On mine it shows name(dot)asc(dot)txt. Somehow, TB is
appending .txt before handing it off to LTS, I think.

I don't know how to fix this.

John

Me neither. But I just opened the phase shift oscillator file (in
another thread) from Warren from his attachment. The difference
I saw in the process: when I double clicked on Warren's attachment,
the window that opened had LT spice (default) in the "open with"
box. With Joerg's or Phil's, the open with box had txtfile not
LT Spice. I had to select the launching app, and I chose scad3.

Looking at the Content-Type header info in their posts, I see what
may be a clue to the cause of the problem. In the following
order: Warren, then Joerg, then Phil content type information.
Content-Type: application/octet-stream; name="Phase_Shift_Osc.asc"

Content-Type: multipart/mixed;
boundary="------------070604080302010003040205"

Content-Type: multipart/mixed;
boundary="------------070304010100010408010508"

The line wrap occurred when I pasted the above here - there is
no wrap in the headers.


In my case, with Joerg's attachment, I do not get filename.asc.txt
The .txt is not appended, as it is in your case. I get
LTspice IV - [Diodenpulser_4.asc-4]

So we both get failures, but even the failure mode is different.

Ed

Well, I can right-click the attached file name and get it to save in my
directory of choice which LTSpice knows, and it works fine. I was just
hoping I could find a way to get it to launch. TB does not have a way to
specify launch progs, AFAIK.

John
 
G

Grant

Yes, as I am using it all the time, it is up to date in the sense that I added some user requests,
It does what it has to do, and is great on low bandwidth links (offline reader).
I do not understand why anyone would use a different reader,
Hardly any changes were needed and made in the last few years.
There is even a version for the early eeePC.
I am amazed that anyone would pay for a newsreader like agent and MS windows of course.

My excuse? It was before I met unix, then Linux, because once I met a real OS,
first question was 'how can I do this at home?' :) Been running at least two PCs
on localnet since, taking the best of both worlds, which for me is windows desktop
over Linux networking. The software I enjoy tinkering is system stuff and the
odd web page (mostly http://bugs.id.au, grrr.id.au is less used at the moment.
While all good stuff is free, like Linux and NewsFleX.

As long as one's time is not counted.
And you have the source and can modify it too.

Only times I modified some apps was actually binary mods to make it work better,
I remember hacking z80 dasm to increase table size back in the '80s, and a card
solitaire game I had to change name of their .dll to avoid a clash, in the '90s.

Plus dongle disconnection from a an expensive app in the '80s ;) Sped it up no
end by stopping a silly conversation with said dongle, 'yes, it's here'... every
time one hit main menu.Source is too easy in one sense, but may require lots of poking around. Gives
more confidence that it's available. My name's in the linux kernel for minor
work, but that project moves way too fast for me to keep up for any length of
time.
Installing NewsFleX is very easy, using the basic functions is even easier.

Yeah, I grabbed the tarball, it GUI? My linux boxes not really setup for GUI
at the moment, I use PuTTY terminals, sometimes lots of them. The old idea, GUI
is there simply to allow more terminals on the screen! :)
There are older functions that could get websites and URLs, ftp is supported too,
but these days all web browsers will do that for you, and there is now 'wget',
so I am not using those features, and, as html changed a lot over time, they probably wont work.

I use wget frequently. Not fussed there.
Way my Agent is set up, text/plain triggers my favourite editor, which
currently complains it cannot load the attachment, so I too have a setup
issue here.
It is purely theoretical, if you are happy doing it that way or happy doing it the other way
is what counts.
Time spend happy is time used well.

Yes, very true :)
For me a bit of programming is fun, just like designing some stuff.
Yup.

But happiness is an internal experience, a state of being, so from that POV it does not really matter what you do,
just make sure you are in harmony with yourself.

Good place to be.
To be in harmony with this world is not possible, in fact if I read the news I see madness and war everywhere,
without reason, as if some fuse blew, or maybe some feedback circuit failed.
From a larger perspective maybe where the universe is going, who am I to argue.
Like the storm and rain comes an goes, to be in harmony with the infinite is the way out,
but also we are just a part of the motion of things, things so big.
So, maybe WW3 is coming, this all is just a pre-amble, not going to be pretty.
But in spite of all those dark clouds gathering we can be very happy having fun with our toys.
hehe
:)
Now ain't that great?
What more can one wish for.

About right, you retired, semi-retired too? Time is precious when the
pressure is off.

Cheers,
Grant.
 
G

Grant

Jim said:
[snip]
Hobbs' posting launched from within the message.
His was really truly and attachment, with a filename.

But you're being touch too sensitive or pedantic going on about trying
to avoid a simple copy/paste/rename operation to recreate a text file.

Grant.

Not that I really care, but Joerg's way...

Select text, copy text, open text editor, paste text, save as .asc,
close; open file with LTspice.

Properly attached...

Right click on file name, click launch.
Yes, I do agree :) Much quicker, but then I'm used to transferring from
windoze email to/from unix text, so I do the copy/paste dance in a trance.

Grant.

...Jim Thompson

I do that all the time as well. But Joerg needed his blather tamed
;-)

Oh really? Another guy on the European NG, quote "Dein angehängtes
Beispiel konnte ich problemlos in LTSPICE laden und simulieren." Literal
translation: I could load and simulate your attached example in LTSpice
without problems.

He uses Seamonkey (also a Mozilla product), not sure why they picked
that strange name. Even if this pains you, it seems Agent is not the
standard. Or at least not anymore.

Maybe I should try SeaMonkey, it's the modern incarnation of the old Netscape
Communicator suite, browser plus email and news. Big, slow and cumbersome,
still the favourite of many, Slackware still include it at last look.

Of course Netscape's history was a browser that simply fell over on certain
web content, unix version just as often as the windows one. It was browser
of choice for unix, and in 2001/2 I did a lot of cross-browser javascript
compatibility design, result of which was an online info-sys that renders
properly on modern browsers, yet is unmaintained for the last decade. No
SQL injection attacks. I drift, oops. More coffee!

Grant.
 
G

Grant

I found a setting for 'Toggle Attachment Pane' that will let me right
click and save it, but it screws up other messages. I'm using Netscape
4.78.

Wow!? Not tried SeaMonkey?

Grant.
 
G

Grant

Why do so many people use browsers for newsreaders?

Because early days Netscape Communicator did it all. Netscape was quite
good during the browser wars but MSFT went out of their way to kill it,
first a free browser to cut Netscape's income, then the standards battle
to confuse web page authors. This was during the 1990s. Netscape went
broke and open-sourced their code, resulting in Firefox, Thunderbird and
SeaMonkey -- that's my memory of the events ;)

Grant.
 
C

Clifford Heath

In Thunderbird it clearly shows the extension as *.asc, not *.txt.
Software launching should not be based on file contents but on the file
suffix. But yeah, if someone would use *.asc for a poem or a barbecue
recipe then it's all screwed :)

PGP routinely uses .asc (ascii-armoured) for encrypted binary files.
Your attachment showed up as an attachment in my Thunderbird (Linux)
and would have opened in LTSpice with WINE if I had configured that.
Obviously I don't want to launch PGP files into Spice :)

Clifford Heath
 
E

ehsjr

Jim said:
John said:
On 4/4/2011 11:47 PM, ehsjr wrote:


Michael A. Terrell wrote:

<snip>




It was atttached as plain ASCII, not a .ASC file.



Weird. Not just your experience with it, but several different
posters have reported different results.

I wonder if it is a news server issue, or a news reader issue,
or perhaps some configuration setting on the PC. For me it shows
up as an .asc extension in the Attachments: window. But I can't
launch it correctly. (Using Thunderbird 1.0.2). When I try, I
get a Spice Error - Multiple instances of "Flag". I get the same
error on the one Phil sent when I try to launch his, so it is some
kind of local error in my configuration, as Jim has success
launching from with Phil's post.

If I save the file (either Joerg's or Phil's) by right click, save
to disk, I can double click on the saved file and it opens properly
in LTSPice.

Ed


I have the same problem. You are probably seeing the text file even
though LTSpice is loading the file. That is, LTS is loading the file as
a text file rather than an asc file. Look at the file name in the upper
left corner after LTS loads it and responds with the error message. On
mine it shows name(dot)asc(dot)txt. Somehow, TB is appending .txt before
handing it off to LTS, I think.

I don't know how to fix this.

John

Me neither. But I just opened the phase shift oscillator file (in
another thread) from Warren from his attachment. The difference
I saw in the process: when I double clicked on Warren's attachment,
the window that opened had LT spice (default) in the "open with"
box. With Joerg's or Phil's, the open with box had txtfile not
LT Spice. I had to select the launching app, and I chose scad3.

Looking at the Content-Type header info in their posts, I see what
may be a clue to the cause of the problem. In the following
order: Warren, then Joerg, then Phil content type information.
Content-Type: application/octet-stream; name="Phase_Shift_Osc.asc"

Content-Type: multipart/mixed;
boundary="------------070604080302010003040205"

Content-Type: multipart/mixed;
boundary="------------070304010100010408010508"

The line wrap occurred when I pasted the above here - there is
no wrap in the headers.


In my case, with Joerg's attachment, I do not get filename.asc.txt
The .txt is not appended, as it is in your case. I get
LTspice IV - [Diodenpulser_4.asc-4]

So we both get failures, but even the failure mode is different.

Ed


Have you set up the default program for *.asc files to be
scad3(4).exe?

No. I don't recall ever setting that up as the default for
..asc - but I may have, long ago. Currently, in Thunderbird's
tools->Options->Attachments dropdown there's a place where the
association could be made, but its greyed out.

There may be a way to "un-grey-out" the thing, or some other
way to get Thunderbird to do it that I don't know.

But Thunderbird does use LT spice as the default when it recognizes
that the attachment is a file with a .asc extension. It opens the
attachment to Warren's file with LT spice, so my suspicion is that
Thunderbird is not recognizing Phil's or Joerg's attachments as .asc.
I posted one as a test, and Thunderbird didn't recognize it, either.
For now, the best I can do is save the attachment to disk. It opens
fine from that.

Ed
 
G

Grant

Just had a look there.
I see you have a program called ip-to-country', so do I:
http://www.panteltje.com/panteltje/newsflex/ip_to_country-0.2.tgz
I just use the database from http://ip-to-country.webhosting.info/node/view/6

I wanted a database that didn't place me in another state, so I build my own
from the RIR info. Beats hoping some other site doesn't fall over ;)
grml: ~ # host bugs.id.au
bugs.id.au has address 123.2.77.8
grml: ~ # ip_to_country -i 123.2.77.8
ip=123.2.77.8 (2063748360) "AU" "AUSTRALIA"

grant@deltree:~$ host www.panteltje.com
www.panteltje.com is an alias for panteltje.com.
panteltje.com has address 188.121.54.128
panteltje.com mail is handled by 0 smtp.europe.secureserver.net.
panteltje.com mail is handled by 10 mailstore1.europe.secureserver.net.
grant@deltree:~$ ccfind 188.121.54.128
188.121.54.128 NL:Netherlands

Also, the database is memory resident, so casual enquiries don't suffer
a penalty for searching a disk datafile file. Suits a log analysis app
I have running most of the time.
True, but it is time spend well, you actually create and learn something,
unlike re-installing MS windows for the nnn's time, then the only reward is irritation,
and the feeling you should be doing something else than looking at those MS silly commercials while it installs.
So I burned the xp disk :)

Fine, I prefer to not burn bridges, though I have to be paid to write
windows code again, I decided that after looking at setting up their
web server, no thanks ;)
There is a z80 disassembler I wrote on my site, command line, C source, Linux:
It is a very good disassembler, you can re-assemble the output no problem and than the binary will be identical.
http://www.panteltje.com/panteltje/z80/

I've not been there since '93, glad to be over it.
Yep, I did some audio driver mod for 48000 long time ago,
do not think it is the main tree, OSS went out, now it is all ALSA.



It is GUI, it was written initially as an attempt to have 'Free Agent' for Linux,
so the look and feel, at least from the basic GUI, is similar.
The original name was 'Secret Agent', sort of a word play to 'Free Agent'.
Nonetheless it has some special crypto in it.



You will need the xforms development package installed for it to compile.



Yes wget is cool.



Retired, but still active.
I am in the process of setting up my new physics electronics lab, with some fascinating experiments planned,
got an other part up and running yesterday. These days I am into superconductors, gravity, and time warps.
And the theoretical part that comes with the experiments too, just like every bit is falling into place.
A welcome escape from twenty first century pseudo science.
But it may hit hard on those who are believers in that.
Reality rules, as always.
:)

Grant.
 
J

Joerg

Clifford said:
PGP routinely uses .asc (ascii-armoured) for encrypted binary files.
Your attachment showed up as an attachment in my Thunderbird (Linux)
and would have opened in LTSpice with WINE if I had configured that.


That's what Jim doesn't want to believe :)

Obviously I don't want to launch PGP files into Spice :)

Yes, that is the problem with suffixes as there are only three letters
but a bazillion programs. There isn't (yet) a conditional association.
Like "consider *.asc an LTSpice file if in a news group but PGP if in
email".
 
J

Joerg

Jim said:
Never heard of "association" property?

Sure. That's why I said that, unfortunately, Thunderbird does not seem
to have that. Else it could differentiate and, upon seeing a called
*.asc attachment, load into LTSpice when in a news account and into PGP
if in an email account. Guess that's something for the "Dear Santa" list
then.
 
J

Joerg

Jim said:
Ever thought of using a "manly" program ?:)

Since Agent can't launch my attachment and newer TB versions obviously
do, I don't want Agent :)
 
J

Joerg

Jim said:
You seem to have a reading comprehension problem.

Your very own post on 4/3 at 1:45pm (PST), quote:
"Your .asc file appeared in the body, not properly attached."

With Thunderbird it appears also as an attachment.
 
J

Joerg

Michael said:
No wonder, since it is part of the OS instead of any browser.

Right click on the .asc file and click on 'Open With', then select LT
Spice. It's worked this way at least as far back as Win 95.

It no work ;-)

The older version TB on this machine won't do it. The newer one on the
netbook does. Both Win XP.
 
G

Grant

....
I do not see MS products as bridges, more as a mine field ;-).
:)

I dunno, there are some really complex chips that use z80 based code, mainly from the east,
used in embedded systems. Z80 was (or is) quite efficient code wise.

If I go beyond PIC controllers, I'm more inclined towards ARM these days.

Looking at TI baby controllers too, well, bought a few of the cheapy ez430 kits,
not powered one up yet.

Grant.
 
G

Grant


cp/m before that, in my computing history :) I was using a cp/m box I built
until 1984, then switched to PC-AT at work, nothing at home until early '90s
after that.
And fights the user wanting save plaintext as .asc too, so 'helpful'...

Grant.
 
J

Joerg

Michael said:
I qive up. You have no comprehension, and are absolutely stupid when
it comes to computers.

I told you what happens, and obviously I am not the only one if you had
read the thread. Don't know what's so hard to comprehend about facts.
 
M

Marcel

It no work ;-)

The older version TB on this machine won't do it. The newer one on the
netbook does. Both Win XP.

TB 3.1.9 on Win7 shows Phil's and Joerg's files as attachments
(regardless of inline or attachment disposition), but if I try to open
them with scad3.exe (right-click open...) LTSpice opens them both as
txt-files, because TB appends .txt to the temporary files it creates
from the attached files (TECDriver.asx.txt). This seems to be caused by
the MIME-types set for the attachments: "Content-Type: text/plain".

Saving the files to disk works, though. In this case TB does not try
append .txt to the file names. That's much better than copy&paste.

Marcel
 
M

Marcel

So there's another set-up issue, save as TYPE (text), but don't append
.txt

...Jim Thompson

I don't think it's a set-up issue. Perhaps I didn't make myself clear
enough:

Saving the files to disk from TB works fine. No problem there. TB even
uses the original file name.

But if I try to open the .asc files diretly from Thunderbird with
right-click->open, then TB pops up the dialog, where you can chose "Open
with: scad3.exe" and "Save File", etc. Using the first doesn't let me
choose the filename, but creates the temporary file with the appended
..txt as stated above.

Saving to disk first manually is good enough for me. I was just curious
if there is way to open the files from TB directly.

Marcel
 
Top