Jump to content
Software FX Community

binford

Members
  • Posts

    3
  • Joined

  • Last visited

binford's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, Id like to display a strip chart which is plotting sinus values against time values. After a few seconds I get an overflow exception. Besides that, there is nothing drawn on the chart control. The code the designer created is the following: this.chartFX.AllSeries.MarkerShape = ChartFX.WinForms.MarkerShape.None; this.chartFX.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chartFX.AxisX.Grids.Major.Style = System.Drawing.Drawing2D.DashStyle.Solid; this.chartFX.AxisX.Title.Text = "X Axis"; this.chartFX.Location = new System.Drawing.Point(3, 243); this.chartFX.Name = "chartFX";this.chartFX.Size = new System.Drawing.Size(492, 74); this.chartFX.TabIndex = 9; Then I did some basic initialization stuff: chartFX.RealTime.BufferSize = 10; chartFX.RealTime.Mode = RealTimeMode.Scroll; chartFX.RealTime.FastScroll = false; chartFX.Data.Series = 1; chartFX.AxisX.LabelsFormat.Format = AxisFormat.Date; chartFX.AxisY.LabelsFormat.Format = AxisFormat.Scientific; The part within the timer event looks like this. I gets called every 100ms: chartFX.RealTime.BeginAddData(1, ChartFX.WinForms.RealTimeAction.Append); chartFX.Data.Y[0, chartFX.Data.Points - 1] = sinus; chartFX.Data.X[0, chartFX.Data.Points - 1] = newMeasureTime.ToOADate(); chartFX.RealTime.EndAddData(true, false); Any help is appreciated. Im really stuck on that issue.
×
×
  • Create New...