Fast datamonitor

  • Thread starter Thread starter patti_
  • Start date Start date
P

patti_

Hi,

I am working with a program that shall view data in columns, e.g.
listview. The problem is that the data is very fast incoming
continuously for example 1 message per 1ms. I would like to have a
refresh rate about 200ms for the window that is viewing the data.
Can someone please tell me what to use and how!

Thanks in advance
Patrik
 
You can try DataGrid bound to DataTable, it would only update visible rows
which is quite fast.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
HI have tried using a DataGrid, but for me it became very slow. Maybe I
used it the wrong way..
Do you have some examples of using the DataTable in a fast way? :D

Thanks
 
There's only one way to do it - set DataSouce property of DataGrid to the
DataTable.

If that's not fast enough, you probably should use native code with and draw
whatever you need to display without using standard controls.



Or consider ignoring like 99.9% if the data and updating it, say, once a
second.

Human beings would be unable to read and react to data changes every 200 ms
anyway, not to mention 1ms.


Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
Yes, I am considering about ignoring som data and update once a secound.
But how do I do that in a effectiv way?
The mention is that I want some kind of Trace monitor for data incomming
on a serial port. It is only the viewing I am having problems with now.

Patrik
 
Perhaps you can set up ~1 second timer which would fetch current data from
some buffer you would fill from serial port in a worker thread.

You can also monitor incoming data for abnormalities in this worker thread
and raise an alarm out of order if needed.

Note NETCF is not an option if you need hard real time because GC could stop
NETCF program any time.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

patti_ said:
Yes, I am considering about ignoring som data and update once a secound.
But how do I do that in a effectiv way?
The mention is that I want some kind of Trace monitor for data incomming
on a serial port. It is only the viewing I am having problems with now.

Patrik
There's only one way to do it - set DataSouce property of DataGrid to the
DataTable.

If that's not fast enough, you probably should use native code with and
draw whatever you need to display without using standard controls.



Or consider ignoring like 99.9% if the data and updating it, say, once a
second.

Human beings would be unable to read and react to data changes every 200
ms anyway, not to mention 1ms.


Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

HI have tried using a DataGrid, but for me it became very slow. Maybe I
used it the wrong way..
Do you have some examples of using the DataTable in a fast way? :D

Thanks

Ilya Tumanov [MS] wrote:

You can try DataGrid bound to DataTable, it would only update visible
rows which is quite fast.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).



Hi,

I am working with a program that shall view data in columns, e.g.
listview. The problem is that the data is very fast incoming
continuously for example 1 message per 1ms. I would like to have a
refresh rate about 200ms for the window that is viewing the data.
Can someone please tell me what to use and how!

Thanks in advance
Patrik
 
Back
Top