Practicas en Lab View

  • View
    22

  • Download
    1

Embed Size (px)

DESCRIPTION

Practica de labview

Transcript

  • IIINNNTTTRRROOODDDUUUCCCCCCIIINNN AAA LLLAAA IIINNNSSSTTTRRRUUUMMMEEENNNTTTAAACCCIIINNN VVVIIIRRRTTTUUUAAALLL... PPPRRROOOGGGRRRAAAMMMAAACCCIIINNN EEENNN LLLAAABBBVVVIIIEEEWWW...

    Ignacio Moreno Velasco Pedro L. Snchez Ortega

  • PRCTICAS DE INSTRUMENTACIN ELECTRNICA 3 I.T.I.E.

    Introduccin a la Instrumentacin Virtual. Programacin en LabVIEW (Ver. 5.5) 2

  • PRCTICAS DE INSTRUMENTACIN ELECTRNICA 3 I.T.I.E.

    Introduccin a la Instrumentacin Virtual. Programacin en LabVIEW (Ver. 5.5) 3

    INDICE 1.- INTRODUCCIN A LOS SISTEMAS DE ADQUISICIN 5

    2.- SOFTWARE 7 CONCEPTO DE INSTRUMENTO VIRTUAL .......................................................................................... 7 Estructura del software .................................................................................................................... 7

    Programa de aplicacin ........................................................................................................................................7 SOFTWARE CONTROLADOR DE DISPOSITIVO ................................................................................. 8

    3.- PRACTICAS DE INICIACIN A LABVIEW 9 Prctica 1: Realizar la suma de 2 nmeros ................................................................................... 10

    Insertar los elementos en el panel frontal. ......................................................................................................10 Insertar la operacin de suma: ..........................................................................................................................10 Llamadas a la AYUDA:......................................................................................................................................10 Ejecucin del programa .....................................................................................................................................10 Sustitucin de controles e indicadores.............................................................................................................11

    Prctica 2: Otras operaciones y controles ...................................................................................... 11 Introducir funciones de comparacin: ............................................................................................................12 Tipos de datos: ....................................................................................................................................................12 Concatenacin de cadenas alfanumricas frente a suma de nmeros. .......................................................13 paso a ....................................................................................................................................................................13 paso b...............................................................................................................Error! Marcador no definido.

    Prctica 3: adquisicin y procesamiento bsicos.......................................................................... 14 Tcnicas de depuracin:.....................................................................................................................................14 Creacin de SubVI's ...........................................................................................................................................15

    Prctica 4: Utilizacin de subVI's.................................................................................................. 16 Prctica 5: Secuencia While-loop.................................................................................................. 16

    paso a ....................................................................................................................................................................16 paso b....................................................................................................................................................................17

    Prctica 6: registros de desplazamiento ....................................................................................... 18 paso a ....................................................................................................................................................................18 paso b....................................................................................................................................................................18

    Prctica 7: Bucle For. .................................................................................................................... 19 Prctica 8: MATRICES. .................................................................................................................. 20

    paso a ....................................................................................................................................................................20 paso b....................................................................................................................................................................20

    Prctica 9: tipos de grficos ........................................................................................................... 21 Prctica 10: Nudo frmula.............................................................................................................. 22 Prctica 11: Estructura CASE.......................................................................................................... 22

    Opcin mltiple de la estructura case..............................................................................................................22

    4.- ADQUISICIN DE DATOS. 23 Conceptos bsicos de adquisicin de datos (a/d) .......................................................................... 23

    Velocidad de muestreo.......................................................................................................................................23 Resolucin............................................................................................................................................................24 Rango ....................................................................................................................................................................25

    Prctica 12: adquisicin de datos ................................................................................................... 26 Paso A: uso de la funcin "AI Acquire waveform simu.VI" .......................................................................27 Paso B: Escalado de tiempos. ...........................................................................................................................27 Paso C: anlisis en frecuencia............................................................................................................................29 Paso D: Escalado de frecuencia........................................................................................................................29

    # Ejercicios..................................................................................................................................... 30 RESOLUCIN ESPECTRAL ........................................................................................................................30 ALIASING ..........................................................................................................................................................30 Enventanado........................................................................................................................................................30

    PRCTICA 13: filtrado .................................................................................................................... 31

  • PRCTICAS DE INSTRUMENTACIN ELECTRNICA 3 I.T.I.E.

    Introduccin a la Instrumentacin Virtual. Programacin en LabVIEW (Ver. 5.5) 4

    5.- BUS GPIB. 32 Introduccin al bus GPIB................................................................................................................ 32

    Historia .................................................................................................................................................................32 Caractersticas mecnicas y elctricas ..............................................................................................................32 Funcionamiento ..................................................................................................................................................33 IEEE 488-2..........................................................................................................................................................35 HS488 ...................................................................................................................................................................35

    Programacin con LabVIEW ........................................................................................................... 36 Conexin labview-dispositivo GPIB ...............................................................................................................36 Envo de comandos............................................................................................................................................36

    Recepcin de respuestas ................................................................................................................ 37 Obtencin de datos de la cadena de respuesta de un instrumento:............................................................38

    Aplicaciones EN RED .................................................................................................................