Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

.Net object created by Matlab 7.3 r2006b

Status
Not open for further replies.

MarioDB

Computer
May 7, 2007
1
Hi! Can you help me please?
I'm working with Matlab 7.3 r2006b and Visual Basic 2005. I made my application that use 2 .Net object made in Matlab. I'll name these "DOE" and "IPM".
Well, when I start my application in VB 2005, I call a function of IPM called "act()" that contains some statements like "tf([], [])" and "lsim()" all work fine, but if I start my application calling the other .Net component called "DOE" (which work fine and does't contains LTI statements) and AFTER I call the same previously component IPM with the same "act()" function, this "act()" function throws this exception:

MWMCR::EvaluateFunction error: Undefined variable "ltipack" or class "ltipack.tfdata".Error in =>act.m at 27.

I have just controlled the code and the error is in the "tf()" line. Then I ask myself why the same function works when is launched first but doesn't work when it's launched for second? How I can resolve this problem?

Thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor