Laboratory 7 Introduction to LabVIEW General Engineering Department Polytechnic University
Overview l Applications in EG101 l Sample interfaces l Remote Communication l Graphic-based/Text-based l Virtual Instruments (VIs) l Front Panel/Diagram Panel l Tools l Front Panel Controls l Controls and Indicators l Color Representation l Objectives l Program 1: Calculator l Program 2: Voltmeter l LabVIEW Proficiency Test l Conclusion
Without LabVIEW
With LabVIEW
Applications in EG101 l LAB 3: Microphone l LAB 7: LabVIEW l LAB 8: Vibrations, Waves and Spectra l LAB 10: Fiber Optics l TimeFreq l TwoChan l Filter l Record l Playback
Sample Interfaces
Remote Communication l Internet l Control Devices –Robotic Arm –Bridge
Graphics-based vs. Text-based GC++
Virtual Instruments (VIs) Appearance and operation imitates actual physical instruments
Front Panel and Diagram Panel
Tools
Front Panel Controls Terminal in diagram panel represents front panel object in source code
Controls and Indicators Two types of objects in front panel
Color Representation
Objectives l Learn basic, introductory commands l Input data (voltage) l Create two programs
Program 1: Calculator l Input –Keyboard –Input/Output board l Switch: 3 operations l 3 LEDs l 2 numeric controls l 1 indicator l Switch for input data l Case statement
Program 2: Voltmeter l Input from I/O block (±5 volts) l 7 LEDs: 7-segment display rounded to nearest integer l 1 negative sign LED l Case statement: control different combinations
LabVIEW Proficiency Test l 25-segment LED display with corresponding cases l 2 switches –binary-to-decimal –decimal-to-binary (inoperative) l Control l Warning function First 5 non-repeating letters and #s of name (last, first) and ID
Conclusions l Advantages –Saves money/space –Unlimited customized applications l More help –LabVIEW manuals –Help Team report Include: l Front/Diagram panels of both programs l Brief written explanations of implementation