From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

NI Week 2009 WIFI Basketball Dunk Demo Code

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This demonstration used an NI WLS 9234 to take acceleration data from an accelerometer mounted on the underside of the basketball rim and recorded the dunk using a USB camera.

.Description
This example when a dunk occurred, the demo would record the vibrations and video from the dunk and display them on the screen allowing the user to select their in action 'game face' still frame. Finally, the demo determined the level of the dunk, played an appropriate sound, saved a screen shot of the front panel to disk, and had an option to email the results to the player.

The code itself demonstrates various techniques including buffered data acquisition, ring style video acquisition, software triggered video acquisition, an event based user interface, and few other smaller features such as playing sounds, taking screen shots, and sending emails

 
Requirements

  • LabVIEW 2012 (or compatible)
  • NI Vision Acquisition Software 2012
  • DAQmx 12.0 or compatible


Steps to Implement or Execute Code

 

  1. Open BBallD Demo.lvproj to access the main level VI and all required sub-VI's
  2. Open the Main.vi
  3. Use the Context Help to get more information about what each sub VI does

 

Additional Information or References
Labview front panel

 

 1.png

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Hope this helps.
-Ben

WaterlooLabs

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.