Example Code

Continuous Sound Input for LabVIEW Communications System Design Suite 2.0

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
  • LabVIEW Communications

Code and Documents

Attachment

Description

Overview

Demonstrates the use of the Sound Input Functions to acquire sound samples continuously with the use of a microphone attached to the sound card. This is a port of the Continuous Sound Input.vi from LabVIEW 2016 to LabVIEW Communications System Design Suite 2.0.

Description

This VI illustrates how to acquire sound samples continuously from a specified device. It requires the use of a microphone attached to the sound card. You can specify the number of samples to acquire, sample rate, number of channels and a bit rate per sample. The VI also plots the raw data as the acquisition is made.

Hardware and Software Requirements

Microphone

LabVIEW Communications System Design Suite 2.0 or compatible

Steps to Implement or Execute Code

  1. Unzip Continuous Sound Input.zip
  2. Open Continuous Sound Input.gvi
  3. Specify the Device ID and Number of Samples/ch.
  4. Run the VI.
  5. The VI will continuously acquire samples and plot the raw data to the graph.
  6. Click Stop to stop the VI.

Additional Information or References

Sound Input VIs Help 

Michael Bilyk
Former NI Software Engineer (IT)

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

Comments
jmendez04
Member
Member
on

Hi.

I need some guidance, i am trying to develop a vi with the intention to generate a random frequency from 20- 2 Khz, with the purpose of to build a vibration home made system. I have to accelerometers with 10mV/g.

 

do you know how can i be oriented in that matter. 

 

thanks