Jump to content
Software FX Community

binford

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by binford

  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.
  2. binford

    Real-time in WPF

    Our measurement data is aquired with 200hz, but the widget obviously does not have to refresh that fast because no human is able to keep up with this information rate. An refresh rate of 5hz should be sufficient. We do not care about the implementation details, but a circular buffer is surely what I would chose if I had to code the widget myself. Another requirement is that one should be able too zoom into a fixed area, say from 00:00:01 to 00:00:02. Note that the chart in zoom mode is static, which means that there are no new points added to the zoomed part. Zooming should not require the data feed to stop. After the zooming operation is done, the previously displayed data + any new data should be visible ("zoom-out"). I know that those requirements are quite challenging but If you could provide this feature it will surely set you ahead of your (many) competitors. I've evaluated 30+ charting SDKs by now, and from our 4 top candidates only one looks like he provides this feature or at least some API methods to do it ourselves QUICKLY. This is National Instruments Measurement Studio. Regards, Janosch
  3. binford

    Real-time in WPF

    Is your realtime API still not available in WPF? If not, is it on your roadmap?
×
×
  • Create New...