Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 Charting and Real-Time Graphics Tools for Windows
 Replacing data in RT graphs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Helge

5 Posts

Posted - 04 Oct 2005 :  09:17:33  Show Profile  Reply with Quote
From my MFC application I want to replace data in a RT graph. Therefore I use WRResetHistBuffer on the DynDataSet and call WRUpdateBlockData with the new data afterwards. As result I get a graph with a connection (straight line?) from the first point to one of my last points (which is not what I want) in addition to the old data.

Now if I call ::WRResetScroll on the XY plot this line isn't drawn which is fine. But why can't I use QCRTGraphWnd::WRResetScroll? Some ASSERT statement checks if I pass a Scroll Object although ::WRResetScroll accepts XY plots?

In this way this is more an inconvenience than a bug. But perhaps there is a good reason why ::WRResetScroll does not accept plot objects?

quinncurtis

1164 Posts

Posted - 04 Oct 2005 :  18:00:38  Show Profile  Reply with Quote
The WRResetScroll method works with both XY plots and scroll plot objects. It does not however work with variable scroll plots (created using the WRSetVarScroll setup routines. Is this what you are using ?
Go to Top of Page

Helge

5 Posts

Posted - 07 Oct 2005 :  09:33:38  Show Profile  Reply with Quote
This is probably a misunderstanding. Actuallay my current implementation works fine. I use ::WRResetScroll on the XYGraph and everything works out fine. But I can't use QCRTGraphWnd::WRResetScroll (which I tried since my class is a subclass of QCRTGraphWnd) with a handle on a XY plot because of the following code:

BOOL QCRTGraphWnd::WRResetScroll (HGOBJ hScroll)
{
ASSERT_VALID (this);
ASSERT (IsObjectValid(hScroll, GOD_SCROLL));
return ::WRResetScroll (q_pGrDesc, hScroll);
};

The second ASSERT is false on xy plots, right? But I can use ::WRResetScroll(q_pGrDesc, hMyXYPlot) instead (which works fine!). So this ASSERT statement seems to be unnecessary.

Go to Top of Page

quinncurtis

1164 Posts

Posted - 07 Oct 2005 :  10:58:14  Show Profile  Reply with Quote
You are correct. The ASSERT in the QCRTGraphWnd, which is a class of the our GCL for MFC,
is unnecesarry, due to changes made after the library was created. You can comment out the ASSERT and recompile the RT32D project, or call directly into the WRT32DR3 DLL, as you describe.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07