19
Introduction to Introduction to LabVIEW LabVIEW General Engineering General Engineering Department Department Polytechnic University Polytechnic University

Laboratory 7 Introduction to LabVIEW

  • Upload
    chione

  • View
    53

  • Download
    0

Embed Size (px)

DESCRIPTION

Laboratory 7 Introduction to LabVIEW. General Engineering Department Polytechnic University. Overview. Applications in EG101 Sample interfaces Remote Communication Graphic-based/Text-based Virtual Instruments (VIs) Front Panel/Diagram Panel Tools Front Panel Controls - PowerPoint PPT Presentation

Citation preview

Page 1: Laboratory 7 Introduction to LabVIEW

Laboratory 7Laboratory 7Introduction to Introduction to

LabVIEWLabVIEW

General Engineering General Engineering DepartmentDepartment

Polytechnic University Polytechnic University

Page 2: Laboratory 7 Introduction to LabVIEW

OverviewOverview Applications in EG101Applications in EG101 Sample interfacesSample interfaces Remote CommunicationRemote Communication Graphic-based/Text-basedGraphic-based/Text-based Virtual Instruments (VIs)Virtual Instruments (VIs) Front Panel/Diagram PanelFront Panel/Diagram Panel ToolsTools Front Panel ControlsFront Panel Controls Controls and IndicatorsControls and Indicators Color RepresentationColor Representation

ObjectivesObjectives Program 1: Program 1:

CalculatorCalculator Program 2: Program 2:

VoltmeterVoltmeter LabVIEW Proficiency LabVIEW Proficiency

TestTest ConclusionConclusion

Page 3: Laboratory 7 Introduction to LabVIEW

Without LabVIEWWithout LabVIEW

Page 4: Laboratory 7 Introduction to LabVIEW

With LabVIEWWith LabVIEW

Page 5: Laboratory 7 Introduction to LabVIEW

Applications in EG101Applications in EG101

LAB 3: MicrophoneLAB 3: Microphone LAB 7: LabVIEWLAB 7: LabVIEW LAB 8: Vibrations, LAB 8: Vibrations,

Waves and SpectraWaves and Spectra LAB 10: Fiber OpticsLAB 10: Fiber Optics

TimeFreqTimeFreq TwoChanTwoChan FilterFilter RecordRecord PlaybackPlayback

Page 6: Laboratory 7 Introduction to LabVIEW

Sample InterfacesSample Interfaces

Page 7: Laboratory 7 Introduction to LabVIEW

Remote CommunicationRemote Communication InternetInternet Control Control

DevicesDevices

– Robotic Robotic ArmArm

– BridgeBridge

Page 8: Laboratory 7 Introduction to LabVIEW

Graphics-based vs. Text-Graphics-based vs. Text-basedbased

GGC+C+++

Page 9: Laboratory 7 Introduction to LabVIEW

Virtual Instruments Virtual Instruments (VIs)(VIs)

Appearance and operation imitates

actual physical instruments

Page 10: Laboratory 7 Introduction to LabVIEW

Front Panel and Diagram Front Panel and Diagram PanelPanel

Page 11: Laboratory 7 Introduction to LabVIEW

ToolsTools

Page 12: Laboratory 7 Introduction to LabVIEW

Front Panel ControlsFront Panel Controls

Terminal in diagram panel represents front panel object

in source code

Page 13: Laboratory 7 Introduction to LabVIEW

Controls and IndicatorsControls and Indicators

Two types of objects in front panel

Page 14: Laboratory 7 Introduction to LabVIEW

Color RepresentationColor Representation

Page 15: Laboratory 7 Introduction to LabVIEW

ObjectivesObjectives

Learn basic, Learn basic, introductory introductory commandscommands

Input data Input data (voltage)(voltage)

Create two Create two programsprograms

Page 16: Laboratory 7 Introduction to LabVIEW

Program 1: CalculatorProgram 1: Calculator

InputInput– KeyboardKeyboard– Input/Output boardInput/Output board

Switch: 3 operationsSwitch: 3 operations 3 LEDs3 LEDs 2 numeric controls2 numeric controls 1 indicator1 indicator Switch for input dataSwitch for input data Case statementCase statement

Page 17: Laboratory 7 Introduction to LabVIEW

Program 2: VoltmeterProgram 2: Voltmeter

Input from I/O block Input from I/O block (±5 volts)(±5 volts)

7 LEDs: 7-segment 7 LEDs: 7-segment display rounded to display rounded to nearest integernearest integer

1 negative sign LED1 negative sign LED Case statement: Case statement:

control different control different combinationscombinations

Page 18: Laboratory 7 Introduction to LabVIEW

LabVIEW Proficiency LabVIEW Proficiency TestTest

25-segment LED display 25-segment LED display with corresponding caseswith corresponding cases

2 switches2 switches– binary-to-decimalbinary-to-decimal– decimal-to-binary decimal-to-binary

(inoperative)(inoperative) ControlControl Warning functionWarning function

First 5 non-repeating letters and #s of name (last, first) and IDFirst 5 non-repeating letters and #s of name (last, first) and ID

Page 19: Laboratory 7 Introduction to LabVIEW

ConclusionsConclusions

AdvantagesAdvantages– Saves money/spaceSaves money/space– Unlimited customized Unlimited customized

applicationsapplications More helpMore help

– LabVIEW manualsLabVIEW manuals– HelpHelp

Team reportTeam reportInclude:Include: Front/DiagramFront/Diagram

panels of bothpanels of bothprogramsprograms

Brief written Brief written explanations ofexplanations ofimplementationimplementation