Re: Matlab intermittent response to VC#
- From: "Baiju Max" <baijumax@xxxxxxxxx>
- Date: Tue, 6 Oct 2009 16:12:03 +0000 (UTC)
Thanks for your reply.I saw the samples in help file.Well adding events will work only for COM components.I hope they will add this this feature with .NET components created by MATLAB Builder NE in coming releases.
(Do you know where to post our request for the same so that Mathworks engineers picks this up?)
Cheers
BAIJU K M
"John Reilly" <jrhokie1.nospam@xxxxxxxxx> wrote in message <hafm25$abr$1@xxxxxxxxxxxxxxxxxx>...
Hi Baiju,.
Go to docs for Builder NE. In table of contents:
User Guide
Programming with COM Components Created by the MATLAB Builder NE Product
Adding Events to COM Objects
This will tell you how to add an event.
hth.
-reilly.
"Baiju Max" <baijumax@xxxxxxxxx> wrote in message <hae7oc$6q6$1@xxxxxxxxxxxxxxxxxx>...
Hi Cesar,
Thanks for your reply.I thought of doing something similar ( i.e writing output to a text file and use 'FileSystemWatcher' class's onChanged event in VC#) but after reading this article (http://www.mathworks.com/matlabcentral/fileexchange/11868) I think there's way to publish events from matlab subcribe the same VC#(if dotnet compiler supports) , Not able to find any help/examples though.
Cheers
BAIJUMAX
Cesar Koers <ckoers@xxxxxxxxxx> wrote in message <nGrym.7691$Xz6.7587@xxxxxxxxxxxxx>...
Baiju wrote:
Hi,
I have written a long running algorithm (takes 15 to 30 Mins to complete) in MatLab and converted it to a dotnet 2.0 assembly using 'deploytool'.I am using VC# to call the Matlab function and everything works just great.
However the only problem is that i cant see the progress of the program .The user clicks OK button and then he has to wait for 15-30 minutes for the results.
One solution I see to solve this problem to raise events (to report progress) from matlab and subscribe the same in VC# and inform the user about the progress.
Is there any way of doing the same?
(I have found this article http://www.mathworks.com/matlabcentral/fileexchange/11868 , tried this solution didn't get desired behavior)
Hi Baiju,
Following the 'KISS' principle: let your Matlab routine write it's
progress to a file & monitor that one. Could e.g. be html page you can
refresh in your browser (or fancier: one that refreshes itself using
javascript http://www.quackit.com/javascript/javascript_refresh_page.cfm)
It's not fast but does the thing I guess on your timescale
bye C
- Follow-Ups:
- Re: Matlab intermittent response to VC#
- From: Steven Lord
- Re: Matlab intermittent response to VC#
- From: John Reilly
- Re: Matlab intermittent response to VC#
- References:
- Matlab intermittent response to VC#
- From: Baiju
- Re: Matlab intermittent response to VC#
- From: Cesar Koers
- Re: Matlab intermittent response to VC#
- From: Baiju Max
- Re: Matlab intermittent response to VC#
- From: John Reilly
- Matlab intermittent response to VC#
- Prev by Date: Re: 3-D matrix reading a text
- Next by Date: framing with windowing
- Previous by thread: Re: Matlab intermittent response to VC#
- Next by thread: Re: Matlab intermittent response to VC#
- Index(es):
Loading