Thanks for the input Jon, You mention binding a cursor to the display area. Are you saying that I can have the mark (line) positions on my form controlled directly by the values in a cursor? I thought there should be a way to do so with an array but I haven't been able to figure out how.
Joe On Tuesday, October 02, 2007 11:21 AM, Jon Westcot wrote: > >Date: Tue, 2 Oct 2007 08:21:02 -0700 >From: Jon Westcot >To: [EMAIL PROTECTED] >Subject: Re: Techniques for scrolling a continuous plot > >Hi Joe: > > If your data window is always a fixed number of points, you could simply >save the data into a table and then select a subset of those data from the >table into a cursor that is bound to the display area. > > For example, if your data window can display, say, 200 points at a time, >you could set up a SELECT statement similar to: > > nlOffset = 0 && adjust as needed to correct the starting point > > SELECT * FROM read_values ; > INTO CURSOR data_window ; > WHERE read_values.seq >= nlOffset + 1 ; > AND read_values.seq <= nlOffset + 200 > > I'm certain there are other methods for doing this, but this just seemed >the most straightforward to me. > > Hope this helps, > > Jon > > >----- Original Message ----- >From: "Joe Yoder" >Sent: Tuesday, October 02, 2007 6:50 AM >Subject: Techniques for scrolling a continuous plot > > >> My current display technique for continuously read numeric >> values is to store the data in an array the size of the display >> area. Each time new data is available, a loop copies the >> data from each element of the array to the adjacent element >> to the right. The new data is then written to the first element >> of the array. Finally, another loop updates the line positions >> on the form that represent the value of each array element. >> >> I want to rework my technique to save the data to a file and >> allow scrolling through the file. I could simply copy the file >> data to the array and display as before but it seems there >> should be a more efficient approach. Does anyone have a >> technique or suggestion to share? >> >> TIA - Joe > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

