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 Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Real Time Charts - Horizonta Scroll
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sreejith

11 Posts

Posted - 07 Feb 2006 :  02:02:39  Show Profile  Reply with Quote
Hello
I have downloaded your demo application from your site and trying to plot a real time chart using (QCChart2DNet.dll and QCRTGraphNet.dll). My aim is to plot a graph with values from the database in every two seconds (Data fetching query will be refreshed in every 2 seconds). Okay i can do this with the help of your application. But I can't see any example for SCROLL BAR (horizontal). if I can set a scroll bar in chart, I can view the chart of previous one hour data at any time. I have gone thru your Polygraph example but in this scroll bar will availabel only if I click on STOP button. Is this possible to get a normal Horizontal scroll looks like normal scroll bar. Because I can't stop my chart because it is a real time, it will get data continously .
Secondly, can u provide the code to print the chart?

Expecting your reply.

Thanks & Regards
Sreejith Nair


Thanks & Regards
Srejith Nair

quinncurtis

1586 Posts

Posted - 07 Feb 2006 :  09:35:24  Show Profile  Reply with Quote
You can use any kind of scrollbar that you want. Our RTControlTrackbar is derived from the standard .Net trackbar, where we have adding floating point support for the the trackbar ranges, but you can use any of the other .Net scrollbars. The logic is the same. You use the scrollbar value to determine the starting value of the charts coordinate system.

If you want to scroll back through the data you MUST stop the automatic forward scrolling of the data, controled by timer1 in the Polygraph example. You do NOT need to stop the accumulation of data values taking place using timer2. That way when you turn back on the automatic forward scrolling, the graph will display all of the data values that were collected while you were looking at the previously collected data. In the Polygraph example just comment out the timer2.Enable = false line in the selector_Button_Click method. This way data collection will continue, even if the automatic update of the display is turned off.

See the example programs Dynamometer and Treadmill for printing examples. Chapter 22 in the QCChart2dManual.pdf documentation discusses printing. If you want us to add printing to this specific example, contact our services department at sales@quinn-curtis.com and they will send you a quote.

		
private void selector_Button_Click(object sender, System.EventArgs e)
{
	RTControlButton button = (RTControlButton) sender;
	if (button == StartButton) 
	{
		timer1.Enabled = true;
		timer2.Enabled = true;
		SetScrollFrameEnable(ChartObj.OBJECT_ENABLE);
		} 
	else if (button == StopButton) 
	{
		timer1.Enabled = false;
	//	timer2.Enabled = false;
.
.
.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07