intro labview prof -...

44
Introduction à LabVIEW Iva Tkalcec Vâju

Upload: vodien

Post on 03-Oct-2018

291 views

Category:

Documents


11 download

TRANSCRIPT

Page 1: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Introduction à LabVIEW

Iva Tkalcec Vâju

Page 2: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

LabVIEW (contrac.on de Laboratory Virtual Instrument Engineering Workbench)

est le cœur d’une plate-forme de concep.on de systèmes de mesure et de

contrôle, fondée sur un environnement de développement graphique de Na.onal

Instruments.

LabVIEW est u.lisé principalement pour l’acquisi.on de données, pour le contrôle

d’instruments et pour l’automa.sme industriel.

Instrumentation Virtuelle avec LabVIEW

Page 3: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Les programmes LabVIEW sont appelés instruments virtuels ou VIs, car leur

apparence et leur fonc9onnement imitent souvent des instruments physiques, tels

que des oscilloscopes et des mul9mètres.

LabVIEW con9ent un ensemble complet d'ou9ls pour acquérir, analyser, afficher et

stocker des données, ainsi que des ou9ls pour vous aider à résoudre les problèmes

de code que vous écrivez. Lorsque vous créez un nouveau VI, vous verrez deux

fenêtres: la fenêtre de la face-avant et le diagramme.

La fenêtre de la face-avant est l'interface u9lisateur du VI. Les contrôles définissent

les entrées et les indicateurs affichent les sor9es.

Le diagramme con9ent le code permeKant de contrôler les objets de la face-avant.

Instrumentation Virtuelle avec LabVIEW

Page 4: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Face avant• Commandes = Entrées• Indicateurs = Sorties

Diagramme• Programme complémentairede la face avant

Les programmes LabVIEW sont appelés Instruments Virtuels ou Virtual Instruments (VIs)

Page 5: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Face avant d’un VI

Page 6: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Diagramme d’un VI

Page 7: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Programmation par Flux de Données• L’exécution du diagramme

dépend du flux de données; il ne s’exécute pas de gauche àdroite ;

• L’exécution du nœud se fait quand les données sont disponibles à tous les terminaux d’entrée ;

• Puis les nœuds fournissent des données à tous les terminaux de sortie.

Page 8: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Palettes de commandes et de fonctionsPalette de commandes

(Fenêtre Face avant)

Palettes de fonctions(Fenêtre Diagramme)

Page 9: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 10: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 11: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Ctrl+T

Ctrl+H

Page 12: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

click droit

Page 13: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 14: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

click droit

Page 15: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

click droit

Page 16: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

bouton executer

Page 17: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

click droit

Page 18: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 19: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 20: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 21: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 22: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

click droit

Page 23: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 24: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 25: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 26: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 27: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

click droit

click gauche

Page 28: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 29: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 30: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 31: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 32: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 33: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

click droit

Page 34: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

valeur volue

Page 35: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 36: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 37: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Théorème d'échan/llonnage de Nyquist-ShannonFéch > 2Fsig

Page 38: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 39: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)

Théorème d'échan/llonnage de Nyquist-ShannonFéch > 2Fsig

Page 40: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 41: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 42: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 43: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)
Page 44: Intro LabVIEW prof - scientiaerobotica.epfl.chscientiaerobotica.epfl.ch/.../Tkalcec_AF-10_Intro_LabVIEW_prof.pdf · LabVIEW(contrac.ondeLaboratoryVirtualInstrumentEngineeringWorkbench)