Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Closing HEC-RAS after every run #13526
    SALAKA
    Participant

    Hi Chris,

    I now tried it using Excel with VBA, and there your code works perfectly.

    When using matlab I can’t get this to work. As explained before I always
    get an error that the method ‘Compute_CurrentPlan’ doesn’t work with the
    passed arguments.

    But for now that’s no problem for me, as it’s working with VBA. Thank you!
    Saskia

    in reply to: Closing HEC-RAS after every run #13524
    SALAKA
    Participant

    Hi Chris,

    first thanks for your work here.

    Currently I’m trying to solve a problem when controlling HEC-RAS from Matlab. I’m writing
    to this thread as it seems to be a very similar problem.

    Basically I can’t get the blocking mode working, so HEC-RAS gets closed before finishing
    the computation.

    Currently the Code launches the computation with this line:

    h.Compute_CurrentPlan(0,0);

    To enable the blocking mode I tried several combination of arguments, but always get the error:
    No method ‘Compute_CurrentPlan’ with matching signature found for class ‘COM.RAS503_HECRASCONTROLLER’.

    What are the right arguments for Compute_CurrentPlan to enable the blocking mode?

    Thanks for your help, regards
    Saskia

Viewing 2 posts - 1 through 2 (of 2 total)