LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-18-2009, 05:39 PM   #1
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Rep: Reputation: 106Reputation: 106
gspiceui example needed


I have been trying to build a very simple schematic to simulate in gspiceui. I've never actually seen spice run, though, and I have not been able to actually find any examples on the net that don't start off with something like "import your schematic". I have a simple voltage doubler schematic built, but now what? gspiceui won't do anything with it, and I gather it's because I don't have a voltage source.

Rather than continue to whine like this, I'll just ask for help. If you've got a pointer to a very very VERY simple example schematic, I'd really appreciate it to help me get a running start. Even some verbiage telling me how to set the source device to be a source accepted by gspiceui would help, as well.
 
Old 11-19-2009, 07:51 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
I guess, you will have to specify the voltages.

.. using spice ..
http://www.linuxjournal.com/article/2169

.. create a netlist
http://littletux.homelinux.org/knowhow/ngspice.pdf

http://sourceforge.net/projects/asco/

Odd is, that Googling .. using gspice ..
provides no hits.
.....
 
Old 11-19-2009, 12:05 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Original Poster
Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by knudfl View Post
Odd is, that Googling .. using gspice ..
provides no hits.
.....
Tell me about it. The real problem is that I'm so ignorant about this that I wouldn't have recognized what I'm looking for if it was staring me in the face. Could it be something as simple as not giving netnames to my networks? I'll give that a shot, and if that doesn't help, I guess I'll follow the example in the pdf from start to finish.

One more question, on naming: if I name the schematic xxx.sch, then gspiceui complains that it can't find a .ckt file. But if I name it .ckt then gschem doesn't see it unless I click on show all files. What's up with that (i.e. what am I screwing up)?
 
Old 11-20-2009, 01:25 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
.. I didn't find an answer for " .ckt file. "
There are some text in the Manual ( The 'Help button')
describing .ckt files.

Did you read this thread from today
http://www.linuxquestions.org/questi...igning-770316/

Debian geda packages ..
http://packages.debian.org/sid/geda
.....

Oregano is easy to use : I draw a simple scematic yesterday,
got a netlist created, but was stopped by "missing executable"
when attempting to run the simulation.
.....

Last edited by knudfl; 11-20-2009 at 01:32 PM.
 
Old 11-20-2009, 03:51 PM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,449

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by Quakeboy02 View Post
TCould it be something as simple as not giving netnames to my networks?
No, you don't need netnames in order to simulate. It may be a very worthwhile convenience when it comes to observing what is going on, otherwise there is a tendency not to be absolutely sure which node you are monitoring, but node names are not necessary, as you can use the node numbers.

You do need a node 0 though (ground); without that nothing will work.

You probably do have something wrong about the set up of your voltage source; its easy to do, whether its getting the amplitude or frequency wrong, but whether its the only problem in your circuit...

Quote:
...I guess I'll follow the example in the pdf from start to finish.
That is probably the best idea.

Geda comes with examples, but I can't remember if any of them are what you might call trivial; there are certainly some that are closer to useful than trivial. And, in general, Geda doesn't do as much as it might to shorten the learning curve.

I think my best suggestion to you is to try LTSpice; I know that it is a Windows program (boo!, hiss!, etc!) but Linear Technology do take care that it works under wine. Schematic capture looks a bit crummy under wine (I'm only guessing that it looks better under some other OS), but it does all work and it is rather more user friendly (at least in the sense of giving you error messages that point you directly to the problem and setting up stuff for you in sensible ways...I'd hate to tell you how much time I wasted trying to get a noise sim working once just because I wasn't clear about the syntax) than any of the capable Linux-native options that I can think of.

And another thing; the best thing that I can tell you is that however you do this, don't expect it to be as easy as you think it should be (over time, I must have learned between half a dozen and a dozen different schematic capture programs, and I don't think that a single one was without some hair-tearing frustrations during the learning phase...and schematic capture is the easy part!). It won't be, and if you don't have a bit of time to 'waste' on getting going, you probably won't get anywhere useful.
 
Old 11-20-2009, 04:02 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Original Poster
Rep: Reputation: 106Reputation: 106
Quote:
And another thing; the best thing that I can tell you is that however you do this, don't expect it to be as easy as you think it should be... It won't be, and if you don't have a bit of time to 'waste' on getting going, you probably won't get anywhere useful.
I was starting to think this was the case. Thanks for confirming it for me, as this is a show-stopper. I've already had too many projects that lost momentum and failed because learning a "better" tool crowded out the actual project. I've got a bunch of caps and a breadboard coming from Mouser on Monday. I'll get out the scope and do it the old-fashioned, easy, way. After all, my goal is to create a clean, working power supply from a problematic source, not to learn to play with spice.

Thanks for the posts to this thread, guys!
 
Old 11-21-2009, 06:13 AM   #7
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,449

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by Quakeboy02 View Post
I was starting to think this was the case. Thanks for confirming it for me, as this is a show-stopper.
Now I'm feeling a little guilty for maybe having been a bit too negative (not wrong...just too much emphasis on the negative side). If your circuit is simple and if you can use one of the simpler options you still might have time to do something useful before your parts arrive.

