SCI2150 Computer Technology for the Sciences

Course Homepage

 

Syllabus

 

Here are the files that go with the Labview 2009 student edition book :   learning_lv2009

Here are some Labview vis that will be useful

ReadTemp SensorDaq or LabPro.vi This vi reads a temperature sensor plugged in to channel 1 of the sensorDAQ or LabPro.  If no sensorDAQ or LabPro is connected, a window with a manual control will pop up, allowing the temperature sensor to be simulated. (ReadTemp.vi  can be used for SensorDaq only)

Here is an xy graph example that rotates shapes.

Exam Files

Here is the Balloon Flight Data Altitude and Temp.txt file for exam 2!

Here is Scrolling Sign Indicator Only.vi which contains the array indicator formatted for the scrolling sign problem.  If you are using the student version, here is the file for LabView 2009.

LAB FILES

The reaction timer example is located here, and you will need the register read/write vi here.  A Reaction Timer example that lets you choose between left and right can be downloaded here. (note, this will only work with version 1.4 or later of the board logic) If you need the example and read/write vi for earlier versions of LabView, they are located in a zip file here.

Hitec Servo Labview vis.    Solar Tracker Sun Angle Calculator vis

Digital Output control vis for controlling lights, heaters, etc.

Robot Project:

The Lego NXT labview toolkit for windows is here.  A command server and a test application for communicating to the NXT brick are here.  Here is the programming guide and the getting started guide for the labview NXT toolkit. 

Here is an example vi that sends a single command to the commandserver running on the NXT.  Here is a simple vi that can serve as the start of your robot vi.

Here is a link to the sensordaq drivers and the installation instructions if you want to run any of the experiment vis on your own computer.  You will also need to install DAQmx 8.6 (or later) from the NI website.

Homework Assignments

Homework #1  Bishop E2.2, E2.4, E2.6, E2.9, P2.2, P2.3, P2.8, D2.2, D2.3, D2.6 

Homework #2  Bishop E3.1, P3.1, P3.6, D3.1, D3.3

Homework #3  Bishop E4.3, E4.6, P4.3, P4.5, D4.1, D4.2

Homework #4  Bishop E5.4, E5.5, E5.8, P5.2, P5.3, P5.4, P5.6, P5.8, D5.3, D5.4, D5.6

Homework #5  Bishop E6.5, E6.7, P6.1, P6.7, P6.10, D6.2, D6.3, D6.6

Homework #6  Bishop E9.1, E9.8 ,D9.2, D9.3, and the following:

C1. Write a "temperature logger" vi that reads the temperature (using ReadTemp.vi) and outputs the time (in seconds since the vi started) and temperature to a file every 10 seconds.  Each data point should be on a separate line, and the time and temperature should be separated by a "tab" character. When the vi is started, the current time and date should be written to the file.  The file name should be entered in a file dialog box only once when the vi is started.  Load the file into Microsoft Excel and use Excel to plot the temperature versus time. 

C2.  Write a vi that parses a "command" string that has a text command followed by three integer numbers. The numbers and command may be separated by any number of spaces, but the command will contain no spaces.  The command string should be input on a front-panel control. Show the command and the three numbers using indicators on the front panel.  For example, a command might be "Move 5 3 1"

C3.  Write a vi that scrambles a text message by adding a number between 1 and 10 to the ASCII value of each character.  The original text message should be in all CAPITAL letters.  The vi should have a "encode/decode" switch on the front panel to select if the text string should be either encoded or decoded.

Homework #7  Bishop E7.3, P7.7, D7.3, and the following:

C4 Write a vi that displays a graph showing a red triangle inside a blue circle.  The vertices of the triangle should be on the circle.

C5  Write a vi that displays a rotating polygon with N sides.  Create a control for the rotation rate and the size of the polygon.

C6. Write a vi that reads the temperature and time data generated in c1 above and displays it on a graph.

Projects

Project 1:  Using the provided "command server" and lego bluetooth communication vis, write a labview program that will send your lego robot along a path.  You will need to implement commands to turn left or right and go forward and backward.  The forward and backward commands should accept distances in inches, and the left and right commands should accept angles in degrees.  Your labview program should have a means of calibrating the robot so that you can obtain the most accurate results.  On the last day of class, a course will be specified and we will have a "robot contest".  The robot that completes the course and is closest to the proper end position will win the contest. 

 

 

Project 2 :

Option 1: Propose an experiment that can be controlled by a computer.  The experiment must generate data that can be presented in a scientific paper or presentation.     In the past, students have conducted experiments on plant photosynthesis using oxygen and CO2 sensors, as well as nonlinear dynamics experiments using a damped, driven physical pendulum. 

Option 2: Using the reaction timer apparatus and the interface vis provided above, conduct an experiment on human reaction time.  The apparatus is capable of generating an audio or visual stimulus (or both), and varying the properties of the stimulus.  Once the apparatus is configured, it is commanded to "start" the test, and when the subject pushes the button on the apparatus the test is complete and the reaction time can be read.   There are two main types of experiments you can perform.  One type of experiment could measure the effects of a controlled parameter that can be varied continuously over a range.  For example, you may wish to explore the dependence of reaction time on the frequency of the sound used as the "stimulus".   The other type of experiment could test different external conditions.  For example, you may wish to determine if a person's reaction time improves after the person has exercised for a certain amount of time.    For both types of experiments, be sure to take enough samples to properly analyze your data.  Write a LabView vi that controls the experiment and saves the data to a file.  Your data should be analyzed in Excel.

Presentation:  Create a powerpoint presentation for a 10 minute talk about your project results.  The presentation should begin with an outline and an introduction, and the data should be presented in graphical form.  The results should then be discussed, and the presentation should end with a brief conclusion.   You will not have to actually give the presentation.

Paper:  Using this example as a guide, prepare a paper about your experiment.  Be sure to include any relevant data tables, illustrations and graphs.  Also be sure to format your paper to duplicate the "scientific journal" format used in the example handout.

 

 

 

 

 

 

 

Home    Current Courses    Publications/Presentations    Current Projects    Links    Resume/Vita