Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 15th, 2006, 01:16 AM
Authorized User
 
Join Date: Nov 2005
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to karveajit
Default Problem accessing Simulink models from C#

Hi,

     I want to access Simulink models from C#. I've added MATLAB Type Library reference in console App. But, When I call any function, it gives following error:
"An unhandled exception of type 'System.InvalidCastException' occurred in TestApp.exe

Additional information: QueryInterface for interface MLApp.DIMLApp failed."

Also find the piece of code:
MLApp.MLAppClass matlab = new MLApp.MLAppClass();
matlab.Execute("simulink");

Hoping for positive response.

Thanks and Regards,
Ajit Karve


Reply With Quote
  #2 (permalink)  
Old July 14th, 2006, 12:55 AM
Registered User
 
Join Date: Nov 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi Ajit Karve,
any success of linking Simulink with C#?

I am interested to look into this application also.

thanks.
Sincerely,
Thiam Huat

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XnaShooter loading .X models problem hellspawn_bg BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 1 December 5th, 2007 08:16 AM
Report Builder Models? SQLScott Reporting Services 2 October 26th, 2007 01:34 PM
3D Models with fbx extension JayCeKay BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 0 June 2nd, 2007 09:29 PM
Big models question darrinps BOOK: Expert One-on-One J2EE Design and Development 0 June 4th, 2003 02:10 PM



All times are GMT -4. The time now is 05:04 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.