Quote:
I have a simple voltage doubler schematic built, but now what? gspiceui won't do anything with it, and I gather it's because I don't have a voltage source.
This sounds like a small collection of capacitors and small signal diodes hooked up to an AC source. That should be fairly easy to simulate (but, in that case, I don't understand why you are having the "it's because I don't have a voltage source" part; just add an AC voltage source with an appropriate series resistance). It may be more difficult if you are generating the input voltage yourself from a switching circuit, as you may have to simulate the generating part (...or not, if you feel that a source does it adequately...).
 
Old 11-21-2009, 10:38 AM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Original Poster
Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by salasi View Post
This sounds like a small collection of capacitors and small signal diodes hooked up to an AC source. That should be fairly easy to simulate (but, in that case, I don't understand why you are having the "it's because I don't have a voltage source" part; just add an AC voltage source with an appropriate series resistance). It may be more difficult if you are generating the input voltage yourself from a switching circuit, as you may have to simulate the generating part (...or not, if you feel that a source does it adequately...).
Yeah, I know. It SHOULD be easy to simulate. You just add the source component, give it values, and off you go. Except, that it won't go. I'm sure it's because I haven't set some flag or some esoteric thing it needs, but there ya go.

The latest issue of QST (ham radio club magazine) mentions LTspice. I think I'll go ahead and download that today and give it a try. From the description, it sounds like it's more targeted toward the neophyte. I'll report back the results.

Come to think of it, though, maybe you can help with the way I have the source defined. Here's what I have. Is there something obvious? What I want is a source with 0V DC offset, 6.3 VAC, at 60 Hz. Anything else I need to post? Does it need to be surrounded by quotes or parens or something else that isn't obvious to the most casual observer?
Code:
value=DC 0 AC 6.3 SIN(0 10 60)
 
Old 11-21-2009, 11:32 AM   #9
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Original Poster
Rep: Reputation: 106Reputation: 106
Well, I got something going pretty quickly in LTspice! It's not exactly what I expected to see, but it gives me something to play with.

Added:
D'oh! Peak voltage, not RMS voltage. OK, I got this thing going with LTspice.

Last edited by Quakeboy02; 11-21-2009 at 03:23 PM.
 
Old 11-22-2009, 08:26 AM   #10
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,449

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by Quakeboy02 View Post
D'oh! Peak voltage, not RMS voltage. OK, I got this thing going with LTspice.
Hmm, I'm not sure that anyone else was ever likely to spot that one from the information given...always difficult to do some remote debugging remotely, while it might have been obvious if we had had a conversation, just casually discussing what you were doing.

One of the problems is that there is an enormous number of potential "D'ohs".

Quote:
...it sounds like it's more targeted toward the neophyte...
Anyway, glad that you started with LTSpice...can be used for quite serious stuff, but it does have a shallower learning curve than any of the serious, Linux-native, options. When you are just getting started, "plots", and "coloured" and "easy" can be an enormous help if you aren't even sure of which problem you are fighting.
 
Old 11-22-2009, 12:38 PM   #11
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Original Poster
Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by salasi View Post
Hmm, I'm not sure that anyone else was ever likely to spot that one from the information given...always difficult to do some remote debugging remotely, while it might have been obvious if we had had a conversation, just casually discussing what you were doing.
Actually, when I opened the thread I hadn't even gotten that far. I was stuck so badly that there was simply no hope. With LTspice, I started getting results from the start with none of those mysterious errors. The answers were wrong, though, until I read something somewhere and realized that spice uses peak, not RMS, voltages for AC.

It's a very intuitive product; easily learned by an old fart like me. There are a number of things that made the difference for me.

1. It's a single integrated tool. Everything is done from one place, whether it's drawing the schematic or running the simulation.

2. Since it's an IDE, the errors are also integrated, which makes finding their cause much easier.

3. The popup for the source device gives you all the options for the different types of source voltages. You don't have to look through a manual to discover the syntax for a 6.3VAC 60Hz supply.

4. It has a pretty good list of components, and it's not that hard to add new components of a type, such as a new diode not on the list.

5. Building a schematic is less time-consuming than gschem and more forgiving, and you don't have to go back and forth from one program to another to make updates and run a simulation.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed for make file problem : make: *** No rule to make target `flash', needed rameshsatyavaram Linux - Newbie 3 09-11-2008 02:13 AM
XGL needed for Beryl is conflicting with OpenGL needed for Cedega chunkeydelight Linux - Desktop 2 07-18-2007 05:50 AM
Errors installing Q, which is needed for Lex, which is needed for PHP Virtuality Linux - Software 1 05-29-2007 04:47 PM
help needed mystic_durle12 Linux - Newbie 2 03-08-2006 12:18 AM
Help needed! c0nsur Linux - Newbie 1 01-09-2005 02:41 PM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration