473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem with fast lines in TeeChart v4.04 (Borland c++ builder 6)

Dear all,

I'm not sure this is the right place to ask for help, but I cannot find
any solution anywhere else, I hope you could help me.

I'm using Borland C++ Builder 6 with TeeChart v4.04 standard. I'm
writing a simple application that should acquire a signal from an
acquisition board, and diplay it on the screen. The signal is sampled
at 1000 hz, and I'm calculating its rms every 33 msec. Every time I
have a vector with ulCount (=33) samples, and I should:
- add each point to the current graph
- calculate its rms (and maybe display it on a separate chart).

These are my problems:
1. is there any way to add all the vector to the chart, without using a
for loop for each point? This is more or less the code I'm using:
int nTmpCount
for (int i=0; i<ulCount; i++) {
Chart1->Series[0]->AddXY((float)nCounter++/1000,pdVoltBuffer[i],"",0);
nTmpCount =Chart1->Series[0]->Count();
if ( nTmpCount>2000) // I'm plotting 2000 points
Chart1->Series[0]->Delete(0);
}

2- by using the code above, I get a lot of "list index out of bounds"
errors, but I cannot understand why and where. They just happen.

3- instead, by plotting the rms (only one new point each time,
everything seems fine (at least, now everything is working).

Any idea on how to solve the above problems, or where to look for some
help?
Thanks,
Massimiliano

Jul 22 '05 #1
3 4220
<sh******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

Re:Problem with fast lines in TeeChart v4.04 (Borland c++ builder 6)
Dear all,

I'm not sure this is the right place to ask for help,
Not about this.
but I cannot find
any solution anywhere else, I hope you could help me.


The Borland web site (www.borland.com) lists some
Borland-specific groups which should be of help.
(Even there, I suspect you'll need to show them
more context to get a useful analysis).

Purpose of comp.lang.c++:
http://www.slack.net/~shiva/welcome.txt

-Mike

Jul 23 '05 #2
Hi mike,
thanks for your reply and sorry for my mistake. I had already checked
at borland web site and teechart web site, but I couldn't find any
answer, that's why I posted here. I'll check more.
Regards,
Massimiliano

PS: By the way, http://www.slack.net/~shiva/welcome.txt is not
accessible right now (connection refused). Any idea why?

Jul 23 '05 #3
sh******@gmail.com on 24 Jan 2005 00:37:52 -0800:
thanks for your reply and sorry for my mistake. I had already checked
at borland web site and teechart web site, but I couldn't find any
answer, that's why I posted here. I'll check more.


There are newsgroups for Borland:

borland.public.cppbuilder.*

You might get help in
borland.public.cppbuilder.thirdpartytools.general

If it is not carried on your news server try Google or
newsgroups.borland.com.

--
Robert Emmons
re***************@aurigen.com
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steven O. | last post by:
First, sorry if by some chance I am not posting to the correct newsgroups, these seemed to be the most applicable to my question (see disclaimer at end of post for further comments....). Started...
17
by: Ziggi | last post by:
Hi. I want to get a C++ IDE, but I dont know whether to go for Bill Gate's solution or Borland's. Could any kind folks detail the relative strength and weaknesses of both, and also tell me which...
4
by: NathanAllen | last post by:
First of all to let you know I am using the following compiler: Borland C++Builder 5.5.1 with Turbo Incremental Link 5.00 When I tried to make my first GUI drawing following Lawernceville Press's...
15
by: Chris | last post by:
I am just beginning programming again and need a bit of advice. I have both Visual C++ 6.0 Standard Edition and Borland C++ Builder 6. Of these two which do you consider the best for programming...
9
by: Christo | last post by:
hey im a student about to start a course in c++ at uni, we have been told to obtain a copy of borland c++ 5.01 (not c++ builder) this is just a program with a compiler/linker and development...
6
by: Verne | last post by:
Can anyone tell me where to look for some sample code programs for simple window developement by Builder 6 C++. I know the C++ fairly well but tryint to understand and learn how to use the...
24
by: serdar | last post by:
Hi. Does anybody say that what is better borland c++ or visual c++? Which compiler does have more help?
0
by: Xproblem | last post by:
FTP Client Engine for C/C++ 2.4 Screenshot - Soft.comFTP Client Engine for C/C++ 2.4. ... System Requirements: Windows C/C++ compiler - Microsoft operating system: Windows 95, Windows 98, Windows...
22
by: smartwolf agassi via DotNetMonster.com | last post by:
I'm a C# language learner. I want to know which IDE is better for C# programing, Borland C#Builder or VS.net 2003? -- Message posted via http://www.dotnetmonster.com
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.