LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the table so slow?

I mean array.. sorry. See the following example.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 11 of 16
(1,043 Views)
actually it takes longer to update the local variable than updating the indicator.... if you are splitting hairs.. you are createing more memory usage this way.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 12 of 16
(925 Views)
Thank you for your answer. In the real application I'm only updating
the table when values have changed. But when I have nothing to update
and I make this with a case-structure, the table is empty (see the
attached file). Do you know how I can keep the data in the table
otherwise. Excuse me, my English is not so good, I'm trying to improve
this.
Michael
0 Kudos
Message 13 of 16
(925 Views)
It certainly uses more memory, but it is not neccessarily slow. It was tested on a P4 2.4 GHz machine. The average time of updating is about 7 ms when writing to the indicator directly, it is only 4 ms when writing to the local variable. The memory is not re-created every time unless the array size changes.

Joe
0 Kudos
Message 14 of 16
(925 Views)
Look at BJD1613's answer about a shift register. In the case structure for the no update, you're using the default value. The default value for an array is an empty array.
0 Kudos
Message 15 of 16
(925 Views)
hi BJD1613,

thank you for your files "TestTable[1]wDD.vi" and "TestTable[1]wSR.vi" but I'm not able to open the files because I'm working with Version 6.1. Could you save the files in 6.1-format and send the files again?

Michael
0 Kudos
Message 16 of 16
(925 Views)