Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-2923

MATLAB interface max loop count

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P1
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: R2013a
    • Component/s: MATLAB Interface
    • Labels:
      None
    • Environment:

      Windows 7 Enterprise 64-bit
      2012-07-10 build

      Description

      There seems to be some sort of timeout in the MATLAB interface that prevents long scripts from running.

      The attached script calls myfunc.m, which has a dummy for loop that iterates x number of times. When called with x = 1e11, MATLAB standalone takes almost 300 seconds to execute. But when called from GMAT, it returns in less than 10 seconds.

        Gliffy Diagrams

          Attachments

          1. myfunc.m
            0.1 kB
          2. myfunc.m
            0.1 kB
          3. test.script
            0.1 kB
          4. test.script
            0.1 kB

            Activity

            Hide
            shughes Steven Hughes added a comment -

            Perhaps a solution is to be able to set a time out value in the startup file. I suspsect having no value for time out would cause other problems.

            Show
            shughes Steven Hughes added a comment - Perhaps a solution is to be able to set a time out value in the startup file. I suspsect having no value for time out would cause other problems.
            Hide
            shughes Steven Hughes added a comment -

            ccb: p1 13a

            explore more and see if Mathworks has insight.

            Show
            shughes Steven Hughes added a comment - ccb: p1 13a explore more and see if Mathworks has insight.
            Hide
            jjkparker Joel Parker added a comment -

            The function input is correctly reaching MATLAB as 1e10. I've submitted it to Mathworks as a service request.

            Show
            jjkparker Joel Parker added a comment - The function input is correctly reaching MATLAB as 1e10. I've submitted it to Mathworks as a service request.
            Hide
            jjkparker Joel Parker added a comment -

            This actually isn't a bug: running the function manually in GMAT's MATLAB Engine window shows this warning:

            Warning: FOR loop index is too large. Truncating to 2147483647. 
            

            This warning is never reported to the GMAT message window (see bug GMT-3779).

            Changing myfunc.m to use a while loop instead shows correct behavior.

            Show
            jjkparker Joel Parker added a comment - This actually isn't a bug: running the function manually in GMAT's MATLAB Engine window shows this warning: Warning: FOR loop index is too large. Truncating to 2147483647. This warning is never reported to the GMAT message window (see bug GMT-3779 ). Changing myfunc.m to use a while loop instead shows correct behavior.
            Hide
            jjkparker Joel Parker added a comment -

            Closing; no further tests or documentation needed.

            Show
            jjkparker Joel Parker added a comment - Closing; no further tests or documentation needed.

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: