Commit 0ba81077 authored by Lukas Aspöck's avatar Lukas Aspöck

added methods for keeping output files and setting the output folder

parent fe4c1c90
......@@ -28,8 +28,8 @@ classdef itaRavenProject < handle
% rpf.getT30(); get T30 based on simulation
% rpf.plotMaterialsAbsorption(); plots absorption coefficients
%
% Author: Soenke Pelzer (spe@akustik.rwth-aachen.de)
% Lukas Aspck (las@akustik.rwth-aachen.de)
% Author: Soenke Pelzer (spe@akustik.rwth-aachen.de)
% Lukas Aspck (las@akustik.rwth-aachen.de)
%
% Version: 0.2
% First release: 01.11.10
......@@ -560,6 +560,21 @@ classdef itaRavenProject < handle
end
%------------------------------------------------------------------
function keepImpulseResponseFiles(obj, keepFiles)
% keepImpulseResponseFiles
%
% By default, RAVEN Impulse Responses are deleted from the hard disk
% after simulation and are only available in your rpf project
%
% By setting keepOutFiles to 1 / true, results are kept in
% the Output-Folder (obj.pathResults)
obj.keepOutputFiles = keepFiles;
obj.rpf_ini.SetValues('Global', 'keepOutputFiles', keepFiles);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function openOutputFolder(obj)
% opens the output folder in windows explorer
......@@ -1655,6 +1670,27 @@ classdef itaRavenProject < handle
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setOutputPath(obj, path)
%
% setOutputPath(path)
%
% Set the RAVEN output path. If you keep the output files
% (cf. keepOutputFiles variable / method keepOutputFiles),
% Impulse Responses as wave files are stored here :
% <projectName>/<date>/<time>/<IRtype>)
%
% Absorption and scattering plots are also saved here.
%
% Use method openOutputFolder to open result folder.
%
obj.pathResults = path;
obj.rpf_ini.SetValues('Global', 'ProjectPath_Output', path);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setMaterialDatabasePath(obj, path)
%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment