It's the VB code. I put a counter and a timestamp for each cycle through the mainloop. The results vary but the VB code is only able to poll the PIC every 10-30mS or so, and the counter jumps ~20 cycles. So in one second I can be missing a ton of packets. The VB poll looks like this:Why not flip an output each time the PIC processes a message and measure the frequency of that of that output. Then you'll see how many messages per second the PIC is actually processing.
Time (HH:MM:SS:MS) Counter(X)
11:07:25.92 / 58
11:07:25.94 / 70
11:07:25.95 / 88
11:07:25.97 / 100
11:07:25.98 / 115
11:07:26.00 / 130
11:07:26.02 / 146
11:07:26.03 / 160
When I datalog it's worse
12:48:54.84 / 252
12:48:54.88 / 30
12:48:54.91 / 64
12:48:54.94 / 90
12:48:54.97 / 126
12:48:55.00 / 156
12:48:55.03 / 186
12:48:55.06 / 216
Now I have to look at the VB code and figure that out.........




Bookmarks