10-11-2015 07:22 AM
Hello there,
I am quite new to LabVIEW andNI devices.
I am working on Active Noise Cancellation Project, where I will be using two microphones input and one loud speaker as output. I have NI myRIO 1900 and CDAQ 9178 devices in our university lab. I need to do real time audio processing, I will collect data from microphone and process it using filtered XLMS algorithm to produce anti noise from loud speaker and other microphone is error microphone. I want to process data so quickly( within 1.7 msec ) so I will have real time response at 44100 sample rate !! My question is , 'is it possible to do with labview ?? and is stream processing possible in labview and with myrio?? and can I achieve so small audio latencies as mentioned above ??'
I have searched for audio processing objects in labview help. I can only find 'Acquire Sound', 'Play Waveform', surprisingly 'Acquire Sound configuration ' will work only for duration of minimum of 1 second not less than that !!! I can't input the time milli seconds !!!( I am still facing problem installing myRIO, so I have used host computed VI to do this.)
Please Help !
Thank You.
10-11-2015 08:35 AM
I haven't worked a lot with myRIO, but (based on my experience with LabVIEW RT on PXI systems and some familiarity with the RIO architecture) I can give you some hope (until someone more knowledgable says I'm wrong):
I was going to suggest that you consider posting on the myRIO Forum, but I couldn't find such a Discussion Group here. However, searching here for myRIO and on the Web should yield other sources of useful information.
Good luck with your project. You should learn a lot!
Bob Schor
10-11-2015 09:45 AM - edited 10-11-2015 09:45 AM
@Bob_Schor wrote:
I was going to suggest that you consider posting on the myRIO Forum, but I couldn't find such a Discussion Group here. However, searching here for myRIO and on the Web should yield other sources of useful information.
myRIO is grouped with other Academic Hardware Products forum http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/bd-p/10
10-11-2015 12:38 PM - edited 10-11-2015 12:39 PM
Thanks for the reply Bob_Schor, I will consider consider working with FPGA as I am very new to labVIEW and NI, I might have to read more .
The reason I posted here is the LabVIEW audio commands "Acquire SOund" and 'Play Waveform', If these are only two commands available for audio processing and Acquire sound can only process sounds lasting more that 1 second !! (it will acquire the sound for 1 second and then process it) , I cant go below 1 second.Then how the Stream Processing will work theoretically??
Now I can now only work on Host VI not myRIO FPGA VI. I dont think this will change the command configuration much !!!
10-11-2015 02:08 PM
10-11-2015 03:03 PM
NO , I don't have it !! Can you explain how it is useful for my Project.
10-11-2015 05:09 PM - edited 10-11-2015 05:17 PM
All add ons seems very costly 😞
10-11-2015 06:56 PM
@charansai wrote:
All add ons seems very costly 😞
No add-ons are needed for a noise cancellation. All you do is read two channels (one being your sound source and another being your noise input) and subtracting the two and playing the output through another channel. If it were up to me, I would do all of this in the FPGA. But there are plenty of libraries for the myRIO for getting the two channels' data and writing the result to an output.
10-12-2015 04:00 AM
Add Ons (or Toolkits as they are also called) have a price, that's true. Most toolkits do contain code which is written in LV itself, so essentially you can implement the functionality on your own as well.
But consider the time and expertise you need to do so: That cost you (your employeer) a lot of money!
In most cases, purchasing a toolkit is overall the cheaper solution...
Norbert