diff options
author | jofret | 2009-04-28 07:11:01 +0000 |
---|---|---|
committer | jofret | 2009-04-28 07:11:01 +0000 |
commit | b22f596ce449869bffd8e0f63baee1c53e20fa06 (patch) | |
tree | 24e5c3ca47f535b5340a969edf31b774b356848b /macros/LaunchRunSCI2C.sci | |
parent | f96b66fe2423831bcad2f141469de6805364d019 (diff) | |
download | scilab2c-b22f596ce449869bffd8e0f63baee1c53e20fa06.tar.gz scilab2c-b22f596ce449869bffd8e0f63baee1c53e20fa06.tar.bz2 scilab2c-b22f596ce449869bffd8e0f63baee1c53e20fa06.zip |
Moving macros here
Diffstat (limited to 'macros/LaunchRunSCI2C.sci')
-rw-r--r-- | macros/LaunchRunSCI2C.sci | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/macros/LaunchRunSCI2C.sci b/macros/LaunchRunSCI2C.sci new file mode 100644 index 00000000..a686b71d --- /dev/null +++ b/macros/LaunchRunSCI2C.sci @@ -0,0 +1,39 @@ +// Before launching this script, please +// check all the paths below. +// User should change parameters only in (USER PARAMETERS) sections. +// cd C:\SCI2CTests\SCI2CRuns; exec LaunchRunSCI2C.sci + +function sci2c() +// --- CLEAN WORKSPACE --- +exec full_reset.sce; +//mode(-1); + +// --- GENERAL SETTINGS (USER PARAMETERS) --- +RunsDirectory = pwd(); // Path of the SCI2CRuns directory + +SCI2CDirectory = '.'; + +// --- SPECIFIC SETTINGS (USER PARAMETERS) --- +SCI2CInputPrmFileName = '../SCI2CTests/test999_WorkingDir/SCI2CInputParameters.sce'; + +// --- LAUNCH USER SCI CODE TO TEST IT BEFORE TRANSLATING IT!!! --- +cd(SCI2CDirectory) +getf("runscicode.sci"); +runscicode(SCI2CInputPrmFileName); + +// --- ASK USER FOR CONTINUATION. --- +userchoice = input('Start translation [y/n]?','s'); +if (userchoice == 'y') + // --- LAUNCH SCI2C --- + cd(SCI2CDirectory); + getf("runsci2c.sci"); + runsci2c(SCI2CInputPrmFileName); + cd(SCI2CDirectory); +end + +// --- GO BACK TO THE ORIGINAL DIRECTORY. --- +cd (RunsDirectory); + +// --- CLOSE ALL FILES. --- +mclose('all'); +endfunction
\ No newline at end of file |