04-20-2008 09:28 AM
04-20-2008 09:50 AM
Hi Jing,
i don´t understand what you want. See the attached example please, i hope this helps a little bit. Do you want to write your data into a file?
Mike
04-20-2008 10:46 AM
04-20-2008 04:36 PM
Dear Mike,
I need something similar. I am developing an audiometer program with masking. It basically generates a sine wave signal and plays it as an audible sound. The patient can adjust the amplitude for different frequencies. Now here's the problem. I NEED TO PLACE A BUTTON CALLED RECORD. With it, the amplitude and corresponding frequency should get recorded. For all the given frequencies, the amplitudes should get recorded and at the end, I should be able to get a graph of frequency(x axis) and amplitude in db(y axis) and then save it to file. Please let me know if you need any clarifications but help me.
I am new to labview and I need to complete this project soon. Please help.
I am using Labview 7.1
Regards,
Sheldon.
04-21-2008 01:53 AM
Hi Sheldon,
it sound like you should use a XY graph. Gather your values in an array and connect them to the graph. See the attached picture. To save your data use the "Write to Spreadsheet file" function. See the other picture.
Hope this helps.
Mike
05-03-2008 11:18 PM
Dear Mike,
Sorry for this ultra - late reply. My Pc has been down. Mike, I was going thru the solurion you provided and I was not able to follow one thing in it. I am sending you the image file. Please explain it to me. Also, if it is possible for you to do the necessary modifications and send it to me as a labview 7.1 file, I'd be very grateful. Sorry for the trouble but I need to get done with this soon.
Thanks,
Sheldon.
05-04-2008 10:31 AM
Hi Sheldy,
you marked only an array constant. I don´t understand what the problem with it is, but here is it as a vi!
Hope this helps
Mike
05-05-2008 10:23 AM
Mike,
I tried running the vi. But i dont get what i want.
Now, this is what I want.
On the fron panel, A RECORD button.
When I run my program, it will be as following:
1. In one ear I will set the masking white noise volume while taking readings for the other ear.
2. Eg. I am taking readings in the right ear, For 125Hz, I will vary the amplitude till the person can just hear the sound. Then, when I press record, that value should get stored and plotted on the graph.
3. Then I take the 2nd reading for 250 Hz. Again I will vary the amplitude till the patient can just hear the sound. Then, again I press record and the value should get plotted on the graph.
4. then the third reading till 8000Hz.
5. Then the same procedure should get repeated for the right ear.
6. At the end of the testing, I should have a file containing the values for both ears in a table.
If you are familiar with matlab, I am sending you a zip file which has the matlab working model of what I need. If you understand matlab, there is a directory called audiomter2. Run the .m file. You will get the exact idea of what it is except for the masking part.
Mike, Sorry for troubling you but please help out.
05-05-2008 10:43 AM
Brother Mike,
I followed what you did in the program. Now the problem is that each time I change the amplitude slider, the value gets recorded. I want it to get recorded only for the final value. Is ther any facility that I can have a button called RECORD, it will grab only that value and feed it to the array. All other times the slider moves, I dont need all those movements to get recorded. Hope you're getting what I mean.
Also, is there a facility where I can get those points plotted together to look something like this SAMPLE INTERFACE?
Thanks,
Sheldy.
05-10-2008 12:52 PM