Example Code

Basic Balanced Audio Demo in 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

Coding that demonstrates the effect of noise for a balanced audio system.

 

Description

Balanced Audio is the standard in the professional audio world. Balanced audio is most frequently transmitted over an XLR or TRS cable; it requires 3 conductors. The ground reference is the most important so Pin 1 is always ground. Pins 2 and 3 are the positive and negative signal, respectively. In a nutshell, the input signal is split into 2. The positive line is the same as the input signal. The negative line is the same signal but flipped (180 degrees out of phase).


When these two signals traverse the distance from the source to the destination, it is assumed that they pick up very similar noise since they travel the same path. When these two out of phase signals reach the destination, they are summed. This yields a cancellation of the noise that was picked up as it traversed its path and a doubling of the out of phase data (your original signal).


This basic demonstration simulates an input signal, allows the user to add different types of noise to the transmission line, and the see how the received signal may look.

 

Requirements

LabVIEW 2012 or compatible

 

Steps to Implement or Execute Code
1. Download and extract the zip file.
2. Open the project and run the main VI.
3. Change the input signal and play with the noise options. While not all of these noises are something that a cable would pick up in the field, the concept remains the same.

 

Additional Information or References

Snippet.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.

Comments
ssingh1
Member
Member
on

Very Nice, Thanks.