M
Marco Martin
Hi Group,
I've been working on an application that reads data from a comm port and 1)
writes the data to file, 2) displays this data in three different graphs in
real time.The port is receiving data at 38400 baud, the plan is that it will
go up to 115k baud. My app works fine on my development pc (P4 2.6G), But
when the application runs on a pc that is slower (Like a p3 laptop that is
used when on the road) it freezes. The laptop cant handle all of the
calculations used in the Graphing objects. I now this because if I disable
one of my graphs (a multi channel line graph), cpu usage goes from 75% down
to 34%(as per task manager). So I know *which* object is giving me
problems.
My boss wants me to be able to monitor when the pc starts to lagg. If it
laggs, I'm to continue logging the data to file, but not graph every line
that comes in. I should only graph every second or third line...
So to make my story short, how can I go about knowing (through code) if my
computer is starting to lagg, or if my cpu usage is too high or something
like that. I'm not even sure where to start looking...
I've only got a few days to come up with a solution so *any* help
what-so-ever would be greatly appreciated.
Thanks and best regards,
Marco
I've been working on an application that reads data from a comm port and 1)
writes the data to file, 2) displays this data in three different graphs in
real time.The port is receiving data at 38400 baud, the plan is that it will
go up to 115k baud. My app works fine on my development pc (P4 2.6G), But
when the application runs on a pc that is slower (Like a p3 laptop that is
used when on the road) it freezes. The laptop cant handle all of the
calculations used in the Graphing objects. I now this because if I disable
one of my graphs (a multi channel line graph), cpu usage goes from 75% down
to 34%(as per task manager). So I know *which* object is giving me
problems.
My boss wants me to be able to monitor when the pc starts to lagg. If it
laggs, I'm to continue logging the data to file, but not graph every line
that comes in. I should only graph every second or third line...
So to make my story short, how can I go about knowing (through code) if my
computer is starting to lagg, or if my cpu usage is too high or something
like that. I'm not even sure where to start looking...
I've only got a few days to come up with a solution so *any* help
what-so-ever would be greatly appreciated.
Thanks and best regards,
Marco