Matlab and GUIs  | |
January 21st, 2003, 11:49 AM
|
#1 (permalink)
| | Member
Join Date: Jul 2002 Location: DC Suburbia
Posts: 190
|
Recently I was told my one of my professors(the one I'm teaching for) that it would be really neat this semester if someone designed a program to take in a frequency from a microphone and plot it and give the RPM of our motor at that given frequency. Didn't sound too hard. The catch was I have to use Matlab to do it. Don't ask why. I did some playing around with the GUI editor in matlab and there's a bunch of commands that I still don't get. I am pretty sure our department has a matlab book but I was wondering if anyone has come across any good online guides to using the GUI editor in matlab. I'm using version 6. I've found one for version 5 but the examples they go through are quite different.
Last edited by jon112981 : January 24th, 2003 at 01:16 AM.
|
| |
January 24th, 2003, 12:33 AM
|
#2 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
| Quote: |
Recently I was told my one of my professors(the one I'm teching for) that it would be really neat this semester if someone designed a program to take in a frequency from a microphone and plot it ...
| is that 'tech' ing or 'teach' ing?
[yoda]
ambiguous, your message, is.
[/yoda]
is this "matlab": http://www.mathworks.com/
sounds a lot like:
running buffalo (os) on 8088, 880888, 880886, chip thingy, micro procs on pcb (we had to config, ), to capture signal from oscilloscope(sp?) and display on a mac?
something, I actually did in college.
tell prof:
do it. I will teach to students.
OR
have the students do it, then they will teach you...
my bad.
ok, you want to do what?
oops... Quote: |
program to take in a frequency from a microphone and plot it and give the RPM of our motor at that given frequency.
| that makes no sense.
[coding]
mic.out >> plotter.capable=true;
motor.freq << mic.out;
motor.rpm.out >>what you want?
[/coding]
what is the mic's RPM?
absolutely no matlab help. |
| |
January 24th, 2003, 01:13 AM
|
#3 (permalink)
| | Member
Join Date: Jul 2002 Location: DC Suburbia
Posts: 190
|
Yes matlab is made by mathworks. Oaky let me clarify the intent of the apparatus. We build an acoustic test box. In this we place a small submarine with a motor and drive shaft. The drive shaft may or may not be aligned. Motor gets turned on. As the motor runs it emits an a sound. The frequency of this sound is going to be different depending on the RPM of the motor. If the drive shaft is not perfectly aligned then it will slow the velocity of the motor down. Now comes the part where the acousitcs come into play. If the motor is not aligned and thus spinning slower than it should, the frequency that the sound of the 'hum' of the motor is going to be different in some way than if it were spinning at the max RPM. We want to use matlab to take in the signal from a microphone recording the hum of the motor, store the frequency of the signal and then tell you if the motor's dirveshaft is aligned. That doesn't seem to be too hard. Infact I KNOW how to do that. Where the problem comes in is the professor running the course wants me to make a GUI for the program(script) I'm creating in MATLAB. I must use either MATLAB or LabView. I have no experience with LabView so I'll probably go with MATLAB. But I have no real experience using MATLAB's GUI editer or making GUIs in general. |
| |
January 25th, 2003, 12:09 AM
|
#4 (permalink)
| | Banned
Join Date: Oct 2001
Posts: 447
|
sub, motor, screws, cavitation!
try catepillar drive.
not funny. Quote: |
The frequency of this sound is going to be different depending on the RPM of the motor.
| not exactly true, as more factors are involved with sound output of motor at a given RPM. maybe, I teach class next year.
plot the range of freg output of motor thru RPM range, it is not straight line.
don't trust me, try it.
now, isolate motor in cardboard box, do same.
don't trust me, try it.
compare results, no matchey. Quote: |
If the drive shaft is not perfectly aligned then it will slow the velocity of the motor down.
| again, not true, maybe speed motor up? as in drive shaft so unperfectly aligned, not even touching motor, drive shaft will have little effect on motor rpm as it goes thru RPM range, tho freq of motor will change.
how does this work?
here comes the fun part.
very realistically possibility:
drive shaft not perfect aligned, though has own resonant freg (dependent upon lotsa stuff), as motor also has resonant freg (dependent upon lotsa stuff).
now, put not perfectly aligned drive to motor and run thru RPM range of motor. what happens then?
don't trust me, try it.
compare to previous results.
post back.
what if motor not perfectly aligned. |
| |
May 7th, 2006, 11:57 PM
|
#5 (permalink)
| | Junior Member
Join Date: May 2006
Posts: 4
|
try in matlab -->
demo ---> Toolboxes --> data acquisition &
demo ---> Toolboxes --> siginal processing --> interfacing with machines
you may also like to visit kluid ( http://www.kluid.com ) its a well respective Matlab forum.
b4 : ] Quote: |
Originally Posted by jon112981 Yes matlab is made by mathworks. Oaky let me clarify the intent of the apparatus. We build an acoustic test box. In this we place a small submarine with a motor and drive shaft. The drive shaft may or may not be aligned. Motor gets turned on. As the motor runs it emits an a sound. The frequency of this sound is going to be different depending on the RPM of the motor. If the drive shaft is not perfectly aligned then it will slow the velocity of the motor down. Now comes the part where the acousitcs come into play. If the motor is not aligned and thus spinning slower than it should, the frequency that the sound of the 'hum' of the motor is going to be different in some way than if it were spinning at the max RPM. We want to use matlab to take in the signal from a microphone recording the hum of the motor, store the frequency of the signal and then tell you if the motor's dirveshaft is aligned. That doesn't seem to be too hard. Infact I KNOW how to do that. Where the problem comes in is the professor running the course wants me to make a GUI for the program(script) I'm creating in MATLAB. I must use either MATLAB or LabView. I have no experience with LabView so I'll probably go with MATLAB. But I have no real experience using MATLAB's GUI editer or making GUIs in general. | |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |