Category Archives: How Do I

How Do I

Tutorials on how to do various things

Specify NXT/EV3

There is a function in the MINDSTORMS Module for LabVIEW that allows you to specify a particular NXT or EV3 connected to your computer.  This is useful in Direct Mode only when you might have more than one brick connected (via USB or Bluetooth) and want different parts of your code to use particular functions […]

Read More

Midterm Exam Review Questions

Here is a practice exam.  And the answers. Here are solutions to the midterm exam review questions LEGO MINDSTORMS and LabVIEW Exam Questions: Calculating Gear Ratios Related Help Videos: Gear Trains Part 1: https://www.youtube.com/watch?v=oc6KYnBu7AM Gear… LEGO MINDSTORMS and LabVIEW Exam Questions: Color Modes Related Help Videos: Color Sensor Part 1: https://www.youtube.com/watch?v=if1yk4WiaiQ Color Sensor Pa… LEGO […]

Read More

Front Panel Control (v4)

These tutorials explore further the options of loading in images into a Front Panel Control (background) and loading images on top of that (e.g. moving images in front of the background).  Here is a backgroud loaded, and then a masked image moving in front.  Here is the code to make the masked image move across […]

Read More

Front Panel Picture Control (v3)

This takes a Front Panel Picture Cotnrol and adds random balls (determined by the user before beginning) and moves them around the screen.  The position and direction they are heading (x-pos, y-pos, x-dir, y-dir) is determined by the cluster values stored in an array (one cluster per ball).  The direction, for both x and y, […]

Read More

Front Panel Picture Control (pt 2)

This code introduces arrays.  It creates two different arrays: the first (for the horizontal position), is a constant array of 5 elements that are hard-coded/pre-set.  The second (for the vertical position), randomly generates the five points (so different each time the code is run).  Version one of the code controls a small dot on the […]

Read More

Front Panel Picture Control (pt 1)

This example shows how to draw circles on a Front Panel Picture Control and then control circles position via the LEGO motor.   Location of Front Panel Picture Control (add to your Front Panel) Here is the “output” of the code, drawing two empty circles for eyes and then controlling (by the motor) the inner filled-in […]

Read More

Bluetooth with NXT

These are some tutorials used in Fall 2013 when the class used the NXT brick (the previous LEGO MINDSTORMS before the EV3) on how to do NXT-to-NXT communication (both with Bluetooth and other techniques). NXT-to-NXT Communication: https://es93-06.k12engineering.com/2013/10/10/nxt-to-nxt-communication/ Send NXT Motor Commands: https://es93-06.k12engineering.com/2013/10/17/nxt-to-nxt-send-motor-commands/ Remote Control Example: https://es93-06.k12engineering.com/2013/10/17/remote-control-two-way-communication/

Read More

Playing Sound in LabVIEW

1) STEP 1: Create sound file using Audacity( http://audacity.sourceforge.net/ ) or similar program. Export the edited file in .wav format to your desktop. 2) STEP 2: In the Labview Front Panel, Create a path to the file ( Modern—String and Path— File Path). Use the Operate Value (finger) to locate (provide a path to) your sound file on the desktop. […]

Read More

Daisychaining Multiple EV3s

You can create up to four linked EV3s (a “Master” and three layers of “Slaves”). Refer tutorial attached for instructions. To access sensor values on a sensor connected to a Slave, you need to use the “Sensor Port” constant.  It is not possible to do this by simply “right-click > create constant” on the Read […]

Read More

Motor Speed via Motor Rotation

Drive the speed of one motor by the amount of rotation of a second. This (version 1) directly inputs the value of the B motor into the power of the A motor.  The “reset rotation” at the beginning of the code, before the start of the While Loop, just ensures when the program starts it […]

Read More

Motor Speed via Light Sensor

How to control the speed of a motor based on the value read on the light sensor.  This (Version 1) reads the ambient light in the room and drives the power of the motor. It happens continuously and instantly.  Covering up the light sensor (making it “go to zero”) will stop the motor; putting the […]

Read More