08-12-2009 05:34 AM
Deal All
I would appreciate alot if you can help me with this problem.
I want to Highlight some points on a diagram which its horizontal size is 1000. so I create another array with the same size of the main diagram which contains my desired points then I have to put other free slots as ZERO!!! which is not suitable at all.
so I am thinking of an array of a size of 1000 but with just a few numbers in it but I think its not possible.
please tell me if there is any other soloution.
many many thanks
I will mark the best answers for sure
Ali
Solved! Go to Solution.
08-12-2009 05:45 AM
Hi Ali,
you can initialize your array with size 1000 and your default value (use initialize Array function). After this you can use a for loop with replace array subset in it. Change the tunnels to shift register. Connect your position array and your new value array with autoindexing to this loop (both arrays should have the same size).
Mike
08-12-2009 05:56 AM
08-12-2009 05:57 AM
Hello Ali,
As I understood, you want to mark orhighlight some certain points in a waveform Graph. A simple way to do this is to use annotations (e.g. without the arrows, just dots), there are examples shipped with LV. Another way is to use an XY- Graph. There you can put certain points at certain X- positions.
Maybe that helps,
greets, dave
08-12-2009 08:39 AM
Ali,
If you initialize an array with NaN (Not a Number), those values do not show up when plotted on a graph or chart. Before annotations were available plotting a graph with a few points and mostly NaN was often done.
Another possibility would be to create an array of clusters. Each cluster would have X and Y values, thus representing a single point. The array of clusters of points would only need to contain data for the points of interest. For 1000 points it does not make too much difference, but if you had arrays of millions of points and only wanted to highlight data on a few points, the array of clusters would use much less memory. Graphing millions of points never makes sense because LV and the OS reduces the data to the number of pixels in the line on the graph.
Lynn