04-28-2009 08:57 AM
Hello,
I have a 2d array of temperatures that I am displaying in a table as a colour. I have different ranges which determine what colour is displayed.
A requirement is that the temperature ranges can be controlled using dials in 'real time', ie when you turn the dials you should see the colours change.
But the current method that I am using seems to slow as it goes through row by row changing the colour.
I put a button in, so it whould at least update when requested, so the VI wouldn'tbe as sluggish.
Is there any way of speeding this up?
(VI attached)
04-28-2009 09:11 AM
A couple of techniques to spped up table updates.
1) use index of "-2" and "-1" to do entire table or single rows or collumns.
2) Defer fronta panel updates before and undefer after the update.
3) Keep your tables small (cheat if you have to ).
Ben
04-28-2009 10:14 AM
Thanks for the prompt reply Ben.
I've tried using the -1 and -2 thing. By putting -1 as the input to the bundle by name node for the orw and column doesn't seem to do anything. And by putting -2 takes the last row/column in my arrayand turns every row/column in the table that colour.
Also I am not sure what you mean by defer and undefer front panel update, would you mind expanding on this?
I am looking for way to cheat btw 😉
Jack
04-28-2009 10:24 AM
If you search on deferthis is near the top. Check out that link for more words on this topic.
Ben