Jump to content
Software FX Community

(Urgent) Real Mode graph!


Recommended Posts

Hi ,

I am using ChartFX.NET.WINFORMS to display data in real mode. The data for

the realtime graph is coming from an istrument have Timestamp(Milleseconds)

and value. I am reading the instrument's memory for the data which needs to

be plotted on the graph. I have already tried the AddPoint mechanism

explained by you people , but unforunately its not matching to my

requirement. Because the time interval of the data is not consistent. In

AddPoint Mechanism I don't have any control over X-Axis to compress and

expand its unit /divison.

Is there any way in Chart FX , in which we can plot graph in real mode and

provide value to chart in the form of X and Y value, and chart itself find

out where to add this point on the basis of its X-Value.

And any point of time I can change the X-Axis division from millesecond /div

to sec/divison or hour/division without repostiong the whole data again.

Regards,

Raghvendra

raghvendra_yadav@agilent.com

Link to post
Share on other sites

Yes. You need you supply both X and Y values, in other words you do:

chart.OpenData(COD.Values | COD.AddPoints, 1,1);

chart.OpenData(COD.XValues | COD.AddPoints, 1,1);

chart.Value[0,0] = <y value>;

chart.XValue[0,0] = <X value (time)>;

chart.CloseData(COD.Values);

chart.CloseData(COD.XValues);

Note: Since you are ussing X-Values, you can not use the EvenSpacing (as

used in the sample).

--

FP

Software FX, Inc.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...