From: Josh on 9 Apr 2010 10:23 I've been trying to run the example here: http://www.mathworks.co.uk/support/tech-notes/1600/1608.html#Section_5 but I continually get this error-> System.Runtime.InteropServices.COMException at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at MLApp.MLAppClass.GetWorkspaceData(String Name, String Workspace, Object& pdata) at MyMatlabService_test.Service1.ProcessXML(String aInputXML) in C:\Inetpub\wwwroot\EDASH_Data\MyMatlabService_test\MyMatlabService_test\Service1.asmx.vb:line 27 line 27 being: myMATLAB.GetWorkspaceData("transOut", "base", outputXML) I'm using Matlab R2010a, VS 2008, IIS 5.1 Any help would be appreciated! -Josh
From: Ashish Uthama on 9 Apr 2010 13:35 On Fri, 09 Apr 2010 11:23:05 -0300, Josh <jstreufe(a)utk.edu> wrote: > I've been trying to run the example here: > http://www.mathworks.co.uk/support/tech-notes/1600/1608.html#Section_5 > but I continually get this error-> > > System.Runtime.InteropServices.COMException > at System.RuntimeType.ForwardCallToInvokeMember(String memberName, > BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& > msgData) > at MLApp.MLAppClass.GetWorkspaceData(String Name, String Workspace, > Object& pdata) > at MyMatlabService_test.Service1.ProcessXML(String aInputXML) in > C:\Inetpub\wwwroot\EDASH_Data\MyMatlabService_test\MyMatlabService_test\Service1.asmx.vb:line > 27 > > line 27 being: myMATLAB.GetWorkspaceData("transOut", "base", outputXML) > > I'm using Matlab R2010a, VS 2008, IIS 5.1 > > Any help would be appreciated! > > -Josh It looks like the line: myMATLAB.PutWorkspaceData("transIn","base", , aInputXml); has a typo (the extra , ?) http://www.mathworks.com/access/helpdesk/help/techdoc/ref/putworkspacedata.html
From: Josh on 9 Apr 2010 15:30 Ashish, Thanks for the note, I did address that initially after looking at the sample code. > > It looks like the line: > myMATLAB.PutWorkspaceData("transIn","base", , aInputXml); > -Josh
From: Ashish Uthama on 9 Apr 2010 14:39 On Fri, 09 Apr 2010 11:23:05 -0300, Josh <jstreufe(a)utk.edu> wrote: > I've been trying to run the example here: > http://www.mathworks.co.uk/support/tech-notes/1600/1608.html#Section_5 > but I continually get this error-> > > System.Runtime.InteropServices.COMException > at System.RuntimeType.ForwardCallToInvokeMember(String memberName, > BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& > msgData) > at MLApp.MLAppClass.GetWorkspaceData(String Name, String Workspace, > Object& pdata) > at MyMatlabService_test.Service1.ProcessXML(String aInputXML) in > C:\Inetpub\wwwroot\EDASH_Data\MyMatlabService_test\MyMatlabService_test\Service1.asmx.vb:line > 27 > > line 27 being: myMATLAB.GetWorkspaceData("transOut", "base", outputXML) > > I'm using Matlab R2010a, VS 2008, IIS 5.1 > > Any help would be appreciated! > > -Josh You do have a variable transOut in your base workspace right? (and a function TxRequest on the path which creates it?) If you are debugging, and have teh MATLAB automation server session open. You could try executing simple commands and manually inspect the base workspace in the server session (say using whos) to ensure that the connection works.
From: Josh on 12 Apr 2010 10:15 Ashish, I'm new to Matlab and really just need to execute a function from the .NET COM interface. I'm in need of some simple guidance I thought the Mathworks example could provide. If I had a function (addtwo.m): -function addtwo(x,y) -%adds two numbers, vectors, etc -% print the result of x + y - x + y -end How do I call that in the .NET COM, similar to the example Mathworks provides? -Josh > You do have a variable transOut in your base workspace right? (and a > function TxRequest on the path which creates it?) > > If you are debugging, and have teh MATLAB automation server session open. > You could try executing simple commands and manually inspect the base > workspace in the server session (say using whos) to ensure that the > connection works.
|
Next
|
Last
Pages: 1 2 Prev: Sparse matrices not as advertised! Next: Trouble with trigger and time-out |