32
BASIC 1 Introduction to Labview 1.01 Introduction 1.02 Advantages 1.03 Software Environment- Front Panel 1.04 Creating & Saving Vi 1.05 Front & Block Diagram Toolbar 1.06 Pallettes-Tools,Controls & Functio 1.07 Shortcut menus 1.08 Property Dialog Boxes 1.09 Front Panel Controls & Indicators 1.10 Block Diagram - Terminals,Nodes,Fu 1.11 Data Types- Numeric, String, Boole 1.12 Data Flow Diagrams 1.13 Shortcuts 1.14 Examples like - Add, Multiply,Divi 2 Modular Programming 2.01 INTRODUCTION 2.02 Build VI Front Panel and Block Dia 2.03 Icon and Connector Pane 2.04 Creating Icon 2.05 Building a Connector Pane- Assigni 2.06 Displaying SubVis and Express Vis 2.07 Creating Subvis from the sections 2.08 Opening and Editing SUbVis 2.09 Placing Subvis on Bloack Diagrams 2.10 Creating Standalone Application- B

LabVIEW

Embed Size (px)

DESCRIPTION

labview

Citation preview

Page 1: LabVIEW

BASIC LABVIEW TRAINING

1Introduction to Labview1.01 Introduction1.02Advantages1.03Software Environment- Front Panel Windows, Block Diagram Windows, Icon/Connector Pane1.04Creating & Saving Vi1.05Front & Block Diagram Toolbar1.06Pallettes-Tools,Controls & Function 1.07Shortcut menus1.08Property Dialog Boxes1.09Front Panel Controls & Indicators1.10Block Diagram - Terminals,Nodes,Functions, SubVis,Express Vis, wires1.11Data Types- Numeric, String, Boolean,Fixed Point and Variant1.12Data Flow Diagrams1.13Shortcuts1.14Examples like - Add, Multiply,Divide, Log,Odd Even,Trignometric, Logic Gates,Binary to Decimal

2Modular Programming2.01 INTRODUCTION2.02Build VI Front Panel and Block Diagram2.03 Icon and Connector Pane2.04Creating Icon2.05Building a Connector Pane- Assigning Terminals to Controls and Indicators, Confirming Terminal Connections, Deleting Terminal Connections, Setting Required I/p & O/p2.06Displaying SubVis and Express Vis2.07Creating Subvis from the sections of VI2.08Opening and Editing SUbVis2.09Placing Subvis on Bloack Diagrams2.10Creating Standalone Application- Building Exe and Installer

Page 2: LabVIEW

2.11ExamplCreate Vi to find average of two numbers and convert a section of vi into subvi, Find roots of a quadratic equation using subvis

3Repetition and Loops3.01 Introduction3.02For loops3.03While Loops3.04Structure Tunnels3.05Terminals Inside and Outside Loops3.06Shift Registers- Initializing, Stacked, Relplacing Tunnels with Shift, replacing Shift with Tunnels3.07Feedback Node3.08Control Timing3.09Communicating Among Multiple loops3.10Local Variables3.11Global Variables3.12Examples

3.121create vi to find factorial of the given number using for loop3.122Find Fibinocci series3.123Create vi to find sum of first n natural numbers using while loop with a feed back node3.124Create a vi which converts decimal to binary number using for loops3.125Create VI to find nCr and nPr of a given number using for loop3.126Create VI whose 5 boolean controls are filled with configured fill colors and glows in given specific time.3.127Create VI to estimate the execution time for calculating Factorial of number, Output should give start time, execution time and End time of program.

4Array4.01 Introduction4.02Arrays in Labview4.03Creating 1-Dimentional Array controls, indicators and constant4.04Creating two-Dimensional Arrays4.05Creating Multi-Dimensional Arrays

Page 3: LabVIEW

4.06 Initializing Arrays4.07Deleting Elements rows,Columns, and Pages within Arrays4.08 Inserting Elements rows,Columns, and Pages within Arrays4.09Replacing Elements rows,Columns, and Pages within Arrays4.10Array Functions4.11Auto Indexing4.12Matrix operations with Array4.13Examples

4.13.1 Create a 1 D numeric array which consists of ten elements and rotate ten times. For each rotation display the equivalent binary number of first Array element in the form of a boolean array .Also Display the reversed boolean array.Provide delay to view the rotation

4.13.2 Create Two 2D numeric arrays and add them.Chnage the number of rows and number of coulmns of each array and see the result4.13.3 Build Vi that generates a 1 D array.Multiply the array elements by scaling factor and find the resultant array.Create subset array from resultant array4.13.4 Build Vi to find sum and Product of Array elements

