visual basic is slow

  • Thread starter Thread starter Vergassivellaunus
  • Start date Start date
V

Vergassivellaunus

Guest
In VB6 i run a loop like this:

do

'wait for something from USB

display a line on a graph, composed of 512 points

loop

The syncronous operation is dictated from the USB data, that arrive every 240 mseconds.

If i do the same in Visual Studio, the time requested is more and i loose syncronism.

Time is lost during display of data:

Me.Chart_time_z.Series(0).Points.Clear()

For n = 0 To N_samples - 1
Form_base.Chart_time_z.Series(0).Points.AddXY(n, asse_x(n) * graph_ampl)
Next

where N_samples=512 (the same as in VB6)

Even if i omit to clear data, nothing changes. With 64 samples it is yet to slow.

Application is unusable. I really hope that there is a solution. I cannot imagine Visual Studio less efficent than VB6.


I tested a loop like this:

do

'wait data from USB

Me.Chart_time_z.Series.Clear()

loop

With no drawing at all, but it is slow again.

Continue reading...
 

Similar threads

V
Replies
0
Views
101
Vergassivellaunus
V
V
Replies
0
Views
120
Vergassivellaunus
V
Back
Top