diff options
author | Siddhesh Wani | 2015-05-25 14:46:31 +0530 |
---|---|---|
committer | Siddhesh Wani | 2015-05-25 14:46:31 +0530 |
commit | 6a320264c2de3d6dd8cc1d1327b3c30df4c8cb26 (patch) | |
tree | 1b7bd89fdcfd01715713d8a15db471dc75a96bbf /2.3-1/macros/runscicode.sci | |
download | Scilab2C-6a320264c2de3d6dd8cc1d1327b3c30df4c8cb26.tar.gz Scilab2C-6a320264c2de3d6dd8cc1d1327b3c30df4c8cb26.tar.bz2 Scilab2C-6a320264c2de3d6dd8cc1d1327b3c30df4c8cb26.zip |
Original Version
Diffstat (limited to '2.3-1/macros/runscicode.sci')
-rw-r--r-- | 2.3-1/macros/runscicode.sci | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/2.3-1/macros/runscicode.sci b/2.3-1/macros/runscicode.sci new file mode 100644 index 00000000..94b76a17 --- /dev/null +++ b/2.3-1/macros/runscicode.sci @@ -0,0 +1,67 @@ +function runscicode(UserScilabMainFile, UserSciFilesPaths) +// function runscicode(SCI2CInputPrmFile) +// ----------------------------------------------------------------- +// === hArtes/PoliBa/GAP SCI2C tool === +// === Authors: === +// === Raffaele Nutricato === +// === raffaele.nutricato@tiscali.it === +// === Alberto Morea === +// +// Run the code written by the user before translating it. +// +// Input data: +// --- +// Output data: +// --- +// +// Status: +// 11-Apr-2007 -- Raffaele Nutricato: Author. +// +// Copyright 2007 Raffaele Nutricato. +// Contact: raffaele.nutricato@tiscali.it +// ----------------------------------------------------------------- + +// ------------------- +// --- Soft reset. --- +// ------------------- +//mode(-1); +//clc; +// ----------------------- +// --- End Soft reset. --- +// ----------------------- + +// ------------------------- +// --- Input Parameters. --- +// ------------------------- +//RunSci2CMainDir = pwd(); +// ----------------------------- +// --- End input Parameters. --- +// ----------------------------- + +//cd(fullfile(RunSci2CMainDir,'ToolInitialization')); +//exec('INIT_SCI2CLoader.sce'); +//cd(RunSci2CMainDir); + +// --- Read user parameters. --- +//exec(SCI2CInputPrmFile); + +// --- Add all user paths. --- +for cntpath = 1:size(UserSciFilesPaths,1) + getd(UserSciFilesPaths(cntpath)); +end + +// --- Execute code. --- +disp('-----------------------------------'); +disp('--- Executing your SCILAB code. ---'); +disp('-----------------------------------'); +exec(UserScilabMainFile); +[tmppath,tmpfile,tmpext] = fileparts(UserScilabMainFile); +//cd(tmppath); +execstr(tmpfile); +//cd(RunSci2CMainDir); +disp('------------------------------------------'); +disp('--- End Execution of your SCILAB code. ---'); +disp('------------------------------------------'); + + +endfunction
\ No newline at end of file |