01-29-2010 12:10 PM
01-29-2010 01:02 PM
01-29-2010 02:06 PM
01-29-2010 02:18 PM
GrantM wrote:
Hello,
Actually, MathScript does call that VI... and quite often.
Really? Yuck. And this is documented where?
02-01-2010 10:04 AM
02-01-2010 03:49 PM
boechat wrote:
Using the profile performance tool...
If you are using a newer version of LabVIEW (definitely 2009 and I believe 8.5 and 8.6 as well), you will see a performance improvement by removing the continue statement in your code. The difference will be more pronounced in 2009 because we can generate more optimal code if you write your code and omit that statement. An alternative is to set a boolean value in your if-statement check and then wrap the rest of the loop in another if-statement that executes only if the boolean value is true. Remember to reset your boolean before the next iteration of the loop.
smercurio_fc wrote:
Really? Yuck.
And this is documented where?
This is not documented. It is just an implementation detail. It is part of the reason why MathScript is not currently as fast as a native LabVIEW implementation, but again, we are working to improve the generated code. Does this particular detail cause you a lot of pain?
Grant M.
Senior Software Engineer | LabVIEW MathScript | National Instruments
02-02-2010 12:24 PM
GrantM wrote:If you are using a newer version of LabVIEW (definitely 2009 and I believe 8.5 and 8.6 as well), you will see a performance improvement by removing the continue statement in your code. The difference will be more pronounced in 2009 because we can generate more optimal code if you write your code and omit that statement. An alternative is to set a boolean value in your if-statement check and then wrap the rest of the loop in another if-statement that executes only if the boolean value is true. Remember to reset your boolean before the next iteration of the loop.
I am using the LabVIEW 8.6. I removed the continue statement, but I didn't see a real performance improvement.