Error while using File Based Voltage Source #613
Replies: 11 comments
-
Here is an old Qucs example that runs under Qucs-S. |
Beta Was this translation helpful? Give feedback.
-
Look for file source example also here: #254 |
Beta Was this translation helpful? Give feedback.
-
I have just checked the latest development build and everything works as expected. If nothing above helps then you have probably wrong configuration of XSPICE extensions for Ngspice. If you are using build Ngspice from source this may mean wrong configure options at compile time. |
Beta Was this translation helpful? Give feedback.
-
I am transferring this issue to discussions: https://github.com/ra3xdh/qucs_s/discussions |
Beta Was this translation helpful? Give feedback.
-
Thanks for all theses answers. I tried to open the project example, but still the same error when running the simulation :
And same using the provided vfile by ra3xdh. I'm confused, because that looks simple. I'm using the ngspice build from the Debian APT package, which is build with XSpice in : https://packages.debian.org/fr/bookworm/ngspice I tried to use backports to get a more recent version, nothing change. I'll give a try with my own compile NGspice. If not working, I will give a try to the windows version, see if it's working (I'm using appimage for Linux, try the deb package too) |
Beta Was this translation helpful? Give feedback.
-
I tried my dat file on the windows version, it works. I give a try to understand why it's not working on my debian. |
Beta Was this translation helpful? Give feedback.
-
I tried to build myself Qucs-s with Qt5 and Qt6, still not working. Try to make my own build of ngspice with xspice -> nothing change. I'm confused, looks like qucs can"t find the path of my file. Don't know what to do to get more infos about what happen (I tried to get a look to the source code in order to add flags or others feedback, but the code is too complex for my knowledge). |
Beta Was this translation helpful? Give feedback.
-
Last update, everythings works in a VM ubuntu 22.04 with the AppImage So I supposed thaht show a problem with my Debian 12 bookworm. |
Beta Was this translation helpful? Give feedback.
-
I finally find a way to make it works ! If I put my DAT file in my ~/.qucs (an not a sub folder inside this folder) side by side with my .sch file, everything is ok ! It looks like a problem of path handling... Not sure to understand what happen. I can reproduce this behavior in my VM with Ubuntu, if I placed everything in a subfolder, the qucs can't open the DAT file (but show a message with the correct path "can't open file"). |
Beta Was this translation helpful? Give feedback.
-
I didn't observe path problem with file source. Qucs-S accepts bot relative and absolute paths on my machine. Try to specify the absolute path in the file source parameters. |
Beta Was this translation helpful? Give feedback.
-
Hello, I tried absolute and relative path. and finally I understood my problem ; relative path are define from ~/.qucs folder, not relative to the placement of the .sch and that confused me. Thanks a lot to take time to help me. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the File Based Voltage Source (on Debian 12), but impossible to make it work. I tried to simplify at max the .sch, see the picture.
I have errors "Instance: av1 Message: cannot open file", and my table in the DAT file is not loaded (get message "Warning from checkvalid: vector _net0 is not available or has zero length." that's seems to show that my table is not loaded).
And still get this error, and no table loaded. I tried to change my DAT format (use comma separated, space separated CSV, etc) cant' make it work. Impossible to get it work...
Here is my file (as txt to be uploaded) : vfile.dat.txt
I can't find documentation about this feature, the things I find about QUCS are not working. Is it a bug or I'm doing wrong ? If so, is there a working example ?
Thanks for any clue on that.
And a big thanks for these software which is really nice to use (it's really an improvement compare to other software I used in the past)
Beta Was this translation helpful? Give feedback.
All reactions