User (Legacy) Posted June 19, 2003 Report Share Posted June 19, 2003 How can I increase speed for RealTime Graph 1. With RealTime examples give on web site, I increase the Timer to 0.01 sec So I'm supposed to have 100 data per sec. The graphic did not follow at this speed How can I go faster (maybe 100- 250 hz for 1 series, 50 hz for 2 series, ..) 2. I try, (for my application needs) to store the data into a dataSet and link the data set to the graph, but I'm not sure it's the right procedure (It could be interesting for real-time ...) ex. 'initialization Chart1.DataSource = mDS_Data.Tables("AcqData") 'data receiving Private Sub OnData(ByVal DBL_Data As Double) Handles Instrument.OnDataReceiving Dim DR_curRow As DataRow DR_curRow = mDS_Data.Tables("AcqData").NewRow() DR_curRow("Time") = mDBL_Rate * mDS_Data.Tables("AcqData").Rows.Count If isNothing (DBL_Data) Then DR_curRow("Data") = DBNull.Value Else DR_curRow("Data") = DBL_Data End If mDS_Data.Tables("AcqData").Rows.Add(DR_curRow) Chart1.DataSource = Nothing Chart1.DataSource = Me.mDS_Data.Tables(0) Chart1.Refresh() End Sub Thanks Phil G pgagnon@fiso.com IT Manager FISO Technologies www.fiso.com Link to comment Share on other sites More sharing options...
Software FX Posted June 19, 2003 Report Share Posted June 19, 2003 Taking out anti-aliasing: Chart1.SmoothFlags = SmoothFlags.None; Improves the drawing speed dramatically. The type of chart will also affect the rendering speed, the more stuff you have the slower it will be, for example, rendering a line chart with Circular point markers is slower than rendering a chart with Square point markers or no markers at all. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.