5Cluster5.01 Introduction & Creating cluster controls and Indicators5.02Creating Cluster Constant5.03Order of Cluster Elements5.04Cluster Operations5.05Assembling Clusters5.06Disassembling Cluster5.07Conversion between Array and Cluster5.08Error Handling and Error Cluster5.09Typedefs and Strict Typedefs5.10Examples

5.10.1 Create a VI to check weather the cluster elements are in range or not.Specify the upper and Lower limits.Display the corrected output and a cluster of LEDs to indicate weather a particular cluster elements is in the range

5.10.2 Create a VI to compare clusters and Switch ON an LED in the output cluster if the nth element of cluster 1 is greater than nth element of the cluster 2

Page 4: LabVIEW

5.10.3 Array of Cluster consists 3 boolean controls Fill Control and ON time.Execute the controls behaviour based on this input. For Example Control1 input Fill color is Red and Glow Time is 2 secs then Control1 should fill the color with Red and LED should be ON for 2 secs.

6Plotting of the Data6.01Type of Waveforms6.02Waveform Graphs- Displaying Single and Multi plot6.03Waveform Charts- Displaying Single and Multi Plot6.04Waveform Data Type6.05XY Graphs- Displaying Single and Multi plot6.06 Intensity Graphs and Charts6.07Digital Waveform Graphs6.083D graphs6.09Customizing the Graphs and Charts

6.09.1 Using Multiple X and Y co ordinates6.09.2 Autoscaling6.09.3 Formatting X ad Y Scales6.09.4 Using the Graph and Chart Apperance6.09.5 Exporting Images of Graphs, Charts and Tables

6.10Customizing Graphs6.10.1 Using Graph Cursors6.10.2 Using Graph Annotations

6.20Customizing Charts6.20.1 Chart History Length6.20.2 Chart Update Modes6.20.3 using Overlaid and Stack plots

6.30Dynamically formatting Waveform Graphs6.40Configuring a Grpah or chart6.50Examples

6.50.1 Build VI that generates 50 random numbers and plot it on a waveofmr chart using For and While Loops.Accumulate the random numbers into an array and display it on waveform graph.

Page 5: LabVIEW

6.50.2 Build a VI to generate sine waveform with options to vary the amplitude, number of waves, Offset t0,number of points in a waveform and Delta t6.50.3 Using the above VI as sub VI.Find the maximum and minimum values of the waveform and the time at which the waveform is maximum and minimum.6.50.4 Build a VI to plot a circle in the XY Graph using for loop6.50.5 Build a VI to examine the differences charts types like Strip chart, Scope Chart and Sweep chart

7Structures7.01Case Structure

7.01.1 Case Selector Value and Data Types7.01.2 Input and Output Tunnels7.01.3 Using Case Structures for Error Handling

7.02Sequence Structure7.02.1 Flat Sequence Structure7.02.2 Stacked Sequence Structure7.02.3 Using Sequence Structure7.02.4 Adding and using sequence local Terminals

7.03Customizing Structures7.03.1 Placing Structures on the Bloack Diagram7.03.2 Placing Objects inside Structure7.03.3 Resizing Structures7.03.4 Adding Cases to the middle of an ordered list7.03.5 Adding, Duplicating and Deleting SubDiagrams

7.04Timed Structure7.04.1 Timed Loop Structure7.04.2 Time Sequence Structure7.04.3 Timed loop with Frames Structure

7.05Formula Nodes7.05.1 Using Formula Node7.05.2 Creating formula Nodes7.05.3 Scope Rules for declaring Variables in Formula Node

Page 6: LabVIEW

7.06Event Structure

8Labview Architectures8.01Standard State Chart Machine 8.02String Architecture8.03Enum Architecture8.04Examples

8.04.1 Create VI to Add or Subtract two numbers using Standard state Chart Machine

9Strings and File IO9.01 Introduction9.02Creating String Controls and Indicators

9.02.1 Tables9.03String Functions

9.03.1 Converting Numeric values to strings9.03.2 Converting string to numeric

9.04Editing, Formatting and Parsing Strings9.05Formatting Strings

9.05.1 Array to spread sheet string9.05.2 Spread Sheet string to array9.05.3 Scan from string9.05.4 Format into string9.05.5 Format Value9.05.6 Scan Value9.05.7 Scan from File9.05.8 Format into file

9.06Configuring String Controls and Indicatorsd9.06.1 Normal Display

Page 7: LabVIEW

9.06.2 BackSlash Codes Display9.06.3 Password Display9.06.4 Hex Display9.06.5 Limit to Single Line9.06.6 Update Value while Typing9.06.7 Enable Wrapping

9.07Basic of File Input/Output9.08Choosing File I/O Format

9.08.1 Use of Text File9.08.2 Use of Binary File9.08.3 Use of Datalog file9.08.4 INI File

