ShotNo=34251
baseURL='http://golem.fjfi.cvut.cz/shots/';
diagnPATH='/DASs/StandardDAS/LoopVoltageCoil_raw.csv';
%Create a path to data
dataURL=strcat(baseURL,int2str(ShotNo),diagnPATH); 
% Write data from GOLEM server to a local file
urlwrite(dataURL,'LoopVoltage');
% Load data
data = load('LoopVoltage', '\t'); 
% Plot and save the graph 
f = figure('visible', 'off');
hold on
plot(data(:,1)*1000, data(:,2), '.') ;
xlabel('Time [ms]')
ylabel('U_l [V]')
hold off
print -djpeg plot.jpg
close(f)
exit;

