LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph area

Hi. I have a X-Y graph. I try calculate different parts of graph area.

 

But i cant. I need Area 0-30 and 0-40 for x values

 

Can you help me? 

 

Thanks.

 

Kerem

0 Kudos
Message 1 of 4
(2,758 Views)

Here are some suggestions:

  • Always show labels on Controls and Indicators in the Block Diagram.  Looking at the three "Dbl" indicators on your Block Diagram, we can't tell that they are "Area 0-40", "Area 30-40", and "Area 0-30".
  • If you are having trouble with an algorithm, at least put a note in your post telling us what you are trying to do!  I can see that you have two arrays called X and Y, you are deleting 299 elements and 399 elements from the end of them (how big were they initially?  you don't say, and why are you deleting data), and you are doing some kind of arithmetic on these data.  What is the computation supposed to produce?
  • What do you want to see, and what do you see?  While we can run your code, without knowing what X and Y represent, we can't figure out if it "works" or not.

Try fixing these things, submit another (labelled) VI with better descriptions, and we can probably help you.

 

BS

0 Kudos
Message 2 of 4
(2,737 Views)

Hello Bob. Thanks for your reply.

 

Sory for first attachment. I forgot my values save default.

 

Now you can check new attachment. I have two 1D array X and Y. My each arrays have 701 elements. and my X arrays is 0, 0.1, 0.2, ...., 700

I need calculate 2 area from my X-Y graph.

First one is When X= [0-40] 

Other is When X = [0-30]

 

So that i deleted last 299 elements for between 0-40 values

and last 399 elements for between 0-30 values.

 

Now i can draw graph for my areas but i cant calculate areas under graph.

 

B. R.

Kerem

 

0 Kudos
Message 3 of 4
(2,721 Views)

I think i fix my problem with numeric integration function.

 

0 Kudos
Message 4 of 4
(2,709 Views)