geez0x1 / CompliantJointToolbox

Compliant Joint Toolbox (CJT) for MATLAB and Simulink
GNU General Public License v3.0
37 stars 14 forks source link

simulinkLibraryTest fails on MATLAB R2015b #31

Closed geez0x1 closed 7 years ago

geez0x1 commented 7 years ago

@joernmalzahn I think you have upgraded your installation of MATLAB, since Simulink complains about simulinkBlockLibraryTest being for a newer version of MATLAB on my machine (which runs 2015b). This in itself shouldn't be a problem, however the test fails for me and I can't figure out why. jObj is defined within the test function, the same place as sim() is called. Maybe 2015b doesn't pass the local variables to the workspace as seen by simulink?

================================================================================
Error occurred in simulinkLibraryTest/testBuiltJoint and it did not run to completion.

    --------------
    Error Details:
    --------------
    Error using simulinkLibraryTest>testBuiltJoint (line 138)
    Error due to multiple causes.

    Caused by:
        Error using simulinkLibraryTest>testBuiltJoint (line 138)
        Invalid setting in 'simulinkBlockLibraryTest/Discrete-Time Integrator' for parameter 'SampleTime'.
            Error using simulinkLibraryTest>testBuiltJoint (line 138)
            Error evaluating parameter 'SampleTime' in 'simulinkBlockLibraryTest/Discrete-Time Integrator'
                Error using simulinkLibraryTest>testBuiltJoint (line 138)
                Undefined variable "jObj" or class "jObj.Ts".
        Error using simulinkLibraryTest>testBuiltJoint (line 138)
        Error evaluating parameter 'jointObj' in 'simulinkBlockLibraryTest/JointElectricalSubsystem'
            Error using simulinkLibraryTest>testBuiltJoint (line 138)
            Undefined function or variable 'jObj'.
        Error using simulinkLibraryTest>testBuiltJoint (line 138)
        Error evaluating parameter 'jointObj' in 'simulinkBlockLibraryTest/JointModel'
            Error using simulinkLibraryTest>testBuiltJoint (line 138)
            Undefined function or variable 'jObj'.
geezIIT commented 7 years ago

Not seeing this bug any more. Closing.