From: Guilherme B. T. <gui...@gm...> - 2014-04-12 20:03:29
|
Hi Jose, Your spice model seems to work for me. Using 0.0.17. A few comments in-line below. On 4/12/14, 7:00 PM, Jose Manuel Campelo wrote: > Hello: > Recently I have sent an e-mail, talking about a problem with the SPICE netlists in this new version of QUCS. I told you that the problem arose when I tried to simulate one circuit that I designed with the previous version 0.0.17.3 of QUCS. This design can be analysed in the 0.0.17.3 version with no problem. I am wondering where did you get this version from. The last stable release is 0.0.17, where does the extra .3 comes from? > When I start the simulation, in the window that always pops up informing about the process, says: "Creating netlist". And, at the same time, another window pops up (the label of this windows is "Information") saying "Converting SPICE file /media/ ... /NXP_BFR520.cir"In this second window there is only one option (one button in the window) for closing it: "Abort". > The simulation remains frozen waiting for this conversion. But no matter how long you wait, nothing happens.Eventually, when you are tired of waiting and you press "Abort" in the second window, in the first one, in the text filed of "Errors and Warnings" appears this message:"/usr/local/bin/qucsator: error while loading shared libraries: libqucs.so.0: cannot open shared object file: No such file or directory" > After that I tried to determine if the problem was in the file. So I went into the netlist SPICE component where I had imported the spice netlist. I double clicked on the component and it appeared an error message window saying: > "/usr/local/bin/qucsconv: error while loading shared libraries: libqucs.so.0: cannot open shared object file: No such file or directory" How did you install Qucs? It seems that there are issues with the search path for libraries. Did you compile from source? Did you run `sudo ldconfig` and restarted? > At this point, it was clear that something was happening with this file. I tried to find it, and I did it in the route: /usr/local/lib.Some time ago, I had a similar problem with other program, and the solution was to copy the file in /usr/local/lib to /usr/lib. > In fact, I copied all the "lib" files related to qucs in this folder. There were four files named "libqucs_something_" and I decided to copy all of them to /usr/lib. Copying libraries might help temporarily, but usually it creates more issues and do not solve the problem on its source. > After doing that, the situation has changed. When I analyse the circuit containing the netlist SPICE component, the same two windows that I have mentioned before, pop up and the simulation stops like before. But when I press "abort" in the second window, in the "Errors and Warnings" field of the first window says:"line 65: syntax error, unexpected '.', expecting EndSub" This error message is likely form the `netlist.txt` located on your `~/.qucs` directory. Not from the spice .cir file. > It seems that there is some error in the netlist that I am working with. The strangest thing of all of that stuff, is that the ".cir" file only has 54 lines ... I have counted them using the QUCS editor. You can see it by yourselves. The ".cir" file is the following. > <snip> First of all, you can check whether `qucsator` is able to translate the spice file. Try: `qucsconf -h` `qucsconv -if spice -of qucs -i NXP_BFR520.cir` As I said, it seems to work on my side. Here is a small project with a DC and transient simulations: https://www.dropbox.com/s/8gjed0ghk2hdwh2/spice_BFR520.qucs You can find some instructions about using Spice and Qucs in here: http://qucs.sourceforge.net/docs/tutorial/spicetoqucs.pdf > Can anybody give me a hint about the solution of this problem? > I think your Qucs installation is broken. I suggest you to cleanup and reinstall it. Regards, Guilherme |