You are on page 1of 54

UNIVERSIDAD DE CUENCA

Medicin de Impedancias
Mtodos de Medicin de Inductancias

22 de Diciembre del 2014

Karla Genovez.
Bryan Urea.

OBJETIVOS:
El objetivo principal de los mtodos aplicados en este trabajo es determinar el
valor de la inductancia y determinar cul de ellos es el ms preciso.
SUSTENTO TEORICO:
Mtodo de Joubert:
El mtodo de Joubert consiste en dos partes, la primera se basa en
aplicar a la impedancia una tensin de Corriente Continua y medir su
parte resistiva aplicando la ley de Ohm. La segunda parte consiste en
aplicar a la impedancia una tensin de Corriente Alterna y medir su
mdulo aplicando tambin la ley de Ohm, luego aplicando una formula
despejamos de la impedancia el valor de la inductancia.
Continua

Impedancia

Alterna

Reactancia

Inductancia

Figura 1. Esquema de conexin del Mtodo de Joubert.

Mtodo de los tres Voltmetros:


Para efectuar la medida de la diferencia de potencial el voltmetro se
debe colocar en paralelo, esto es, en derivacin sobre los puntos entre
los que se trata de efectuar la medida. El esquema correspondiente a
este mtodo en donde

es una resistencia de valor conocido y Z la

impedancia que se desea medir.

Figura 2. Esquema de conexin del Mtodo de los 3 Voltmetros.

Las expresiones aproximadas que se obtienen del esquema presentado


considerando que los voltmetros se comportan idealmente son las
siguientes:

Despejando de las ecuaciones R y X se obtiene lo siguiente:


[( )

( )

( )

Procedimiento:

Conectar el esquema correspondiente a este mtodo a la fuente


de alimentacin de CA.

Realizar el procedimiento de la medicin de la bobina a tres


niveles distintos de tensin por el voltmetro conectado a la
impedancia que se desea medir.

Anotar las medidas de los voltmetros correspondientes a cada


caso y con las expresiones obtenidas para este mtodo calcular
los valores de las bobinas

Mtodos de los tres Ampermetros:


Este mtodo consiste en conectar en paralelo con la impedancia de
carga Z una resistencia pura R de valor conocido y medir las tres
intensidades de corriente que circulan por el circuito, es decir:
a) La corriente que circula por la impedancia (IZ )
b) La corriente que circula por la resistencia patrn (IR).
c) La corriente total (IT )
Para efectuar la medida de la intensidad de la corriente circulante el
ampermetro ha de colocarse en serie, para que sea atravesado por
dicha corriente. Esto lleva a que el ampermetro debe poseer una
resistencia interna lo ms pequea posible, a fin de que no produzca
una cada de tensin apreciable.

El esquema correspondiente a este mtodo en donde

es una

conductancia de valor conocido e Y la admitancia que se desea medir.

Figura 3. Esquema de conexin del Mtodo de los 3 Ampermetros.

Las expresiones aproximadas que se obtienen del esquema presentado


considerando que los ampermetros se comportan idealmente son las
siguientes:

Despejando de las ecuaciones G y B se obtiene lo siguiente:


