04-18-2014 04:15 PM
Hi Everybody,
I would like to read x value which related half of the waveform. for this, I created cursor in graph. y value of cursor is equal half of amplitude and it is determinated automatically. I want to read x value which the cursor is breakpoint the signal. also, I want that x value of cursor is determinated automatically. for this what can I do?
04-18-2014 05:10 PM
@1085 wrote:
I want to read x value which the cursor is breakpoint the signal.
What does that mean?
To do measurements on data, you don't need to use cursors and graphs, just use plain math in the diagram.
Can you attach a simple VI that contains a typical waveform. Also tell us that result you expect from the given data. What is the datatpye?
04-20-2014 01:51 PM
I attached the VI. while y value of cursor is half of amplitude, I want that x value is read automatically. for this, What can I do?
04-20-2014 02:05 PM - edited 04-20-2014 02:06 PM
Cursor.PosX property
04-20-2014 02:09 PM - edited 04-25-2014 08:21 AM
As I said, you should not rely on the cursor, esecially since you allow it to be dragged by the user. If you want to find the point where the data is at half-max for the first time, use threshold array and move the cursor there. See attached.
If the data is more complicated, you might need to tweak a little bit.
04-25-2014 02:27 AM
Ok. I want to find the point where the data is at half-max for the second time. for this, What can I do?
04-25-2014 05:48 AM
04-25-2014 08:29 AM
@1085 wrote:
Ok. I want to find the point where the data is at half-max for the second time. for this, What can I do?
If you want to catch the transition on the downslope you need to search again. Easiest is to start searching at the index of the max, but negate the data and threshold so you get an increasing curve for that segment.
You could also just subtract the half-max amplitude from the data and search for zero transitions. (i.e. places where the sign changes, then interpolate to get the fractional position).