Example Code

Sonar simulation with 3 microphones with LabVIEW

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

Use this VI to simulate a Sonar made up by three microphones

 

Description

Simulates acoustic bearing (range and angle) estimation on an 180 degree arc. The true target follows a semi-circle of defined radius. The delays are estimated using the PHAT algorithm (phase-transform based on generalized cross-correlation). The microphones are in a straight line normally the same distant apart. The reference mic is the centre one assumed to be at (0,0).

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Open Main.vi

2. Select scan radius
3. Run Main.vi

 

Additional Information or References
Block Diagram

 

Sonar simulation with 3 microphones with LabVIEW.png

 

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

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