[( )

( )

( )

PROCEDIMIENTO EN LA CONSTRUCCION DE LA BOBINA:


Clculos realizados para el diseo:
L: inductancia
u0: permeabilidad magntica del espacio
N: nmero de vueltas
A: rea de la seccin transversal
r: radio de la seccin transversal de la bobina
l: longitud de la bobina
: resistividad del material
R: resistencia elctrica de la bobina
l: longitud del cable
S: rea de la seccin del cable
P: permetro de la seccin transversal de la bobina

Figura 4. Esquema de
diseo de la bobina.

Graficas de la bobina construida:

Figura 5. Bobina Construida

Figura 6. Bobina Construida

SIMULACION EN PSPICE DE LOS TRES METODOS:


Graficas de los circuitos y mediciones realizadas en PSpice
Mtodo de Joubert
Las

ondas

en

tensin

alterna

tienen

siempre

el

siguiente

comportamiento:

Figura 7. Formas de onda del circuito alimentado por tensin


alterna.
Imgenes de la simulacin en Pspice utilizando el mtodo de Joubert:

Figura 8.

Esquema de conexin de la primera medicin con el

Mtodo de Joubert.

Figura 9. Medicin de la Corriente.

Figura 10. Medicin del Voltaje.

Figura 11.

Esquema de conexin de la segunda medicin con el

Mtodo de Joubert.

Figura 12. Medicin de la Corriente.

Figura 13. Medicin del Voltaje.

Figura 14.

Esquema de conexin de la tercera medicin con el

Mtodo de Joubert.

Figura 15. Medicin de la Corriente.

Figura 16. Medicin del Voltaje.

Mtodo de los tres Voltmetros


Las

ondas

en

tensin

alterna

tienen

siempre

el

siguiente

comportamiento:

Figura 17. Formas de onda del circuito alimentado por tensin


alterna.
Imgenes de la simulacin en PSpice utilizando el mtodo de los 3
Voltmetros:

Figura 18. Esquema de conexin de la primera medicin con el


Mtodo de los 3 Voltmetros.

Figura 19. Medicin del Voltaje V1.

Figura 20. Medicin del Voltaje V2.

Figura 21. Medicin del Voltaje V3.

Figura 22. Esquema de conexin de la segunda medicin con el


Mtodo de los 3 Voltmetros.

Figura 23. Medicin del Voltaje V1.

Figura 24. Medicin del Voltaje V2.

Figura 25. Medicin del Voltaje V3.

Figura 26. Esquema de conexin de la tercera medicin con el


Mtodo de los 3 Voltmetros.

Figura 27. Medicin del Voltaje V1.

Figura 28. Medicin del Voltaje V2.

Figura 29. Medicin del Voltaje V3.


Mtodo de los tres Ampermetros
Las

ondas

en

tensin

alterna

tienen

siempre

el

siguiente

comportamiento:

Figura 30. Formas de onda del circuito alimentado por tensin


alterna.
Imgenes de la simulacin en PSpice utilizando el mtodo de los 3
Ampermetros:

Figura 31. Esquema de conexin de la primera medicin con el


Mtodo de los 3 Ampermetros.

Figura 32. Medicin de la Corriente I1.

Figura 33. Medicin de la Corriente I2.

Figura 34. Medicin de la Corriente I3.

Figura 35. Esquema de conexin de la segunda medicin con el


Mtodo de los 3 Ampermetros.

Figura 36. Medicin de la Corriente I1.

Figura 37. Medicin de la Corriente I2.

Figura 38. Medicin de la Corriente I3.

Figura 39. Esquema de conexin de la tercera medicin con el


Mtodo de los 3 Ampermetros.

Figura 40. Medicin de la Corriente I1.

Figura 41. Medicin de la Corriente I2.

Figura 42. Medicin de la Corriente I3.


Graficas de la ejecucin del programa realizado en Matlab utilizando los
datos de las simulaciones
Mtodo de Joubert

Figura 43. Ejecucin del Programa en Matlab con los Datos de las
imgenes 8,9 y 10.

Figura 44. Ejecucin del Programa en Matlab con los Datos de las
imgenes 11, 12 y 13.

Figura 46. Ejecucin del Programa en Matlab con los Datos de las
imgenes 14,15 y 16.

Mtodo de los tres Voltmetros

Figura 47. Ejecucin del Programa en Matlab con los Datos de las
imgenes 18, 19, 20 y 21.

Figura 48. Ejecucin del Programa en Matlab con los Datos de las
imgenes 22, 23, 24 y 25.

Figura 49. Ejecucin del Programa en Matlab con los Datos de las
imgenes 26, 27, 28 y 29.
Mtodo de los tres Ampermetros

Figura 50. Ejecucin del Programa en Matlab con los Datos de las
imgenes 31, 32, 33 y 34.

Figura 51. Ejecucin del Programa en Matlab con los Datos de las
imgenes 35, 36, 37 y 38.

Figura 52. Ejecucin del Programa en Matlab con los Datos de las
imgenes 39, 40, 41 y 42.

Tabla que muestre los valores de L y R obtenidos con los mtodos, para
los tres valores de tensin utilizados.
Tensin

Corriente

Tensin

Corriente

Resistencia

Inductancia

Continua

Continua

Alterna

Alterna

2V

0.8768 A

1.998 V

0.477 A

2.281

9.310 mH

4.9 V

2.148 A

5.096 V

1.218 A

2.281

9.309 mH

6.4 V

2.806 A

8.144 V

1.946 A

2.281

9.310 mH

Tabla 1. Resumen del Mtodo de Joubert.


Voltaje V1

Voltaje V2

Voltaje V3

Resistencia

Resistencia

Patrn

del

Inductancia

Inductor
4.5 V

1.229 V

5.299 V

16.9

2.638

10.05 mH

8.576 V

2.343 V

10.099 V

16.9

2.637

10.055 mH

12.822 V

3.503 V

15.099 V

16.9

2.637

10.054 mH

Tabla 2. Resumen del Mtodo de los 3 Voltmetros.


Corriente

Corriente

Corriente

Resistencia

Resistencia

I1

I2

I3

Patrn

del

Inductancia

Inductor
0.25 A

0.458 A

0.627 A

7.4

2.131

9.112 mH

0.55 A

1.008 A

1.397 A

7.4

2.311

8.799 mH

0.788 A

1.443 A

2A

7.4

2.310

8.799 mH

Tabla 3. Resumen del Mtodo de los 3 Ampermetros.


INDUCTANCIA

Promedio de los

Valor

Error

Valores Simulados

Calculado

Porcentual %

Mtodo de Joubert

9.3096 mH

9.2 mH

1.91%

Mtodo de los Voltmetros

10.053 mH

9.2 mH

9.27 %

Mtodo de los Ampermetros

8.903 mH

9.2 mH

3.22 %

Mtodo de Joubert

2.281

2.281

0%

Mtodo de los Voltmetros

2.637

2.281

15.61 %

Mtodo de los Ampermetros

2.251

2.281

1.32 %

RESISTENCIA

Tabla 4. Error en la inductancia y la resistencia generado por cada mtodo.

IMPLEMENTACION PRCTICA DE LOS TRES METODOS:

Grficas de las mediciones realizadas en la prctica


Mtodo de Joubert
Imgenes de las mediciones obtenidas por el mtodo de Joubert en
corriente continua:

Figura 53. Mediciones utilizando el mtodo de Joubert, se aplica un


voltaje de 1.96 voltios.

Figura 54. Mediciones utilizando el mtodo de Joubert, se aplica un


voltaje de 4.87 voltios.

Figura 55. Mediciones utilizando el mtodo de Joubert, se aplica un


voltaje de 6.37 voltios.

Imgenes de las mediciones obtenidas por el mtodo de Joubert en


corriente alterna:

Figura 56. Mediciones utilizando el mtodo de Joubert, se aplica un


voltaje de 2.01 voltios.

Figura 57. Mediciones utilizando el mtodo de Joubert, se aplica un


voltaje de 5.10 voltios.

Figura 58. Mediciones utilizando el mtodo de Joubert, se aplica un


voltaje de 8.14 voltios.

Mtodo de los tres Voltmetros


Imgenes de las mediciones obtenidas por el mtodo de los tres
voltmetros en corriente alterna:

Figura 59. Mediciones utilizando el mtodo de los tres voltmetros,


el modulo del voltaje de la fuente de alimentacin es de 5.28 voltios,
el de la bobina es de 1.26 y el de la resistencia de prueba es de 4.39
voltios.

Figura 60. Mediciones utilizando el mtodo de los tres voltmetros


en donde el modulo del voltaje de la fuente de alimentacin es de
10.06 voltios, el de la bobina es de 2.40 y el de la resistencia de
prueba es de 8.35 voltios.

Figura 61. Mediciones utilizando el mtodo de los tres voltmetros


en donde el modulo del voltaje de la fuente de alimentacin es de
15.11 voltios, el de la bobina es de 3.60 y el de la resistencia de
prueba es de 12.53 voltios.
Mtodo de los tres Ampermetros
Imgenes de las mediciones obtenidas por el mtodo de los tres
ampermetros en corriente alterna:

Figura

62.

Mediciones

utilizando

el

mtodo

de

los

tres

ampermetros en donde la corriente total es de 0.54 amperios, la


corriente que circula por la resistencia de prueba es de 0.23
amperios y la corriente que circula por la bobina es de 0.34
amperios

Figura

63.

Mediciones

utilizando

el

mtodo

de

los

tres

ampermetros en donde la corriente total es de 1.26 amperios, la


corriente que circula por la resistencia de prueba es de 0.53
amperios y la corriente que circula por la bobina es de 0.82
amperios

Figura

64.

Mediciones

utilizando

el

mtodo

de

los

tres

ampermetros en donde la corriente total es de 1.84 amperios, la


corriente que circula por la resistencia de prueba es de 0.78
amperios y la corriente que circula por la bobina es de 1.20
amperios

Grficas de la ejecucin del programa realizado en MATLAB utilizando


los datos de la prctica.
Mtodo de Joubert

Figura 65. Ejecucin del Programa en Matlab con los Datos de las
imgenes 53 y 56.

Figura 66. Ejecucin del Programa en Matlab con los Datos de las
imgenes 54 y 57.

Figura 67. Ejecucin del Programa en Matlab con los Datos de las
imgenes 55 y 58.

Mtodo de los tres Voltmetros:

Figura 68. Ejecucin del Programa en Matlab con los Datos de la


Figura 59.

Figura 69. Ejecucin del Programa en Matlab con los Datos de la


Figura 60.

Figura 70. Ejecucin del Programa en Matlab con los Datos de la


Figura 61.
Mtodo de los tres Ampermetros

Figura 71. Ejecucin del Programa en Matlab con los Datos de la


Figura 62.

Figura 72. Ejecucin del Programa en Matlab con los Datos de la


Figura 63.

Figura 73. Ejecucin del Programa en Matlab con los Datos de la


Figura 64.
Tabla que muestre los valores de L y R obtenidos con los mtodos, para
los tres valores de tensin utilizados.

Tensin

Intensidad

Tensin

Corriente

Resistencia

Inductancia

Continua

Continua

Alterna

Alterna

1.967 V

0.62 A

2V

0.42 A

3.172

9.419 mH

4.89 V

1.54 A

5.09 V

1.08 A

3.175

9.238 mH

6.37 V

1.99 A

8.12 V

1.72 A

3.201

9.225 mH

Tabla 5. Resumen del Mtodo de Joubert.

Voltaje V1

Voltaje V2

Voltaje V3

Resistencia

Resistencia

Patrn

del

Inductancia

Inductor
4.38 V

1.26 V

5.28 V

16.9

3.13

9.867 mH

8.35 V

2.40 V

10.06 V

16.9

3.117

9.882 mH

12.54 V

3.61 V

15.1 V

16.9

3.102

9.941 mH

Tabla 6. Resumen del Mtodo de los tres Voltmetros.

Corriente

Corriente

Corriente

Resistencia

Resistencia

I1

I2

I3

Patrn

del

Inductancia

Inductor
0.23 A

0.34 A

0.54 A

7.4

3.94

8.191 mH

0.53 A

0.82 A

1.25 A

7.4

3.352

9.049 mH

0.78 A

1.20 A

1.84 A

7.4

3.436

9.929 mH

Tabla 7. Resumen del Mtodo de los tres Ampermetros.

INDUCTANCIA

Promedio de los

Valor

Error

Valores Medidos

Calculado

Porcentual %

Mtodo de Joubert

9.294 mH

9.2 mH

1.02 %

Mtodo de los Voltmetros

9.896 mH

9.2 mH

7.57 %

Mtodo de los Ampermetros

9.897 mH

9.2 mH

7.58 %

Mtodo de Joubert

3.182

2.281

39.5 %

Mtodo de los Voltmetros

3.116

2.281

36.6 %

Mtodo de los Ampermetros

3.576

2.281

56.77 %

RESISTENCIA

Tabla 8. Error en la inductancia y la resistencia generado por cada mtodo.

CONCLUSIONES
La aproximacin de los datos obtenidos en la simulacin de PSpice y en el
laboratorio son bastante cercanos, comparando cada uno de los mtodos
respectivos se aproximan mucho, esto evidencia que lo datos obtenidos de
manera prctica son muy aceptables, ya que la precisin de los instrumentos
de medicin no es del todo exacta.
Haciendo una comparacin de los mtodos simulados en PSpice, el mtodo
ms aproximado al valor calculado fue el de Joubert con un error de 1.91% en
la inductancia de 0% en la resistencia, en segundo lugar el mtodo de los 3
Ampermetros con errores de 3.22% en la inductancia y 3.22% en la resistencia,
y por ltimo el mtodo de los 3 Voltmetros con un error de 9.27% en la
inductancia y 15.61% en la resistencia.
Haciendo una comparacin de las medidas tomadas en el laboratorio, el
mtodo ms aproximado al valor calculado fue el de Joubert con un error en la
inductancia de 1.02% y en la resistencia de 39.5%, en segundo lugar el mtodo
de los 3 Voltmetros con errores de 7.57% en la inductancia y 36.6% en la
resistencia, y por ltimo el mtodo de los 3 Ampermetros con un error de
7.58% en la inductancia y 56.77% en la resistencia.
En conclusin, segn los datos obtenidos en simulacin el mtodo de Joubert
es el ms aproximado a los valores de clculo de la inductancia y la resistencia
de la bobina; y para los datos obtenidos en el laboratorio, el mtodo mas
aproximado para el valor de la inductancia es el de Joubert, y el ms
aproximado para el valor de la resistencia es el de los 3 Voltmetros.
Las mediciones de la resistencia difieren en gran medida a los calculados, esto
posiblemente se debe a los efectos de la corriente alterna en la resistencia del
cable conductor del embobinado y a la resistencia patrn, provocando un
elevado aumento.

RECOMENDACIONES
La

construccin

de

una

bobina

de

forma

artesanal

es

un

proceso

medianamente complicado, con la orientacin adecuada y ayuda de personas


con experiencia en su fabricacin se torna un trabajo relativamente sencillo.
En primer lugar es sumamente necesario conocer el elemento, sus propiedades
y caractersticas, y lo ms importante para la fabricacin es el modelo
matemtico de la inductancia propia y la resistencia, de este modo al realizar
los clculos logramos disear correctamente el elemento, disminuir la longitud
del cable necesario para bobinar, conseguir una mejor inductancia variando los
parmetros fsicos de la bobina, obtener una baja o alta resistencia elctrica
segn la aplicacin que se le vaya a dar, y tambin descartar cualquier error de
clculo que por descuido se pueda cometer al aplicar las formulas.
Para la construccin de la bobina se utilizan los siguientes materiales: cartn
piedra para armar el carrete, alambre esmaltado que viene ya aislado y de
preferencia un calibre alto para conseguir una resistencia baja, papel
milarbond para aumentar el aislamiento entre capas de bobinado y evitar el
sobrecalentamiento. Para bobinar el elemento no fue necesario utilizar una
bobinadora debido a que adaptamos las dimensiones para un numero bajo de
vueltas que sera lo ideal si no se dispone de esta herramienta, se debe poner
una capa de papel milarbond encada capa de bobinado, al final resulta una
bobina fsicamente esttica.

BIBLIOGRAFIA

Anonimo. (s.f.). scribd. Recuperado el 21 de Diciembre de 2014, de


https://es.scribd.com/doc/199498091/Practico-3-Medicion-deCapacitores-Inductores-e-Impedancias
Anonimo. (s.f.). tecnun. Recuperado el 21 de Diciembre de 2014, de
http://www.tecnun.es/asignaturas/Circuitos/Practicas/PR_CIR_01.pdf
Anonimo. (s.f.). Wikipedia. Recuperado el Diciembre de 21 de 2014, de
http://es.wikipedia.org/wiki/Inductancia
Anonimo. (s.f.). Wikipedia. Recuperado el 21 de Diciembre de 2014, de
http://es.wikipedia.org/wiki/Permeabilidad_magn%C3%A9tica
Anonimo. (s.f.). Wikipedia. Recuperado el 21 de Diciembre de 2014, de
http://es.wikipedia.org/wiki/Resistencia_el%C3%A9ctrica
Anonimo. (s.f.). Wikipedia. Recuperado el 21 de Diciembre de 2014, de
http://es.wikipedia.org/wiki/Resistividad
Anonimo. (s.f.). Wikipedia. Recuperado el 21 de Diciembre de 2014, de
http://es.wikipedia.org/wiki/Calibre_de_alambre_estadounidense
Tenazoa, L. G. (s.f.). monografias. Recuperado el 21 de Diciembre de 2014, de
http://www.monografias.com/trabajos82/metodo-tresamperimetros/metodo-tres-amperimetros.shtml

ANEXOS
GUI.m
function varargout = GUI(varargin)
% GUI MATLAB code for GUI.fig
%

GUI, by itself, creates a new GUI or raises the existing

singleton*.

%
%

H = GUI returns the handle to a new GUI or the handle to

the existing singleton*.

%
%

GUI('CALLBACK',hObject,eventData,handles,...) calls the local

function named CALLBACK in GUI.M with the given input arguments.

%
%

GUI('Property','Value',...) creates a new GUI or raises the

existing singleton*. Starting from the left, property value pairs are

applied to the GUI before GUI_OpeningFcn gets called. An

unrecognized property name or invalid value makes property application

stop. All inputs are passed to GUI_OpeningFcn via varargin.

%
%

*See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one

instance to run (singleton)".

%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help GUI

% Last Modified by GUIDE v2.5 21-Dec-2014 00:35:08

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name',

mfilename, ...

'gui_Singleton', gui_Singleton, ...


'gui_OpeningFcn', @GUI_OpeningFcn, ...
'gui_OutputFcn', @GUI_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before GUI is made visible.


function GUI_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject

handle to figure

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% varargin command line arguments to GUI (see VARARGIN)

% Choose default command line output for GUI


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

% UIWAIT makes GUI wait for user response (see UIRESUME)


% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.
function varargout = GUI_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject

handle to figure

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure


varargout{1} = handles.output;

function MJvc_Callback(hObject, eventdata, handles)


% hObject

handle to MJvc (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mj_vc;
mj_vc=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MJvc as text
%

str2double(get(hObject,'String')) returns contents of MJvc as a double

% --- Executes during object creation, after setting all properties.


function MJvc_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MJvc (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MJic_Callback(hObject, eventdata, handles)


% hObject

handle to MJic (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mj_ic;
mj_ic=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MJic as text
%

str2double(get(hObject,'String')) returns contents of MJic as a double

% --- Executes during object creation, after setting all properties.


function MJic_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MJic (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MJva_Callback(hObject, eventdata, handles)


% hObject

handle to MJva (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mj_va;
mj_va=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MJva as text
%

str2double(get(hObject,'String')) returns contents of MJva as a double

% --- Executes during object creation, after setting all properties.


function MJva_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MJva (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MJia_Callback(hObject, eventdata, handles)


% hObject

handle to MJia (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mj_ia;

mj_ia=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MJia as text
%

str2double(get(hObject,'String')) returns contents of MJia as a double

% --- Executes during object creation, after setting all properties.


function MJia_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MJia (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in MJcalcular.


function MJcalcular_Callback(hObject, eventdata, handles)
% hObject

handle to MJcalcular (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mj_vc
global mj_ic
global mj_va
global mj_ia
r=mj_vc/mj_ic;
z=mj_va/mj_ia;
xl=sqrt(z*z-r*r);
l=xl/(2*3.141592653589*60)*1000;

set(handles.MJr,'string',r);
set(handles.MJl,'string',l);

% --- Executes on button press in MJreset.


function MJreset_Callback(hObject, eventdata, handles)
% hObject

handle to MJreset (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

set(handles.MJvc,'string',num2str(''));
set(handles.MJic,'string',num2str(''));
set(handles.MJva,'string',num2str(''));
set(handles.MJia,'string',num2str(''));
set(handles.MJr,'string',num2str(''));
set(handles.MJl,'string',num2str(''));

function MJr_Callback(hObject, eventdata, handles)


% hObject

handle to MJr (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of MJr as text


%

str2double(get(hObject,'String')) returns contents of MJr as a double

% --- Executes during object creation, after setting all properties.


function MJr_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MJr (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MJl_Callback(hObject, eventdata, handles)


% hObject

handle to MJl (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of MJl as text


%

str2double(get(hObject,'String')) returns contents of MJl as a double

% --- Executes during object creation, after setting all properties.


function MJl_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MJl (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MJxl_Callback(hObject, eventdata, handles)


% hObject

handle to MJxl (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of MJxl as text


%

str2double(get(hObject,'String')) returns contents of MJxl as a double

% --- Executes during object creation, after setting all properties.


function MJxl_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MJxl (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

% --- If Enable == 'on', executes on mouse press in 5 pixel border.


% --- Otherwise, executes on mouse press in 5 pixel border or over MJreset.
function MJreset_ButtonDownFcn(hObject, eventdata, handles)
% hObject

handle to MJreset (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

function MVv1_Callback(hObject, eventdata, handles)


% hObject

handle to MVv1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mv_v1;
mv_v1=str2double(get(hObject,'String'));

% Hints: get(hObject,'String') returns contents of MVv1 as text


%

str2double(get(hObject,'String')) returns contents of MVv1 as a double

% --- Executes during object creation, after setting all properties.


function MVv1_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MVv1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MVv2_Callback(hObject, eventdata, handles)


% hObject

handle to MVv2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mv_v2;
mv_v2=str2double(get(hObject,'String'));

% Hints: get(hObject,'String') returns contents of MVv2 as text


%

str2double(get(hObject,'String')) returns contents of MVv2 as a double

% --- Executes during object creation, after setting all properties.


function MVv2_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MVv2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MVv3_Callback(hObject, eventdata, handles)


% hObject

handle to MVv3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mv_v3;
mv_v3=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MVv3 as text
%

str2double(get(hObject,'String')) returns contents of MVv3 as a double

% --- Executes during object creation, after setting all properties.


function MVv3_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MVv3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in pushbutton3.


function pushbutton3_Callback(hObject, eventdata, handles)
% hObject

handle to pushbutton3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% --- Executes on button press in pushbutton4.


function pushbutton4_Callback(hObject, eventdata, handles)
% hObject

handle to pushbutton4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

function edit12_Callback(hObject, eventdata, handles)


% hObject

handle to edit12 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit12 as text

str2double(get(hObject,'String')) returns contents of edit12 as a double

% --- Executes during object creation, after setting all properties.


function edit12_CreateFcn(hObject, eventdata, handles)
% hObject

handle to edit12 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function edit13_Callback(hObject, eventdata, handles)


% hObject

handle to edit13 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit13 as text


%

str2double(get(hObject,'String')) returns contents of edit13 as a double

% --- Executes during object creation, after setting all properties.


function edit13_CreateFcn(hObject, eventdata, handles)
% hObject

handle to edit13 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function edit14_Callback(hObject, eventdata, handles)


% hObject

handle to edit14 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit14 as text


%

str2double(get(hObject,'String')) returns contents of edit14 as a double

% --- Executes during object creation, after setting all properties.


function edit14_CreateFcn(hObject, eventdata, handles)
% hObject

handle to edit14 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MVr1_Callback(hObject, eventdata, handles)


% hObject

handle to MVr1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mv_r1;
mv_r1=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MVr1 as text
%

str2double(get(hObject,'String')) returns contents of MVr1 as a double

% --- Executes during object creation, after setting all properties.


function MVr1_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MVr1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in MVcalcular.


function MVcalcular_Callback(hObject, eventdata, handles)
% hObject

handle to MVcalcular (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global mv_v1;
global mv_v2;

global mv_v3;
global mv_r1;
r=(mv_r1/2)*((mv_v3/mv_v1)^2-(mv_v2/mv_v1)^2-1);
xl=sqrt(mv_r1^2*(mv_v2/mv_v1)^2-r^2);
l=xl/(2*3.141592653589*60)*1000;
set(handles.MVr,'string',r);
set(handles.MVl,'string',l);

% --- Executes on button press in MVreset.


function MVreset_Callback(hObject, eventdata, handles)
% hObject

handle to MVreset (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

set(handles.MVv1,'string',num2str(''));
set(handles.MVv2,'string',num2str(''));
set(handles.MVv3,'string',num2str(''));
set(handles.MVr1,'string',num2str(''));
set(handles.MVr,'string',num2str(''));
set(handles.MVl,'string',num2str(''));

function MVr_Callback(hObject, eventdata, handles)


% hObject

handle to MVr (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of MVr as text


%

str2double(get(hObject,'String')) returns contents of MVr as a double

% --- Executes during object creation, after setting all properties.


function MVr_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MVr (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MVl_Callback(hObject, eventdata, handles)


% hObject

handle to MVl (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of MVl as text


%

str2double(get(hObject,'String')) returns contents of MVl as a double

% --- Executes during object creation, after setting all properties.


function MVl_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MVl (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MAi1_Callback(hObject, eventdata, handles)


% hObject

handle to MAi1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global ma_i1;
ma_i1=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MAi1 as text
%

str2double(get(hObject,'String')) returns contents of MAi1 as a double

% --- Executes during object creation, after setting all properties.


function MAi1_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MAi1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MAi2_Callback(hObject, eventdata, handles)

% hObject

handle to MAi2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global ma_i2;
ma_i2=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MAi2 as text
%

str2double(get(hObject,'String')) returns contents of MAi2 as a double

% --- Executes during object creation, after setting all properties.


function MAi2_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MAi2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MAi3_Callback(hObject, eventdata, handles)


% hObject

handle to MAi3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global ma_i3;
ma_i3=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MAi3 as text
%

str2double(get(hObject,'String')) returns contents of MAi3 as a double

% --- Executes during object creation, after setting all properties.


function MAi3_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MAi3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MAr1_Callback(hObject, eventdata, handles)


% hObject

handle to MAr1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global ma_r1;
ma_r1=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of MAr1 as text
%

str2double(get(hObject,'String')) returns contents of MAr1 as a double

% --- Executes during object creation, after setting all properties.


function MAr1_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MAr1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in MAcalcular.


function MAcalcular_Callback(hObject, eventdata, handles)
% hObject

handle to MAcalcular (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

global ma_i1;
global ma_i2;
global ma_i3;
global ma_r1;
i=sqrt(-1);
g1=1/ma_r1;
g=(g1/2)*((ma_i3/ma_i1)^2-(ma_i2/ma_i1)^2-1);
b=sqrt(g1^2*(ma_i2/ma_i1)^2-g^2);
y=(1/(g-b*i));
r=real(y);
xl=imag(y);
l=xl/(2*3.141592653589*60)*1000;
set(handles.MAr,'string',r);
set(handles.MAl,'string',l);

% --- Executes on button press in MAreset.


function MAreset_Callback(hObject, eventdata, handles)
% hObject

handle to MAreset (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

set(handles.MAi1,'string',num2str(''));
set(handles.MAi2,'string',num2str(''));
set(handles.MAi3,'string',num2str(''));
set(handles.MAr1,'string',num2str(''));
set(handles.MAr,'string',num2str(''));
set(handles.MAl,'string',num2str(''));

function MAr_Callback(hObject, eventdata, handles)


% hObject

handle to MAr (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of MAr as text


%

str2double(get(hObject,'String')) returns contents of MAr as a double

% --- Executes during object creation, after setting all properties.


function MAr_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MAr (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

function MAl_Callback(hObject, eventdata, handles)


% hObject

handle to MAl (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of MAl as text


%

str2double(get(hObject,'String')) returns contents of MAl as a double

% --- Executes during object creation, after setting all properties.


function MAl_CreateFcn(hObject, eventdata, handles)
% hObject

handle to MAl (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB


% handles

empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.


%

See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))


set(hObject,'BackgroundColor','white');
end

GUI.fig

You might also like