Example Programs

Showing results for 
Search instead for 
Did you mean: 

FPS with Real Guns Code

by Active Participant Doug_L._Bear ‎08-05-2009 06:01 PM - edited ‎01-27-2017 04:11 AM

Overview

This is the code that was used to play Half Life (the flash version) with real guns shooting into a piece of drywall.

 

Description

The accelerometers will take in vibration data to triangulate the location of a hit on the wall. This program uses linearized math for simplicity, and ease of use, and therefore has some inherent offset error.  We used a USB-4432 and 4 accelerometers in a square pattern on the wall. The VI's are saved in LabVIEW version 8.6.The math behind all this is available at http://decibel.ni.com/content/docs/DOC-6126

 

Requirements

Hardware

  • USB-4432
  • Accelerometers

Software

  • LabVIEW 2012 or compatible

 

Steps to Implement or Execute Code

1.Download and set up all VI's

2.Set all configuration settings desired with your hardware

3.Run application.

 

Additional Information or References

 

 

 

Main.png

 

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Comments
Active Participant pallen
Active Participant

This is too awesome!

Thanks for putting this one up.