% PID1 - zapis danych

Dane.time=ScopeData.time;
Dane.w=ScopeData.signals(1).values;
Dane.u=ScopeData.signals(2).values;
Dane.pos=ScopeData.signals(3).values;
Dane.vel=ScopeData.signals(4).values;
Dane.voltage=ScopeData.signals(5).values;
Dane.current=ScopeData.signals(6).values;

figure
plot(Dane.time,Dane.u,Dane.time,Dane.current,Dane.time,Dane.voltage);grid
legend('u','current','voltage');

figure
plot(Dane.time,Dane.w,Dane.time,Dane.pos,Dane.time,Dane.vel);grid
legend('w','pos','vel');


figure
plot(Dane.time,Dane.pos,Dane.time,Dane.w);grid
legend('pos','w');


save('PDEksp.mat','Dane');
