Example Programs

Showing results for 
Search instead for 
Did you mean: 

FPS with Real Guns Code


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



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




  • USB-4432
  • Accelerometers


  • 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






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

Doug Farrell
Solutions Marketing - Automotive
National Instruments

National Instruments Automotive Solutions
Active Participant pallen
Active Participant

This is too awesome!

Thanks for putting this one up.

Patrick Allen: FunctionalityUnlimited.ca