Professional Documents
Culture Documents
Lampiran 1 Skematik Trafo Pengujian: Keterangan: - Trafo Step Up - Input: 220 Volt, 5 A, 50 HZ - Output: 5 KV, 20 Ma
Lampiran 1 Skematik Trafo Pengujian: Keterangan: - Trafo Step Up - Input: 220 Volt, 5 A, 50 HZ - Output: 5 KV, 20 Ma
Kumparan
Kumparan Sekunder
Primer
Keterangan :
- Trafo Step Up
- Input : 220 Volt, 5 A, 50 Hz
- Output : 5 kV, 20 Ma
Fasa
AC
5 kV
220 v Netral
Ground
LAMPIRAN 2
1. Load data
%Menghitung Besarnya Amplitudo Peluahan
%================================================
function [x1,x2,x3]=Dataload_P(ns);
% ns = Jumlah Sampel
ns=85
% x1 = Sumber peluahan permukaan
% x2 = Sumber peluahan rongga
% x3 = Sumber corona
% ===============================================
% Signal Loading
% ===============================================
cd C:\data1
i = 1;
while (i < 10)
a = load(strcat((48 + i),'.txt'));
x1(:,i) = a(1:2500,1);
i = i+1;
end
while (i <= ns)
a = load(strcat((floor(i/10)+48),(mod(i,10)+48),'.txt'));
x1(:,i) = a(1:2500,1);
i = i+1;
end
cd C:\data2
i = 1;
while (i < 10)
a = load(strcat((48 + i),'.txt'));
x2(:,i) = a(1:2500,1);
i = i+1;
end
while (i <= ns)
a = load(strcat((floor(i/10)+48),(mod(i,10)+48),'.txt'));
x2(:,i) = a(1:2500,1);
i = i+1;
end
cd C:\data3
i = 1;
while (i < 10)
a = load(strcat((48 + i),'.txt'));
x3(:,i) = a(1:2500,1);
i = i+1;
end
while (i <= ns)
a = load(strcat((floor (i/10)+48),(mod(i,10)+48),'.txt'));
x3(:,i) = a(1:2500,1);
i = i+1;
end
2. Mendeteksi puncak magnitudo
maxtab = [];
mintab = [];
if nargin < 3
x = (1:length(v))';
else
x = x(:);
if length(v)~= length(x)
error('Input vectors v and x must have same length');
end
end
if (length(delta(:)))>1
error('Input argument DELTA must be a scalar');
end
if delta <= 0
error('Input argument DELTA must be positive');
end
mn = Inf; mx = -Inf;
mnpos = NaN; mxpos = NaN;
lookformax = 1;
for i=1:length(v)
this = v(i);
if this > mx, mx = this; mxpos = x(i); end
if this < mn, mn = this; mnpos = x(i); end
if lookformax
if this < mx-delta
maxtab = [maxtab ; mxpos mx];
mn = this; mnpos = x(i);
lookformax = 0;
end
else
if this > mn+delta
mintab = [mintab ; mnpos mn];
mx = this; mxpos = x(i);
lookformax = 1;
end
end
end
3. Menghitung magnitudo
% Jumlah Sampel
ns=85
% Nilai Threshold
thr=0.25
% Data loading
[x1,x2,x3]=Dataload_P(ns);
% ++++++++++++++++++++++++++++++++++++++++++++++++++
% Menghitung Nilai Magnitude Tegangan
% ++++++++++++++++++++++++++++++++++++++++++++++++++
%===================================================
% x1
for i=1:ns
xx1(:,i)=((abs(x1(:,i))));
disp(xx1)
end
for i=1:ns
[maxtab] = peakdet(xx1(i,:), thr);
end
% x2
for i=1:ns
xx2(:,i)=((abs(x2(:,i))));
disp(xx2)
end
for i=1:ns
[maxtab] = peakdet(xx2(i,:), thr);
end
% x3
for i=1:ns
xx3(:,i)=((abs(x3(:,i))));
disp(xx3)
end
for i=1:ns
[maxtab] = peakdet(xx3(i,:), thr);
end
LAMPIRAN 3
t = 6; %Tresholding signal
ns = 85; %data of signal
waktu = []; %Variable to show duration
for i=1:ns
a = load(strcat(num2str(i),'.txt'));
b = abs(a);
c = (b>t);
d = sum(c);
durasi = d
waktu = [waktu,durasi] %Time Duration
end
t = 5; %Tresholding signal
ns = 85; %data of signal
waktu = []; %Variable to show duration
for i=1:ns
a = load(strcat(num2str(i),'.txt'));
b = abs(a);
c = (b>t);
d = sum(c);
durasi = d
waktu = [waktu,durasi] %Time Duration
end
3. Durasi korona
t = 9; %tresholding signal
ns = 85; %sample of signal
waktu = []; %Variable to show duration
for i=1:ns
a = load(strcat(num2str(i),'.txt'));
a = (a>t); % Tresholding Data
durasi = sum(a);
end
LAMPIRAN 4
close all
ind = [1:85];
freq2get=[];
for i=1:85
str = [num2str(ind(i)) '.txt'];
data = load(str); % to read the data
x = f(50:end); y = c(50:end); %
[~, locs] = max(y);
figure, plot(freq2get,'o-r')
title('frequency for all sampling files')
2. FFT peluahan rongga
close all
ind = [1:85];
freq2get=[];
for i=1:85
str = [num2str(ind(i)) '.txt'];
data = load(str); % to read the data
Fs = 1/0.005; % Sampling frequency
L = length(data); % Length of signal
T = Fs*L; % Sample time
t = (0:L-1)*T ;% Time vector
x = f(50:end);
y = c(50:end);
[~, locs] = max(y);
figure, plot(freq2get,'o-r')
title('frequency for all sampling files')
3. FFT korona
close all
ind = [1:85];
freq2get=[];
for i=1:85
str = [num2str(ind(i)) '.txt'];
data = load(str); % to read the data
x = f(50:end);
y = c(50:end);
[~, locs] = max(y);
figure, plot(freq2get,'o-r')
title('frequency for all sampling files')
LAMPIRAN 5
40 40
30 30
20 20
10 10
0 0
-10 -10
-20 -20
-30 -30
-40 -40
0 500 1000 1500 2000 2500 0 500 1000 1500 2000 2500
50
40
30
20
10
-10
0 500 1000 1500 2000 2500
c. Peluahan korona
c. FFT korona