Re: In matlab - HFSS API.. discrete sweep question
时间:03-31
整理:3721RD
点击:
Hi,
The api on the following link: https://www.cresis.ku.edu/~rvc/proje...atlab-api.html
has only a function for the interpolating sweep implemented. but i need a discrete sweep on a single freq.. and i cnt seem to change that in the script file of the function.
There are too many to change, plus i do not now what will the function need as inputs..
And urgent helping hand here anyone?
Regards
Added after 34 minutes:
This is what i commented and changed in the function.. (compared to a script file a recorded while making a discrete sweep).
fprintf(fid, '\n');
fprintf(fid, 'Set oModule = oDesign.GetModule("AnalysisSetup")\n');
fprintf(fid, 'oModule.InsertFrequencySweep _\n');
fprintf(fid, '"%s", _\n', SolutionName);
fprintf(fid, 'Array("NAME:%s", _\n', Name);
fprintf(fid, '"IsEnabled:=", true, _\n');
fprintf(fid, '"Type:=", "Discrete", _\n');
%fprintf(fid, '"InterpTolerance:=", %f, _\n', iTol);
%fprintf(fid, '"InterpMaxSolns:=", %d, _\n', nMaxSols);
fprintf(fid, '"SetupType:=", "SinglePoints", _\n');
%fprintf(fid, '"StartFreq:=", "%fGHz", _\n', fStartGHz);
%fprintf(fid, '"StopFreq:=", "%fGHz", _\n', fStopGHz);
%fprintf(fid, '"Count:=", %d, _\n', nPoints);
fprintf(fid, '"ValueList:=", Array("912MHz"), _\n');
fprintf(fid, '"SaveFieldsList:=", Array(false), _\n');
fprintf(fid, '"ExtrapToDC:=", false)\n');
The api on the following link: https://www.cresis.ku.edu/~rvc/proje...atlab-api.html
has only a function for the interpolating sweep implemented. but i need a discrete sweep on a single freq.. and i cnt seem to change that in the script file of the function.
There are too many to change, plus i do not now what will the function need as inputs..
And urgent helping hand here anyone?
Regards
Added after 34 minutes:
This is what i commented and changed in the function.. (compared to a script file a recorded while making a discrete sweep).
fprintf(fid, '\n');
fprintf(fid, 'Set oModule = oDesign.GetModule("AnalysisSetup")\n');
fprintf(fid, 'oModule.InsertFrequencySweep _\n');
fprintf(fid, '"%s", _\n', SolutionName);
fprintf(fid, 'Array("NAME:%s", _\n', Name);
fprintf(fid, '"IsEnabled:=", true, _\n');
fprintf(fid, '"Type:=", "Discrete", _\n');
%fprintf(fid, '"InterpTolerance:=", %f, _\n', iTol);
%fprintf(fid, '"InterpMaxSolns:=", %d, _\n', nMaxSols);
fprintf(fid, '"SetupType:=", "SinglePoints", _\n');
%fprintf(fid, '"StartFreq:=", "%fGHz", _\n', fStartGHz);
%fprintf(fid, '"StopFreq:=", "%fGHz", _\n', fStopGHz);
%fprintf(fid, '"Count:=", %d, _\n', nPoints);
fprintf(fid, '"ValueList:=", Array("912MHz"), _\n');
fprintf(fid, '"SaveFieldsList:=", Array(false), _\n');
fprintf(fid, '"ExtrapToDC:=", false)\n');