Skip to content
Snippets Groups Projects

add new array of gas traces and add source for rtc request

Merged Olivier Sauter requested to merge add_gas_fluxes into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -1373,10 +1373,11 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
@@ -1373,10 +1373,11 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
gdat_data_data_refs{i}.data_fullpath = params_eff.data_request;
gdat_data_data_refs{i}.data_fullpath = params_eff.data_request;
end
end
params_eff.data_request = sprintf('\\atlas::top.system.gas.valve_0%.2d:flow',i);
params_eff.data_request = sprintf('\\atlas::top.system.gas.valve_0%.2d:flow',i);
gasrequest = gdat_tcv(gdat_data.shot,params_eff); gasrequest.units = 'V';
gasrequest = gdat_tcv(gdat_data.shot,params_eff);
gdat_data_data{i} = gasrequest;
gdat_data_data{i} = gasrequest;
if ~isempty(gasrequest.t) && isempty(gdat_data.t) % copy 1st non-empty
if ~isempty(gasrequest.t) && isempty(gdat_data.t) % copy 1st non-empty
gdat_data.units = gasrequest.units;
gdat_data.units = gasrequest.units;
 
if isempty(strtrim(gdat_data.units)), gdat_data.units = 'particles/s'; end
gdat_data.t = gasrequest.t;
gdat_data.t = gasrequest.t;
gdat_data.data_fullpath = gasrequest.data_fullpath;
gdat_data.data_fullpath = gasrequest.data_fullpath;
end
end
Loading