LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a amplitude against freq graph?

hey....m able to generate a multiplot...

it works...

i have placed two fixed plots on it...

now just one thing remains..i need to place user defined points on the same plot...i have attached my work..i have labview 7.1

0 Kudos
Message 11 of 24
(1,476 Views)

By user defined points do you mean cursors? or will you be adding data collected by the user?

0 Kudos
Message 12 of 24
(1,475 Views)

Sorry about the wrong version.  I can't save back to labview 7.1 but here is a screenshot of the block diagram.

0 Kudos
Message 13 of 24
(1,471 Views)

hi..

user defined points means amongst the defined range of frequency and intensity (defined in their arrays respectively) i may choose randomly any pair one after other.so now my third plot should follow this selection.

Eg: if i choose 40 db at 125 hz, 60 db at 250hz, 50 db at 500hz, 60 db at 750 hz, 50 db at 1000hz....likewise my third plot must follow this selection. 

 

0 Kudos
Message 14 of 24
(1,467 Views)

@vanashree wrote:

likewise my third plot must follow this selection. 

 


This is where you lose me.  So you want the user to select an unknown number of points on the XY graph but what do you do with those points?  Are these to be used as experimental parameters in a measurement? I don't quite follow what data is to be represented by the third plot.

0 Kudos
Message 15 of 24
(1,465 Views)

n yes it means data will be selected and added.but this selection is random but only from the defined range(range defined in their arrays)

0 Kudos
Message 16 of 24
(1,464 Views)

sir,

i am trying to build an audiometer which is a device used to judge the hearing capability (exactly how much deaf are they) of patients.now the two fixed plots in the graph are left and right ear ideal responses.now the third plot will be the actual response of the patient after the test is conducted.he may respond badly at some frequencies or may be near to normal.this will clearly be understood from the comparison of actual response and ideal response.

0 Kudos
Message 17 of 24
(1,462 Views)

Ok, I'm starting to understand a little more.  Since you will be selected one point at a time (from each curve) you can use the cursors.  Have one cursor snap to Plot 0 and one cursor snap to Plot 1.  this will prevent the user from selected two points from the same curve.  You can programatically get the values from the cursor position using property nodes (attached image shows how to retrieve XY values of cursor zero).

 

As you cycle through the test points, populate a third XY pair using response values from test subject.  Start with an array of say, -1 for y values restricting the y axis to positive values, this will essentially hide the values which are not populated.  

 

When you have a new data point to enter, scan the X array to find the position of the test frequency and replace the corresponding Y value. (see example image : NON-functioning code to quickly demonstrate a possible option)

 

 

Download All
0 Kudos
Message 18 of 24
(1,452 Views)

thanks for this much trouble..i will definitely try this and let u know sir.tahnks a lot.just one small request if possible just resend the capture2.png because it is cut at left side i am not able to see full diagram

0 Kudos
Message 19 of 24
(1,448 Views)

and if possible if u could just tell from where can i find these cusor functions in labview 7.1 that would be great help.

0 Kudos
Message 20 of 24
(1,447 Views)