Home Forums Development Run circuit in the command line? Reply To: Run circuit in the command line?

#1010
zhu
Participant

    qs_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).