VCGuru
asked on
Very fast updation of controls
Hi,
I am developing an application that receives data from a USB port. I need to display this data on a control.
Something like
Time, node, data bytes (4 to 10 in number)
The data arrives on the USB at a rate of around 100 samples per millisecond
I am able to capture all this data into a log file without any problem,
When I try to display this data on a control, it is slow.
I have used
1. VS Flex
2. List control (seems a bit faster that VS Flex)
Can any of the experts suggest any other control or a better way of doing it?
1. I get the data and save it into a file (Works fine)
2. I read the data from the file and display (Bit slow and in a different thread)
I also thought of not using the file but to save the data into a vector when reading from the USB port, but since the display is slow, the vector's size grows and finally the system hangs.
I am developing an application that receives data from a USB port. I need to display this data on a control.
Something like
Time, node, data bytes (4 to 10 in number)
The data arrives on the USB at a rate of around 100 samples per millisecond
I am able to capture all this data into a log file without any problem,
When I try to display this data on a control, it is slow.
I have used
1. VS Flex
2. List control (seems a bit faster that VS Flex)
Can any of the experts suggest any other control or a better way of doing it?
1. I get the data and save it into a file (Works fine)
2. I read the data from the file and display (Bit slow and in a different thread)
I also thought of not using the file but to save the data into a vector when reading from the USB port, but since the display is slow, the vector's size grows and finally the system hangs.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use a Rich edit control. Just like you are saving the file to text, you can pass the string to Rich Edit Control.
Some more user controls are there like in IM and Yahoo messenger, which works in the same fashion.
Check the User Controls with Streaming support in Code Project.
Some more user controls are there like in IM and Yahoo messenger, which works in the same fashion.
Check the User Controls with Streaming support in Code Project.
go to www.msdn.com and search on "virtual list control" - I just got three hits, that will give more info than I can type here
Was the virtual list control any help?
ASKER
AndyAinscow, I am looking into it. Thanks for the help
ASKER
AndyAinscow,
atleast you got me thinking in this directtion
atleast you got me thinking in this directtion
ASKER
2. AndyAinscow, what are virtual list controls, I have not come across them and yes, the samples are not limited, it is continious display