Forum Replies Created
-
AuthorPosts
-
14. September 2023 at 14:08 in reply to: Model analysis and SPICE parameter extraction with QucsStudio #7715
zhu
Participant…and the SCH
Attachments:
14. September 2023 at 12:57 in reply to: Model analysis and SPICE parameter extraction with QucsStudio #7711zhu
ParticipantThis is a v4.3.1 simulation trial with the QucsStudio implemented hicumL2V2p33 (same result with v4.4.2). There are 3 filter boxes on the schematic but neither works. Eqn. filter3 runs fine with the updated v3.3.2 EXE file of Michael.
Attachments:
13. September 2023 at 14:20 in reply to: Model analysis and SPICE parameter extraction with QucsStudio #7710zhu
ParticipantApparently, named node variables can not be used in equations. E.g. U=1-VBE.V-VBE.V and similar throws error in the new revisions therefore we are restricted to use v3.3.2. Originally, the same issue existed in v3.3.2 as well until we were sent an updated EXE file (to D. Celi) by Michael. Hopefully, the issue would be fixed from the next release on.
zhu
ParticipantSuch an extension would really be a contribution to convenience. Admittedly somewhat more laborious, the present link to Octave is quite powerful. One can easliy read and write data with the provided *.m functions.
Until this proposal is considered it can also be suggested to utillize the log.txt file which can contain even more data. For example the output of the $strobe() functions placed in a VA code is piped to this file. One can access its content by an Octave routine constructed by the User. The reader can collect the data to a *.CSV file which can be converted to a standard *.DAT file by qucsconv.exe. An additional strong link provided by the tool.
zhu
ParticipantHi Carsten,
The task has a minimum of Re(Z)=0.2 at c1=0 independent of L1. It is confirmed by plotting the analythical result. However computing with real(Z) form simulations a totally different (noisy) plot is obtained. It is not a QucsStudio issue: the same results arise from Octave and Matlab as well. The oscillating optimization results may also have the same origin.
Any idea?
zhu
ParticipantResent in *.png
Attachments:
zhu
ParticipantModify the *.txt extension to *.pdf. This is a weakly determined task.
zhu
ParticipantQucsStudio is able to optimize several parameters at a time.
zhu
ParticipantToday, vectors do not accept symbolic arguments. I reported it some times ago in the Forum.
zhu
ParticipantHi,
This would really be useful option. Now we have to remake the whole library by adding all previous PLUS the new component(s).
zhu
ParticipantSee Chapter 5.3, Tutorial Part 1.
Download: qucsstudio Tutorial part 1 (Time and Frequency simulation) as pdf-File, status quo = 230 pages from March 9th, 2016
Download: qucsstudio Tutorial part 2 (Harmonic Balance simulations) as pdf-File, status quo = 51 pages from January 1st,2016
zhu
Participantfgsolve.m (*.txt renamed) is an example Octave routine for running a Qucsstudio simulation and importing the results in the Octave domain. The netlist.txt to be invoked must be prepared by the User. The simplest way is to draw the scematic and running it. netlist.txt is automatically placed in the user directory. Next, qucssim.exe is invoked in DOS with the specified input and output files. The results are made available for Octave by the standard function loadQucsVariable.m.
zhu
ParticipantI had similar a problem when the SCH included blank (empty) lines.
– copy the SCH to an arbitrary folder outside qucs_home.
– open the SCH file and delete all blank lines.
– save, close and copy it bact to the prj folder of the v4.2.2 environment.
zhu
ParticipantTo my knowledge there is no such command (yet) in QucsStudio. However there is a possibility to run SCH-s from, and return data to Octave.
%outfile=fullfile(‘”C:\Documents and Settings\zhu\qucs3\model_prj”‘,’model.dat’);
%outfile=fullfile(‘C:\Documents and Settings\zhu\qucs3\model_prj’,’model.dat’);
outfile=’model.dat’;Neither of the commented lines work for resolving the problem of spaces in paths. Interestingly,
infile=fullfile(‘”C:\Documents and Settings\zhu\qucs3″‘,’netlist.txt’);
works for the input file.
There must exist a solution I do not know of.
zhu
Participantqs_bin=getenv(‘qucs3_bin’); %environmental variable
qs_prj=getenv(‘qs_prj’); %environmental variable
qsfun=fullfile(qs_bin,’qucssim.exe’);
infile=fullfile(qs_prj,’netlist.txt’);
outfile=fullfile(qs_prj,’model.dat’);
%call Qucssim simulator
dostxt=[qsfun,’ -a ‘,infile,’ ‘,outfile, ‘>nul’];
dos(dostxt);The following error message appears:
Error: Wrong netlist line format ‘QucsData’ (line 1).
Using the original netlist created by QucsStudio the following error message appears:
Error: Wrong netlist line format ‘QucsData’ (line 1).
-
AuthorPosts