Example Code

myRIO FPGA Sine Wave Sound Output

Code and Documents

Attachment

Overview

This simple code shows how to output sound in the form of a sine wave to the audioout of the myRIO using the FPGA. The sine generation VI is configured with the appropriate bit type for the output specification of the myRIO, allowing a representative frequency range.

Description

Using simple scaling and the sine wave generator VI, it is relatively straightforward to output sound on the myRIO, using the FPGA.

Steps to Implement or Execute Code

  1. Place VI under myRIO FPGA target in a LabVIEW project
  2. Compile the VI
  3. Run the VI

Requirements

Software

NI LabVIEW 2013

Hardware

NI myRIO

Additional Images or Video


snipsnip.png

Matt H
Applications Engineer
National Instruments UK

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

Comments
Lucas_Tadeu_Salomao
Member
Member
on

Hello,

I know exactly the same VI and I am getting an error when I analyze with the oscilloscope. The frequency is a bit above the set

I need to generate a 5Khz signal and when measure is going out 5800Hz.

Please I need help.

Contributors