Docsity

Laboratory II - Tutorial for LabVIEW Programming | EGR 345, Lab Reports of Engineering

Partial preview of the text

Download Laboratory II - Tutorial for LabVIEW Programming | EGR 345 and more Lab Reports Engineering in PDF only on Docsity!

Lab 2 - Tutorial for LabVIEW Programming

by Kurt VanLente November 30, 2020 For Grand Valley State University Padnos School of Engineering EGR 345

Purpose/Objective:

To learn and understand the basics of the LabVIEW program, which include wire diagram programming, data analysis, data input from outside source, and data output to outside source.

Theory:

To obtain the greatest computing versatility and efficiency we need to write computer programs. But, traditional programming languages are not well suited to designing user interfaces and dealing with data flows. Most computer programs are written with lines of program and complied to execute. LabVIEW allows you to “write” programs using graphical symbols. This graphical programming approach allows systems to be designed by connecting the symbols with lines (wires), an example is Fig 1. Fig 1.1 Example LabVIEW program/wire diagram 1 00 001 W a v e fo rm C h a rt

Equipment/Materials:

LabVIEW program CADET trainer Digital Multimeter Interface cable PC w/ PCI – 1200 DAQ card

The second part of the lab was to build a program with a GUI (graphic user interface), using a knob and output meter to control the amount of from the signal generator to a waveform chart. The results were that we could control the output voltage from zero to five volts. See fig 3.1 for GUI and Fig 3.2 for program. Fig 3.1 GUI knob and output meter Fig 3.2 Wiring Diagram for knob and output meter 1 K n o b M e te r The final part of the lab was to construct a test panel GUI with a switch and an LED, which when in the on position would scan an input and light or blink the corresponding LED and LED on the CADET trainer board. The experiment went horribly wrong, the LED would stay on with the switch in either position and the corresponding LED on the CADET trainer would not turn on.

Discussion:

None to report

Conclusion:

In summary the pre lab and first two lab experiments were successful and proved to be informative about the usefulness of LabVIEW’s flexibility as a data analysis program language. Though, data should have been collected to test whether high CPU usage does in fact slow data collection and accuracy. This would prove useful for later testing. Also, with the failure of the final test, further investigation as to the failure, either hardware or the connection structures were at fault.