Hey,
I've been working on an interface between a PIC micro and a VB 2010 form through a usb bridge. The Pic reads an analog value then sends it to text box in my vb form.
I was wondering if there is a more efficient way of collecting the received data opposed to writing it into a text box. It seems like it cant keep up when I increase the sample rate. It seems to work fine for about 40 samples then it begins to drop random values (I have a date/time stamp with each received figure). If I remove the date/time stamp portion it seems to run ok until I get around 7000 samples around there it begins to bog down.
Now it almost looks like vb has to refresh everything in the text box each time a figure is written into it. When I leave it going for a while it seems to bog down, so I figure this is whats going on.
All I'm doing with the data is saving it to a text file and looking at it in excel. I was hoping someone would know how to maybe just run it into a text file or buffer from the port on the fly or something similar. Additionally, is there limitations as to how much data I can collect?
Thanks
I've been working on an interface between a PIC micro and a VB 2010 form through a usb bridge. The Pic reads an analog value then sends it to text box in my vb form.
I was wondering if there is a more efficient way of collecting the received data opposed to writing it into a text box. It seems like it cant keep up when I increase the sample rate. It seems to work fine for about 40 samples then it begins to drop random values (I have a date/time stamp with each received figure). If I remove the date/time stamp portion it seems to run ok until I get around 7000 samples around there it begins to bog down.
Now it almost looks like vb has to refresh everything in the text box each time a figure is written into it. When I leave it going for a while it seems to bog down, so I figure this is whats going on.
All I'm doing with the data is saving it to a text file and looking at it in excel. I was hoping someone would know how to maybe just run it into a text file or buffer from the port on the fly or something similar. Additionally, is there limitations as to how much data I can collect?
Thanks