An Introduction to LabVIEW for 4th year projects

An Introduction To Labview For 4th Year Projects-Free PDF

  • Date:18 Oct 2020
  • Views:2
  • Downloads:0
  • Pages:65
  • Size:3.19 MB

Share Pdf : An Introduction To Labview For 4th Year Projects

Download and Preview : An Introduction To Labview For 4th Year Projects


Report CopyRight/DMCA Form For : An Introduction To Labview For 4th Year Projects


Transcription:

Objectives, To acquire familiarity with the LabVIEW Programming language. To be able to write LabVIEW programmes incorporating pre written. and new code, To be able to understand adopt and modify third party code. To learn how to investigate about unknown functionality. To acquire the skills needed to complete the 4th year project. Introduction to LabVIEW Stephan Eisenhardt 2,Stage 0 Concepts Principles. Introduction to LabVIEW Stephan Eisenhardt 3,The LabVIEW Concept I. LabVIEW in short LV is a graphical programming language. developed and marketed by National Instruments, The look and feel is very different from textual programming languages.
approx equivalent C programme,to calculate a sum,but I O only works on a text shell. complete LabVIEW programme,to calculate a sum,it includes the graphical I O. All the usual programming concepts are available, But what is the benefit of reinventing the wheel causing overhead. another learning curve and paying substantial licence fees. Introduction to LabVIEW Stephan Eisenhardt 4,The LabVIEW Concept II. LabVIEW is designed to build graphical user interfaces GUIs for. laboratory instrumentation also called Virtual Instruments VIs. A VIs can read out to a single sensor emulate the front face of. commercial devices or control large integrated systems. The idea is to provide a user friendly interface tailored to the needs of. the application to an otherwise possibly obscure piece of hardware. monitoring, Like with a dashboard of a car the user interface is what the operator.
experiences for steering and monitoring of the hardware while the. details of the implementation and the interfaces to the devices are hidden. under the bonnet, Programming LabVIEW is like building a car running a VI like driving one. Introduction to LabVIEW Stephan Eisenhardt 5,Principle of Data Flow. Programme execution follows the principle of data flow. Each instruction comes with an interface of input and output parameters. called terminals e g the operation has x and y as input and the. sum as output terminal, An instruction is only executed once all its input terminals hold valid. data i e the instructions it depends on all have produced valid data. If there are several instructions which could be executed in parallel LV. has reasonable defaults to chose but if the order matters e g due to. race conditions there are ways to control this, Each VI has it own set of terminals and can be called as an instruction in. another VI e g also function calls provided by LV are VIs themselves. Introduction to LabVIEW Stephan Eisenhardt 6,Implemented Design Principles.
Encapsulation main design feature, Each VI has its user definable interface and can be operated as black box. element within other VIs once it is working reliably. Type checking main design feature, Checked at time of coding VI cannot run if output and input between two nodes. do not match in type, Templates now fully integrated since v8 0 and promoted as default. Called Express VIs configurable pre written code for standard tasks. Scope of parameters supported, VIs run with their own set of local variables and one can manage different sets of. global variables,Recursive functions supported, VIs can be configured to run as parallel instances and can call themselves.
Inheritance not in the way you know it from C only while coding. Configurations of existing elements may be inherited by new elements you place. Function overloading Polymorphism implemented for library functions. Provided for many standard functions in the library but hard to code by one self. Introduction to LabVIEW Stephan Eisenhardt 7,Stage 1 The Way around LabVIEW. Introduction to LabVIEW Stephan Eisenhardt 8,How to use this Guide. Proposed instructions are green,Items to note are orange. While reading the following pages, Run LabVIEW in parallel and try all the discussed actions for yourself. Feel free to branch out from the guide to browse some of the many other. possibilities and return to the text at your own pace. At this stage you are deliberately not given any example vi the first. stage is about learning to find your way around and ways to help yourself. A second stage will deal with the functionality you will need to employ. during your project,Introduction to LabVIEW Stephan Eisenhardt 9.
Getting Started,Start LabVIEW used here version 9 0 1. Windows double click LV icon or Start menu All Programs. Linux SunOS type labview,Startup screen select New Blank VI. We start from scratch and keep it simple,A simple data member and a sum will. give the opportunity to learn much about,the way around LV. That should give you the tools and techniques to better find the needed. information later on,Introduction to LabVIEW Stephan Eisenhardt 10.
A LabVIEW programme comprises of two types of screens. The front panel FP,this acts as the user interface with. controls and displays,associated with it is a Controls. window Cnt to drag drop GUI,interface elements,The Block Diagram BD invoke with Ctrl e if needed. this contains the computational code,which handles the data. associated with it is a Functions,window Ftn to drag drop code.
it is stored in a file name vi,Introduction to LabVIEW Stephan Eisenhardt 11. Mouse Tips,Basic manipulation techniques,hovering over items selects the focus. left click selects an item,double left click selects to edit an item. right click opens a menu for configuration and digging further. Introduction to LabVIEW Stephan Eisenhardt 12,Learn from a Simple Example. A simple example will show the basic functionality a data member. In the Controls window under the Express tab open the Numerical. Controls sub tab and select the plain Numeric Control GUI. drag drop it to the FP,notice what happened,1 on the FP you got an interface.
with a data display increment handle and name label. play around with it edit the value the label use the increment. notice the tick button whenever a value is still transient. 2 on the BD you got an input terminal with the same label. it represents the memory allocation and displays the data type. Introduction to LabVIEW Stephan Eisenhardt 13,Element Manipulation I. Lets dig a bit deeper into what can be done to the data members. right click the input terminal and select Representation. you see the numerical data types LV can handle,by rows in the different precisions. floating point,signed integer,unsigned integer, by default LV chooses double precision 32 bit floating point. note how colour and icon of the terminal changes for the various types. try it out e g to change to complex extended precision and see how. the data display on the FP changes,Introduction to LabVIEW Stephan Eisenhardt 14. Element Manipulation II,And on the front panel, right click the data display and select Visible Items.
you see now also the other visual items available, try out the radix select the U8 data type and value 10. click the radix and change to Hex Octal and Binary. note that you have to chose an integer data type for these settings to. be available,try to activate the Unit Label you cannot. you have to chose a floating data type first to use a Unit Label. use e g V as label, now you cannot change the radix to Hex Octal or Binary anymore. nor can you change to integer data types, you must clear the Unit Label again by editing double click to. enable integer types once more, that is all due to the data type checking already performed at the coding.
An Introduction to LabVIEW for 4 th year projects 09 2010 Stephan Eisenhardt University of Edinburgh S Eisenhardt ed ac uk 2 Objectives To acquire familiarity with the LabVIEW Programming language To be able to write LabVIEW programmes incorporating pre written and new code To be able to understand adopt and modify third party code To learn how to investigate about unknown functionality

Related Books