10-28-2007 09:05 AM
10-28-2007 11:10 AM
10-28-2007 11:34 AM
In case you can't use the property suggested by Altenbach, which probably is the best solution, try to use deferPanelUpdates property before updating the graph again.
10-28-2007 12:06 PM
@kal.... wrote:
try to use deferPanelUpdates property before updating the graph again.
That suggestion makes no sense. I don't see any timing difference with defer on or off. Typically, you want to defer updates if you need to write many properties in a row, which isn't the case here.
If I understand the question right, the primary data in the plot does not change, so we only need to write the graph terminal once and then never again. In the loop, check only the cursor position, take the subsets, and draw the line in the image overlay.
Are you really sure you need an x-y graph? This makes it much more difficult to extract the subset unless the values are sorted in x. Are they? If all points are spaced equally in x, you should use a waveform graph and set the ofset and increment via the axis property.
10-28-2007 12:24 PM
Thanks to Altenbach, I stand corrected
@altenbach wrote:
@kal.... wrote:
try to use deferPanelUpdates property before updating the graph again.
That suggestion makes no sense. I don't see any timing difference with defer on or off. Typically, you want to defer updates if you need to write many properties in a row, which isn't the case here.
10-28-2007 12:34 PM
@altenbach wrote:
If I understand the question right, the primary data in the plot does not change, so we only need to write the graph terminal once and then never again. In the loop, check only the cursor position, take the subsets, and draw the line in the image overlay.
Are you really sure you need an x-y graph? This makes it much more difficult to extract the subset unless the values are sorted in x. Are they? If all points are spaced equally in x, you should use a waveform graph and set the ofset and increment via the axis property.
10-28-2007 01:16 PM
@halvorka wrote:
Could you elaborate on your previous assertion that I should not be sending so many points to the XY graph? Implementing it differently seems like it could be enormously more complicated. Would you suggest that I manually remove data points based on the range of the X-axis before sending the data to the graph?
Maybe just something along the lines mentioned in the section "Fast Data Display with Decimation" at the following link:
http://zone.ni.com/devzone/cda/tut/p/id/3625
10-28-2007 02:51 PM - edited 10-28-2007 02:51 PM
Message Edited by altenbach on 10-28-2007 12:51 PM
10-28-2007 03:26 PM
11-06-2013 07:41 AM
@altenbach wrote:
Here's a quick draft how you could draw the regression line (LabVIEW 8.2). Modify as needed. [picture deleted to save space]
That's definitely cool, altenbach. I haven't worked with cursors in quite a while (since LV5, I think, and then only doing the simplest things). This one's going in my bookmarks.
Cameron