9.09Labview Data Directory9.10File I/O Vis

9.10.1 Disk Steaming with low level FunctionsHigh Levele File I/O

9.11Creatng Relative Path9.12Examples

9.12.1 Create a VI which user has to give Multi line String Input.Count number of words and number of repeating words of multi line text.Further display the repeatinng words oof the input text

9.12.2 Create a VI to format Date and Time with required format.9.12.3 Use the Array to SpreadSheet String Function to format an Array of data in the spreadsheet format.Use the spreadsheet String to array function9.12.4 to convert a spreadsheet string to an array format9.12.5 Create a table which consists of user names and passwords.Input a username and a password.Check weather both the username and password match the

contents of the table.If they are matched glow 'Access Given' LED, otherwise glow 'Access Denied' LED.Also Display the username9.12.6 Create a VI to split numbers and words available in a string. Display the splitted numbers and words in separate arrays9.12.7 Create a VI to open a file and display the size of the File( in Bytes).9.12.8 Create numbers from 1 to 6 with Tab as delimiter.Write this data in a spreadsheet file.Replace the tab delimiter by comma and write in another spreadsheet file9.12.9 Creae a VI to Read/write both 2D string array and 2D numeric data into binary file

Page 8: LabVIEW

10Instrument Control10.01 Introduction10.02GPIB Communication

10.02.1Data Transfer Termination10.02.2Data Transfer Rate

10.03Hardware Specifications10.04Software Architectures

10.04.1Max(Windows:GPIB)10.05 Instrument I/O Assistant10.06VISA

10.06.1VISA Programming Terminology10.06.2VISA and Serial

10.07 Instrument Drivers10.07.1Instrument Driver Vis

10.08Serial Port Communications10.08.1Data Transfer Rate10.08.2Serial Port Standards

10.09Using Other Interfaces10.10Examples

10.1Detect the Serial Port RS232 device connected in system and communicate the instrument through Labview10.1Use Max to examine the GPIB I/f Settings, Detect Instruments and Communicate with an Instrument10.1Develop a VI in Labview to Communicate GPIB Instrument10.1Build a VI that reads and writes information from NI Instrument simulator using VISA Functions

Page 9: LabVIEW

BASIC LABVIEW TRAINING

Training By

Software Environment- Front Panel Windows, Block Diagram Windows, Icon/Connector Pane

Block Diagram - Terminals,Nodes,Functions, SubVis,Express Vis, wiresData Types- Numeric, String, Boolean,Fixed Point and Variant

Examples like - Add, Multiply,Divide, Log,Odd Even,Trignometric, Logic Gates,Binary to Decimal

Training By

Building a Connector Pane- Assigning Terminals to Controls and Indicators, Confirming Terminal Connections, Deleting Terminal Connections, Setting Required I/p & O/p

Creating Standalone Application- Building Exe and Installer

Page 10: LabVIEW

Create Vi to find average of two numbers and convert a section of vi into subvi, Find roots of a quadratic equation using subvis

Training By

Shift Registers- Initializing, Stacked, Relplacing Tunnels with Shift, replacing Shift with Tunnels

create vi to find factorial of the given number using for loop

Create vi to find sum of first n natural numbers using while loop with a feed back nodeCreate a vi which converts decimal to binary number using for loopsCreate VI to find nCr and nPr of a given number using for loopCreate VI whose 5 boolean controls are filled with configured fill colors and glows in given specific time.Create VI to estimate the execution time for calculating Factorial of number, Output should give start time, execution time and End time of program.

Training By

Creating 1-Dimentional Array controls, indicators and constant

Page 11: LabVIEW

Deleting Elements rows,Columns, and Pages within ArraysInserting Elements rows,Columns, and Pages within ArraysReplacing Elements rows,Columns, and Pages within Arrays

Create a 1 D numeric array which consists of ten elements and rotate ten times. For each rotation display the equivalent binary number of first Array element in the form of a boolean array .Also Display the reversed boolean array.Provide delay to view the rotationCreate Two 2D numeric arrays and add them.Chnage the number of rows and number of coulmns of each array and see the resultBuild Vi that generates a 1 D array.Multiply the array elements by scaling factor and find the resultant array.Create subset array from resultant arrayBuild Vi to find sum and Product of Array elements

Training By

Create a VI to check weather the cluster elements are in range or not.Specify the upper and Lower limits.Display the corrected output and a cluster of LEDs to indicate weather a particular cluster elements is in the rangeCreate a VI to compare clusters and Switch ON an LED in the output cluster if the nth element of cluster 1 is greater than nth element of the cluster 2

Page 12: LabVIEW

Array of Cluster consists 3 boolean controls Fill Control and ON time.Execute the controls behaviour based on this input. For Example Control1 input Fill color is Red and Glow Time is 2 secs then Control1 should fill the color with Red and LED should be ON for 2 secs.

Training By

Build VI that generates 50 random numbers and plot it on a waveofmr chart using For and While Loops.Accumulate the random numbers into an array and display it on waveform graph.

Page 13: LabVIEW

Build a VI to generate sine waveform with options to vary the amplitude, number of waves, Offset t0,number of points in a waveform and Delta tUsing the above VI as sub VI.Find the maximum and minimum values of the waveform and the time at which the waveform is maximum and minimum.Build a VI to plot a circle in the XY Graph using for loopBuild a VI to examine the differences charts types like Strip chart, Scope Chart and Sweep chart

Training By

Scope Rules for declaring Variables in Formula Node

Page 14: LabVIEW

Training By

Create VI to Add or Subtract two numbers using Standard state Chart Machine

Training By

Page 15: LabVIEW

Create a VI which user has to give Multi line String Input.Count number of words and number of repeating words of multi line text.Further display the repeatinng words o

Create a VI to format Date and Time with required format.Use the Array to SpreadSheet String Function to format an Array of data in the spreadsheet format.Use the spreadsheet String to array functionto convert a spreadsheet string to an array formatCreate a table which consists of user names and passwords.Input a username and a password.Check weather both the username and password match the contents of the table.If they are matched glow 'Access Given' LED, otherwise glow 'Access Denied' LED.Also Display the usernameCreate a VI to split numbers and words available in a string. Display the splitted numbers and words in separate arraysCreate a VI to open a file and display the size of the File( in Bytes).Create numbers from 1 to 6 with Tab as delimiter.Write this data in a spreadsheet file.Replace the tab delimiter by comma and write in another spreadsheet fileCreae a VI to Read/write both 2D string array and 2D numeric data into binary file

Page 16: LabVIEW

Training By

Detect the Serial Port RS232 device connected in system and communicate the instrument through LabviewUse Max to examine the GPIB I/f Settings, Detect Instruments and Communicate with an InstrumentDevelop a VI in Labview to Communicate GPIB InstrumentBuild a VI that reads and writes information from NI Instrument simulator using VISA Functions

Page 17: LabVIEW

Building a Connector Pane- Assigning Terminals to Controls and Indicators, Confirming Terminal Connections, Deleting Terminal Connections, Setting Required I/p & O/p

Page 18: LabVIEW

Create Vi to find average of two numbers and convert a section of vi into subvi, Find roots of a quadratic equation using subvis

Create VI to estimate the execution time for calculating Factorial of number, Output should give start time, execution time and End time of program.

Page 19: LabVIEW

Create a 1 D numeric array which consists of ten elements and rotate ten times. For each rotation display the equivalent binary number of first Array element in the form of a boolean array .Also Display the reversed boolean array.Provide delay to view the rotationCreate Two 2D numeric arrays and add them.Chnage the number of rows and number of coulmns of each array and see the resultBuild Vi that generates a 1 D array.Multiply the array elements by scaling factor and find the resultant array.Create subset array from resultant array

Create a VI to check weather the cluster elements are in range or not.Specify the upper and Lower limits.Display the corrected output and a cluster of LEDs to

Create a VI to compare clusters and Switch ON an LED in the output cluster if the nth element of cluster 1 is greater than nth element of the cluster 2

Page 20: LabVIEW

Array of Cluster consists 3 boolean controls Fill Control and ON time.Execute the controls behaviour based on this input. For Example Control1 input Fill color is

Build VI that generates 50 random numbers and plot it on a waveofmr chart using For and While Loops.Accumulate the random numbers into an array and display it on waveform graph.

Page 21: LabVIEW

Build a VI to generate sine waveform with options to vary the amplitude, number of waves, Offset t0,number of points in a waveform and Delta tUsing the above VI as sub VI.Find the maximum and minimum values of the waveform and the time at which the waveform is maximum and minimum.

Page 22: LabVIEW

Create a VI which user has to give Multi line String Input.Count number of words and number of repeating words of multi line text.Further display the repeatinng words o

Use the Array to SpreadSheet String Function to format an Array of data in the spreadsheet format.Use the spreadsheet String to array function

Create a table which consists of user names and passwords.Input a username and a password.Check weather both the username and password match the contents of the table.If they are matched glow 'Access Given' LED, otherwise glow 'Access Denied' LED.Also Display the usernameCreate a VI to split numbers and words available in a string. Display the splitted numbers and words in separate arrays

Create numbers from 1 to 6 with Tab as delimiter.Write this data in a spreadsheet file.Replace the tab delimiter by comma and write in another spreadsheet file