Help with the efficiency of the program, stop a loop for?

Hi all

I need some advice programming General to help my VI to operate more effectively.  I have a table in which the program runs each point and 2d compares the value for the surrounding points.  The user can select the range of cells to inspect range, so if the user selects 1, then, it will compare the point (0,0) to all cells in a single cell.  If the user selects 2, then all the cells in a range of cells 2 and so on.  If the point (0,0) is superior to everything around him, then he writes this point in a table.

I made more notes in the VI to explain what is happening, but I think that the program would be more effective if I could stop a for loop to run as soon as it detects a false condition, i.e. the point (0,0) is not more than one of the surrounding points.  As it is right now, it compares at all points around him, writing TRUE/FALSE for a table, then checks if all conditions are TRUE.  That takes a lot of time if the user selects a value of 8, for example.  It would reduce a lot of processing time if he just threw to the next point as soon as it finds a FALSE condition.

Any other advice would be appreciated as well.  Try to be a more effective programmer!

Thank you!
Alex

I do not attach the data file, because it is too big.

In versions before the invention of the loop For with conditional stay terminal, you can do it, but you have over what a while loop to stop when your condition is True, OR when the terminal i is equal to the size of the incoming array - 1.

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Issue scan fingerprint with Win 7 and Satellite Pro A300

    SORRY, MODEL IS A300. Bunk/upgrading Vista to Windows 7 Professional and we found the fingerprint reader does not.Unable to remove program and custom accept the new installation of fingerprint reader or even of new fingerprints to be scanned. (Former

  • Procedure to display my desktop on MSN?

    How can I check my office when I have a bit of conversation msn my webcam on? Gr. Tom Heuts Netherlands

  • Lenovo A6000 - low call Volume

    Hello I bought the phone A6000 recently in India. During phone calls, people complain to me that my volume is very low and they are hardly able to hear me. Everyone knows the same problem? Y at - it a setting I need to change to fix the problem of ca

  • message of undefined LabVIEW on custom codes error code

    "I use the VI General error handler to define custom errors, I have inserted all entries for this vi (user-defined descriptions, codes, user-defined error code, source of the error, type dialog and error in) but some I still get the message:" This er

  • HP Pavilion 17 laptop PC: new position question

    I have a Pavillion under Windows 7 Pro 17 laptop.  I want to disable the touchpad mouse because it causes me severe headaches when I type.  I use a USB external mouse and that you don't need for the touchpad at the moment.  I would like to find a way