Skip to content
Snippets Groups Projects
Commit a7d97366 authored by Cristian Galperti's avatar Cristian Galperti
Browse files

automatic MARTe2 cfg generator begun

parent 7fbb09e9
No related branches found
No related tags found
No related merge requests found
*.cfg
% This script created a testabe
% MARTe2 cfg file for the template algorithm
% with these specifications:
%
% tunable parameters MDSplus link via MDSObjLoader instatiation
% tunable waveforms MDSplus link via MDSObjWavegen instantiation
% single realtime thread, LinuxTimer synched at 1kHz
% algorithms output MDSplus link via standard MDSWriter
startpath=pwd;
fcnpath=fileparts(mfilename('fullpath'));
eval(sprintf('cd %s',fcnpath));
%% Preclean
system('rm -rf mdsparameters.cfg');
system('rm -rf mdswavegen.cfg');
%% MDSParameters part generation
diary mdsparameters.cfg
obj.printMARTe2parconfig(-1);
diary off
system('sed -i ''s/obj.printMARTe2parconfig(-1);//g'' mdsparameters.cfg');
%% MDSWavegen datasource part generation
diary mdswavegen.cfg
obj.printMARTe2wgbusconfig(-1,'algo_template_inBus',1000);
diary off
system('sed -i ''s/obj.printMARTe2wgbusconfig(-1,''algo_template_inBus'',1000);//g'' mdswavegen.cfg');
%% Input bus expansion
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment