Motor Simulation using Labview

Topics: Control theory, Output, Input Pages: 27 (2604 words) Published: April 18, 2014
Graduate Lab
Lab 1 :- Introduction to LabVIEW
LabVIEW (short for Laboratory Virtual Instrument Engineering Workbench) is a system-design platform and development environment for a visual programming language from National Instruments. It uses a graphical programming language called G to produce its code. LabVIEW is commonly used for data acquisition, instrument control, and industrial automation on a variety of platforms including Microsoft Windows, various versions of UNIX, Linux, and Mac OS X.

LabVIEW programs/subroutines are called virtual instruments (VIs). Each VI has three components: a block diagram, a front panel and a connector panel. The front panel is built using controls and indicators. Controls are inputs – they allow a user to supply information to the VI. Indicators are outputs – they indicate, or display, the results based on the inputs given to the VI. The block diagram contains the graphical source code. All of the objects placed on the front panel will appear on the block diagram as terminals. The block diagram also contains structures and functions which perform operations on controls and supply data to indicators. The connector panel is used to represent the VI in the block diagrams of other, calling VIs.

In Lab 1 we were given 3 assignments so that we get acquainted to the LabVIEW environment and know its general command and functions

Assignment 1 :Build a VI to perform basic mathematical functions like addition, subtraction, multiplication and division.

Procedure :1:-In the Front Panel window insert 2 numeric controls and label them as variable 1 and 2. 2:- In the Front Panel window insert 4 numeric indicators and label them as Addition, Subtraction, Multiplication and Division and Insert the STOP button in the front panel.

3:- Now , in the block diagram window , properly wire variable 1 and 2 with different numeric indicators by using different numeric functions (like add, subtract etc.). Run the program now to test whether the connection is working or not.

4:-Since we don’t want to push the run button every time when we change one of the variables, we can use while loop so that it updates the results according to the variables until we push STOP button. Code inside the while loop will be executed until a statement to be specified is True.

5:-We see that division by zero is not possible hence we insert a comparison statement ‘equal to zero’ for the variable 2, such that when we enter zero in variable 2 the loop gets stopped as the statement specified turns out to be True. 6:- Connect the STOP button and the above Condition with the Loop condition and Run the program.

Block Diagram and Front Panel are on the next page for your reference .

Fig. 1:- VI Block Diagram

Fig. 2:- VI Front Panel

Assignment 2 :Build a VI to generate Random Numbers with an oscilloscope like display.

Procedure:1:- In the Front Panel window, insert the STOP button, a Knob (to determine the desired delay between the random numbers) and a waveform chart.
2:-In the block diagram window, insert a while loop and connect STOP button with the loop condition. 3:-In order to display random numbers wire directly the random number generator with the Waveform graph inside the while loop.

4:-This will produce the random numbers way too fast; hence in order to delay the random number generation we insert ‘Wait until Next ms Multiple’ function from the control palette and connect it to the knob. 5:- Finally we insert the condition for knob such that when it comes to zero the loop automatically breaks.

Below is the Block Diagram and Front Panel for your reference .

Fig. 3:- VI Block Diagram

Fig. 4:- VI Front Panel

Assignment 3:Build a main VI and a sub VI . The main VI must have options for choosing the reference signal ( like sinusiodal,tringular and square ) and must allow user to specify amplitude, frequency and a time interval. The sub VI should generate the desired signal and display it on the...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Essay on Thorr Motors Simulation
  • Essay on Labview
  • Essay on Using Perceptual Maps in Marketing Simulation
  • Simulation of Ammonia Plant Using Hysys Essay
  • Using Perceptual Maps in Marketing Simulation Essay
  • Essay about Using Perceptual Maps in Marketing Simulation
  • Simulation Report Essay
  • Essay about simulation

Become a StudyMode Member

Sign Up - It's Free