11-04-2008 12:57 PM
Ok I'm a college student and I have been give an assignment in an honors class to build a program using sound waves. The assignment is pretty mush open to anything, I though what better thing to do then a guitar tuner!! ( because I play guitar). Then I started messing around with labview realized ' wow this might not be doable'. So my question is this : I have a computer with labeview 8 and a external mic, can I use this mic to pickup sound frequencies and throw them into labview? With that, create a program that can display the frequency ( as a number and in a graph). I guess I would have to program the exact freq for each string and when it meets that freq a light flash. And do this 6 times for each string? IM just getting frustrated because there are so many functions and it is very unclear what most of them do. So any help would be AMAZING!!! Thanks!
11-04-2008 01:18 PM - edited 11-04-2008 01:19 PM
thebrakshow wrote:Ok I'm a college student and I have been give an assignment in an honors class to build a program using sound waves. The assignment is pretty mush open to anything, I though what better thing to do then a guitar tuner!! ( because I play guitar). Then I started messing around with labview realized ' wow this might not be doable'. So my question is this : I have a computer with labeview 8 and a external mic, can I use this mic to pickup sound frequencies and throw them into labview? With that, create a program that can display the frequency ( as a number and in a graph). I guess I would have to program the exact freq for each string and when it meets that freq a light flash. And do this 6 times for each string? IM just getting frustrated because there are so many functions and it is very unclear what most of them do. So any help would be AMAZING!!! Thanks!
Hi,
it's definitely doable! I wrote one years ago for my son...
A good point to get started is the example VIs dealing with sound input. One of these examples is a doing a Fourier analysis.
If I find my old VI after these years, I'll post it here...
Cheers
Franz
11-04-2008 01:31 PM
11-04-2008 04:56 PM
ok lets start from the begining. how do i get labview to reconize the mic?
11-04-2008 05:02 PM
11-04-2008 05:04 PM - edited 11-04-2008 05:05 PM
Go to your control panel.
Open "Sounds and Audio Devices"
Go to "Audio" and where it says "sound recording"
select your device and set it to default.
Go back to LabVIEW.
In your functions palette
Programming >> Graphics and Sound >> Sound >> Input >> Configure.VI
If you wire ' 0 ' to device number, it should read your default sound input device (which is now your mic)
* Note, I do not have a mic to test this with. This is my educated guess 😉
11-05-2008 09:55 AM
Hi thebrakshow,
I happen to be doing exactly the same thing right now! It's not only possible, but also fairly simple! I wont just post what I have, since this is a class assignment, but I will point you to what I have used.
First, the examples. In LabVIEW go to Help>>Find Examples... The following are the two examples I have used:
Next, check out the VI posted here if you want to return the actual name/index of your Windows PC's audio device. You can just guess 0 (and be pretty confident) but I prefer this.
Really all you have to do is combine those two examples, then find a tone near what you are tuning to. This can be done in a number of ways. You could also look at the Tone Measurements Express VI if you want to make things even simpler.
Hope this helps!
11-18-2008 11:46 AM
11-18-2008 11:49 AM
11-18-2008 09:33 PM