From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Stereo Playback of N-Channel Array 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
This example VI demonstrates how to decimate an array of waveforms and split them into two channels for effective playback of an N channel array on a stereo sound card.


Description
In LabVIEW you are able to manipulate waveforms in order to be able to perform array operations on them. In this example a VI is first split, manipulated element by element and output back as an indicator of the VI. 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached files to your computer
  2. Open the VI "Waveform to Stereo LV2012 NI Verified.vi"
  3. Select a waveform as the input of the VI
  4. Run the program

 

Additional Information or References

VI Block Diagram

Waveform to Stereo LV2012 NI Verified.png

 

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

-Marshall R

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