03-19-2011 12:43 AM
I have a plot and I need to find the index of a particular element in that array. The point of the element is indicated in the graph of the code snippet attached.
Thanks in Advance
03-19-2011 01:04 AM
Hi Friend, I am Not able to understand what u want?
Any way ,you have a plot , right ! and on that u have mark point or say cursor. then you what to find the index of that perticular point , is it some thing u want..... ?????????
ok fine... even you can share your vi if possible.
thank u,
Brijesh Patel
03-19-2011 01:34 AM
Yes...!!! That's exactly what I need. If you look at the plot you can see that the plot first rises, then it stabilises for a very short duration and then it rises again.I will get this plot in each of my test and I need to find the index of the point from where the plot starts rising again. This point is marked in the snippet attached in my previous post.
03-19-2011 02:15 AM
Hi,
Please find attched Vi.
i hope will fullfill your req.
Brijesh Patel
03-20-2011 11:36 PM
The cursor will not be moved manually by the user. I used the cursor just to indicate the point of interest. This point has to be found out programatically. The point of interest is the point from where the graph starts rising after it stabilised for a shoort duration. See the picture attached for more clarity.
03-21-2011 03:22 PM
I think I ran into the same problem.
Let me know if the following limk helps.
Bill
http://digital.ni.com/public.nsf/allkb/A863CB03C24BEF9B8625742D0081CFAF
03-23-2011 03:12 AM
There will be no cursors in the graph......and the bottleneck is to programatically find the point
03-23-2011 08:14 AM
What are the units of measure of your X and Y axis?
It looks like the slope of your graph at the point of interest is zero.
Is this true?
Can you save your raw data to an Excel file?
If so, can you attach the data to your next post?
When you say you want to pick the point programatically,
do you want your program have an output that has an X axis and a Y axis value at that point?
03-23-2011 11:40 PM
Yes...I need the X and Y values of the point. My Y axis will be Current(I) and X axis is Time(s). This is the plot of a current drawn by a fuel injector. The plot will be in this shape always. "First it will rise....then it willsettle for a short duration and then it will again rise. I want the last point in the settlement region" . As you guessed, the slope can be zero or negative in this point. I have attached a notepad with sample data for this plot.