Labview Tutorial A: Extra Features

Labview Tutorial A: Extra Features

<p>TAMPL REU 99 LabVIEW Tutorial</p><p>LabVIEW Tutorial 2: Simple Programs</p><p>Goal of this tutorial: To become more familiar with programming in LabVIEW by completing simple exercises. Each exercise is followed by a brief description of the program’s function and the techniques needed to complete it. Asterisks following the exercise indicates its difficulty (* - easiest, *** - most difficult). </p><p> Exercise 1: Simple Calculator * Make a program which lets the user input two numbers, choose an operation (one of add, subtract, multiply, or divide), and display the result. This program includes arithmatic operations and case structure. For additional exercise, make this calculator into a sub-vi with three inputs (the two numbers and the operation) and one output, and demonstrate that it works by using it in another program.</p><p> Exercise 2: Sine-Wave Generator ** This program should allow the user to input the amplitude and wavelength (period), generate the specified wave from x = 0 to 10, and plot it on a graph. Programming techniques used include arrays, arithmatic operations, for-loops, graphing. [Hint: The sin(x) in LabVIEW is at Functions  Numeric  Trignometric  Sine.] For additional exercise, save the result in a 2-column spreadsheet file and plot it on Excel.</p><p> Exercise 3: Stop Watch * Make a program that starts counting time when you click on “run.” It should have a switch that you can click on to stop the program, at which time the total elapsed time in displayed in seconds. You will need while loops and sequence structure with sequence locals for this program.</p><p> Exercise 4: De-bugging Exercise *** Goto the website: www.tufts.edu/as/tampl/program99/, and follow the link to Tutorials page. Download the debugging exercise. There have been several syntax and runtime errors built into the program. Using error list, lightbulb, and probes, debug the program so that it performs the task it was meant to do. [Hint: first correct all the syntax errors so that the program can compile, then run the program to detect runtime errors.] The text box in the front panel explains what the program was meant to do.</p><p>Check the web for solutions: www.tufts.edu/as/tampl/program99/  follow link to Tutorials</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us