LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is this vi so slow ?

Attach is a simple vi.
Just click on the front panel (in the boolean array) and drag mouse.
The overall response of the vi is very poor. The array is not updated as fast as i would expect.
I don't think that there are too many things that must be updated, to justify the poor (for my opinion) performance.
 
Any opinion ?
 
 
0 Kudos
Message 1 of 3
(2,534 Views)
You are drawing on a boolean array with a huge number of displayed elements. You are redrawing almost 20000 booleans with each iteration!
 
why don't you use a picture indicator?
0 Kudos
Message 2 of 3
(2,521 Views)

I thought that the number should not be a problem, as they are only boolean and painted only black or white.

Seems I was wrong! Even with Defer Panel Updates, it is not updating properly.

I guess i have to rewrite it, with a picture indicator.

Thanks Christian

0 Kudos
Message 3 of 3
(2,493 Views)