03-02-2014 12:53 PM
Hello,
I'd like to have a 2-way audio communication using myRIO.
1. I'd like to speak into a microphone on my laptop and hear my voice on a speaker connected to myRIO.
2. I'd like to speak into a microphone connected to myRIO and hear my voice on my laptop.
3. Additonally, I need to perform the above using WiFI.
I've tried the Analog Input and Ouput functionalities of myRIO in LabVIEW (attached project). I've been able to connect a microhpne to myRIO and a headphone to myRIO and speak into the microphone and hear from the headphone connected to myRIO. But I need to be able to speak into microhpne connected to myRIO and hear my voice on speakers connected to laptop.
Thank you for your helps and support.
03-02-2014 04:48 PM
Hi
You need two applications: Real Time at myRIO that will read microphone by audio input.
Result data will be waveform: that will be send by network stream to second application run on Windows.
That applcation will read waveform from network stream and send data to your audio output on Windows.
03-02-2014 08:25 PM - edited 03-02-2014 08:37 PM
Since I'm new and not very familiar with myRIO, I've 3 questions:
1. How can I build a Real Time application at myRIO?
2. How to send the waveform of the audio input by network stream to second application, which runs on Windows?
3. What is the difference between an application running on Windows and Real Time?
Thank you.
03-03-2014 01:45 AM - edited 03-03-2014 02:11 AM
@Coren wrote:
Since I'm new and not very familiar with myRIO, I've 3 questions:
1. How can I build a Real Time application at myRIO?
2. How to send the waveform of the audio input by network stream to second application, which runs on Windows?
3. What is the difference between an application running on Windows and Real Time?
Thank you.
ad.1.
myRIO is RealTime target: that means code will be executed by real time operating system on the target.
In project you will use two targets: My Computer : this is Windows target and myRIO that is real time target.
ad.2.
Check Menu>> Help>> Examples and at Search write 'Network Stream'
my second thought is it could be easier to use Shared Variables.
ad.3.
At this point important thing is target and its operating system that execute the code. For myRIO ths is Real Time Linux, for you it will be transparent, cos you will work using LabVIEW Project.
Did you start with NI myRIO Project Essentials Guide ?
Last and not least: check this path:
Rn LabVIEW: select Create Project: select Sample Projects: select Voice Recorder myRIO
03-03-2014 08:05 AM
Hey Coren,
There is a myRIO sample project that does almost exactly what you're asking.
From the LabVIEW Getting Started Screen click Create Project, then on the left, under Sample Projects choose myRIO. On the right side of the screen select Voice Recorder (myRIO). A sample project is created for you which contains a 'host side' VI (running on your laptop) and a target VI (running on myRIO). The sample project uses some advanced features to improve the audio sampling quality and sends data from the myRIO to the host VI (on your laptop) using network streams.
Let us know if you have questions about any of this.
Thanks!
-Sam K
Join / Follow the LabVIEW Hacker Group on google+
03-04-2014 01:59 PM
Thanks a lot for your helps.