Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Lampiran 1

Skematik Trafo Pengujian

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

function [maxtab, mintab]=peakdet(v, delta, x)

maxtab = [];
mintab = [];

v = v(:); % Just in case this wasn't a proper vector

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

1. Durasi peluahan permukaan

%MENGHITUNG DURASI SINYAL PELUAHAN PERMUKAAN


%----------------------------------------------------------------%

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

2. Durasi peluahan rongga

%MENGHITUNG DURASI SINYAL PELUAHAN RONGGA


%----------------------------------------------------------------%

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

%MENGHITUNG DURASI SINYAL PELUAHAN 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);

waktu = [waktu,durasi] %Time Duration

end
LAMPIRAN 4

1. FFT peluahan permukaan

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.0025; % Sampling frequency


L = length(data); % Length of signal
T = Fs*L; % Sample time
t = (0:L-1)*T ;% Time vector

NFFT = 2^nextpow2(L); % Next power of 2 from length of y


Y = fft(data,NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2+1);
c = 2*abs(Y(1:NFFT/2+1));

x = f(50:end); y = c(50:end); %
[~, locs] = max(y);

freq2get=[freq2get, x(locs)]; end

freq2get % all the frequency

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

NFFT = 2^nextpow2(L); % Next power of 2 from length of y


Y = fft(data,NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2+1);
c = 2*abs(Y(1:NFFT/2+1));

x = f(50:end);
y = c(50:end);
[~, locs] = max(y);

freq2get=[freq2get, x(locs)]; end

freq2get % all the frequency

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

Fs = 1/0.4; % Sampling frequency


L = length(data); % Length of signal
T = Fs*L; % Sample time
t = (0:L-1)*T ;% Time vector

NFFT = 2^nextpow2(L); % Next power of 2 from length of y


Y = fft(data,NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2+1);
c = 2*abs(Y(1:NFFT/2+1));

x = f(50:end);
y = c(50:end);
[~, locs] = max(y);

freq2get=[freq2get, x(locs)]; end

freq2get % all the frequency

figure, plot(freq2get,'o-r')
title('frequency for all sampling files')
LAMPIRAN 5

Jenis gelombang peluahan sebagian

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

a. Peluahan jenis permukaan b. Peluahan jenis rongga

50

40

30

20

10

-10
0 500 1000 1500 2000 2500

c. Peluahan korona

Gambar Magnitudo peluahan permukaan(a), rongga(b) dan korona(c).


LAMPIRAN 6

FFT peluahan sebagian

a. FFT peluahan permukaan b. FFT peluahan rongga

c. FFT korona

You might also like