09-29-2005 05:50 AM
@chilly charly wrote:
Arrays and Strings in Loops This Concatenate Strings function is inside a For Loop. Every time characters are appended to the string, LabVIEW must reallocate the memory buffer and copy the entire string to a new location. This can cause execution time to become slower with each loop iteration."May be I missed something but I do not see another way of appending chars to an array of string !
I assume they mean you should use Replace Substring, as you would do with an array.
I don't see what kind of control/analyze the VI analyser could do on icons. The few attempts made here about the icon not being surrounded by a full size frame are again inappropriate, since the icons were deliberately made smaller !
I don't know which comments were made, but if you're only getting a notification that the icons are small, that would seem to be OK, because you could have instances where that wasn't done on purpose.
09-29-2005 06:20 AM
09-29-2005 06:30 AM
CC,
"1/ I don't believe I have that much wires running under controls or structures, just because I take a great care of that. There are very few of them, and that was even deliberate, to simplify large diagram when some functions have no go-through connectors"
I think you are on a no win situation with this one, because some of your Icon don't use all of the iron area, you will still fall foul of this test as it seems to test for the whole icon area. Even though you have wires that seem to be in the open they are not. eg U32 Changed_ogtk.vi.
Ray
09-29-2005 06:34 AM - edited 09-29-2005 06:34 AM
Message Edité par chilly charly le 09-29-2005 01:43 PM
09-29-2005 06:37 AM
tst,
I think they mean, "if you know the size, declare the whole array outside the loop, then change the contents inside the loop".
Ray
09-29-2005 07:22 AM
LabVIEW, C'est LabVIEW
09-29-2005 08:11 AM
Part 1 of 2 (?)
09-29-2005 08:12 AM - edited 09-29-2005 08:12 AM
Message Edited by Ben on 09-29-2005 08:13 AM
Message Edited by Ben on 09-29-2005 08:13 AM
09-29-2005 08:20 AM - edited 09-29-2005 08:20 AM
Message Edited by Ben on 09-29-2005 08:21 AM
09-29-2005 08:30 AM
Some nitpicking:
Think what Tom Sawyer, Moby Dick and W. Shakespear would have been like if they used a spelling and grammar checker!
Tom Sawyer and Moby Dick were both characters in books by Samuel Clemens (a.k.a Mark Twain), who also appeared on an episode of star trek, and by Herman Melville, respectively.
If I remember correctly, both characters could not write (especially the whale), so I don't think a spell checker would have helped them. Shakespeare should have an e at the end.
It is tempting to just deal with this code in the same way you would have if the work was being done on the diagram of the GUI and just ignore the error clusters.
That is a dangerous choice. Some properties can have errors even in the same VI (for example, selecting a non-existent active plot). You should be careful where you do that.