Skip to content
Snippets Groups Projects
Commit 3e9f38a1 authored by Francesco Carpanese's avatar Francesco Carpanese
Browse files

added the power supply

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@11399 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 08b751b2
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ function [ids_pf_active,ids_description,varargout] = tcv_get_ids_pf_active(shot,
% Get subfield
[ids_pf_active.coil]= tcv_get_ids_coil(params.shot, ids_pf_active.coil(1));
[ids_pf_active.circuit]= tcv_get_ids_circuit(params.shot, ids_pf_active.circuit(1));
[ids_pf_active.supply]= tcv_get_ids_supply(params.shot, ids_pf_active.supply(1));
%% Temporarely
......
function [ids_struct_out] = tcv_get_ids_supply(shot, ids_structures)
%% TODO
mdsopen(shot)
%% Get power supply/coils names for each circuit.
[tcv_circuit_info] = tcv_ids_pf_active_definition();
% Preallocate memory and get data
ids_struct_out(1:tcv_circuit_info.ntotpowersupplies) = ids_structures;
for ii=1:tcv_circuit_info.ntotpowersupplies
tmpdata = tdi(tcv_circuit_info.mds_paths{ii}); % Get current
ids_struct_out{ii}.current.data = abs(tmpdata.data);
ids_struct_out{ii}.current.time = tmpdata.dim{1};
ids_struct_out{ii}.name = tcv_circuit_info.power_supply_names{ii};
end
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