lab 5- ir tracking southern methodist university bryan rodriguez

8
Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

Upload: antony-douglas

Post on 05-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

Lab 5- IR tracking

Southern Methodist University Bryan Rodriguez

Page 2: Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

Objectives:

• Learn how to acquire information from the Wii remote’s IR camera

Southern Methodist University Bryan Rodriguez

Page 3: Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

Clarification from previous lab-

In the last lab, the charts we generated were using information from the Wii remote’s accelerometer, not the IR camera.

The X, Y, and Z values we saw corresponded to the axis of motion felt by the accelerometer.

This week’s lab we will be using the IR camera to obtain the coordinates of an IR source. This time the X and Y values we see will be the Cartesian coordinates.

Southern Methodist University Bryan Rodriguez

Page 4: Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

Getting started (Refer to Lab 3 if you need help) -

1.Establish the Bluetooth communication between the Wii remote and the PC.

2.Run the WiimoteTest.exe file to initialize the Wii remote

3.Open the Acquisition + IR (polled) . Vi lab sheet

Southern Methodist University Bryan Rodriguez

Page 5: Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

Getting IR data-

1.We will be doing a similar process as we did last semester. This time we will “tap” into the IR state wire.

2.Use Context Help to see what information is available.

3.Right click and connect the “Unbundle by name” block to this wire.

Note- Each element is actually an array of elements. This has to be kept in mind as we attempt to access the elements.

4. We need to add and connect the following block to our project:

•Decimate 1D array (Block diagram: Right click on element bock > Array Palette) •Bundle (Block diagram: Right click on element bock > ClusterPalette) •XY graph (On front panel: Right click and search)

Southern Methodist University Bryan Rodriguez

Page 6: Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

Testing your project-

If everything is working properly you should be able to point your Wii remote at an IR source and you should be able to see the point on your XY graph.

If you would like to adjust your scale just click and type over the axis value.

Try plotting using a connection from X/Y values and Raw X/Y values and compare the axis values.

Southern Methodist University Bryan Rodriguez

Page 7: Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

Questions:

1.What are the domain and range limits of the IR camera as reported by your XY graph axis for both X/Y values and Raw X/Y values ?

2.What are the data types of X/Y values and Raw X/Y values? example: string, char, single, double, long, boolean, etc.

3.What is a data array?

4.How does an array relate to the X/Y values and Raw X/Y values?

Southern Methodist University Bryan Rodriguez

Page 8: Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

Southern Methodist University Bryan Rodriguez