LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I get the x and y value from a specific graph and then further to save the data what I get?

Hello

now I already have a graph what I need, and then I need to get the X and Y value conrresponding to this graph, and further to save the data from this specific graph, how can I do that ?

Thank you for all your reply

Jing
0 Kudos
Message 1 of 15
(3,853 Views)

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

0 Kudos
Message 2 of 15
(3,845 Views)
Hi Mike

thank you for quickly reply

yes that's what I need, I need to get the x and y value from the graph, and then save these data

thank you Smiley Very Happy

Jing
0 Kudos
Message 3 of 15
(3,833 Views)

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.

0 Kudos
Message 4 of 15
(3,812 Views)

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

Download All
0 Kudos
Message 5 of 15
(3,786 Views)

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.

0 Kudos
Message 6 of 15
(3,707 Views)

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! Smiley Happy

Hope this helps

Mike

0 Kudos
Message 7 of 15
(3,687 Views)

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.

0 Kudos
Message 8 of 15
(3,658 Views)

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.

0 Kudos
Message 9 of 15
(3,652 Views)
Dear Mike,

Thanks for all your help and support. I have finally been able to come up with something concrete. You can go through my VI. I have to submit this as a project in college. I need just one thing now. When my audiometer does the test work, I need it to have a string empty so that the patient can fill his name and that also can be written to the txt file with the patients name as header within the txt. Please help me as it is not allowing me to club the array for strings and numeric data types. I was struggling making clusters and stuff but couldnt manage. Please help.
 
Here's the VI.
 
Thanks for your expertise thus far.
 
Sheldy.
0 Kudos
Message 10 of 15
(3,600 Views)