02-11-2014 12:53 PM
Here is my vi again after making the value default.
regards.
02-11-2014 01:13 PM
You've got quite a bit going on there and I think you're going through a lot of extra work to use the Dynamic Data Types and Express XY Graph.
Here's one way to get what you want though.
From your XY Graph, Index out the first (and only) plot.
Unbundle to get the Y and X Arrays. By a quirk of LabVIEW XY Graph, both of these are named Y. The first one is actually X.
Do an Array Max Min on Y to get the Index of the largest Y value.
Pass that Index into Array Index of X to get the X value.
02-11-2014 01:32 PM
Also, I don't think your Build XY Graph is configured correctly.
As it is now, you only graph the first channel of your data.
The rest of your data is truncated since your X array is only 1-D 512 elements.
02-11-2014 04:28 PM - edited 02-11-2014 04:29 PM
I am not entirely sure if this is what you are looking for, give it a go.