Skip to content
Snippets Groups Projects
Commit 98644650 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

When read a .tsgqc file, if exist read Labview configuration file .ini to get metadata

parent 9c4890ad
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,35 @@ automaticQC( hMainFig );
tsg.file.type = 'ASCII';
% check if .ini file exist in data
% --------------------------------
file_ini = fullfile(tsg.file.pathstr, strcat(tsg.file.name, '.ini'));
% check if filename exist and should be open in read mode
% -------------------------------------------------------
file_ini_id = fopen(file_ini, 'r');
if (file_ini_id ~= -1)
% display information on command window
% --------------------------------------
fprintf('\n...reading %s : ', file_ini);
% Save the data in the application GUI
% ------------------------------------
setappdata( hMainFig, 'tsg_data', tsg );
% read .ini file
% --------------
readTsgIniLabview(hMainFig, file_ini_id);
% Get the tsg struct from the application GUI
% -------------------------------------------
tsg = getappdata( hMainFig, 'tsg_data');
end
% Save the data in the application GUI
% ------------------------------------
setappdata( hMainFig, 'tsg_data', tsg );
......
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