Ignore:
Timestamp:
Jan 11, 2006, 3:55:15 PM (19 years ago)
Author:
dkearney
Message:

modified matlab bindings and tests.
includes all popular functions available in RpLibrary? and RpUnits
compile and run, but not all tests work as they should
some of these functions will be removed soon because the id field is
no longer a valid argument. path ids should be incorporated in paths from now on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matlab/rpLibResult.cc

    r135 r154  
    33 *  INTERFACE: Matlab Rappture Library Source
    44 *
    5  *    rpLibResult(lib)
     5 *    [err] = rpLibResult(lib)
    66 *
    77 * ======================================================================
     
    1616#include "RpMatlabInterface.h"
    1717
     18/**********************************************************************/
     19// METHOD: [err] = rpLibResult (libHandle)
     20/// Write Rappture Library to run.xml and signal end of processing.
     21/**
     22 * Usually the last call of the program, this function signals to the gui
     23 * that processing has completed and the output is ready to be
     24 * displayed
     25 */
     26
    1827void mexFunction(int nlhs, mxArray *plhs[],
    1928                 int nrhs, const mxArray *prhs[])
    2029{
    21     const char *output_buf;
    2230    int libIndex = 0;
     31    int err = 1;
    2332    RpLibrary* lib = NULL;
    2433
     
    2635    if (nrhs != 1)
    2736        mexErrMsgTxt("One input required.");
    28     else if (nlhs > 0)
     37    else if (nlhs > 1)
    2938        mexErrMsgTxt("Too many output arguments.");
    3039
     
    3746        if (lib) {
    3847            rpResult(lib);
     48            err = 0;
    3949            // cleanLibDict();
    4050        }
    4151    }
    4252
    43     /* Set C-style string output_buf to MATLAB mexFunction output*/
    44     plhs[0] = mxCreateString(output_buf);
     53    plhs[0] = mxCreateDoubleScalar(err);
    4554
    4655    return;
Note: See TracChangeset for help on using the changeset viewer.