From: Kate J. on
Hi, Ramon,

Sorry for the delay in this reply. I wish it were possible to subscribe to these threads, so that we could be updated by email! I didn’t see your post until just now.

>> That is the question now, how to make the simulation to start from a simulation that is stopped while in xptarget? I'm how can you use get_param or set_param for that purpose once you are in xptarget, I guess it cannot be done remotely.

I’m not sure how ‘remote’ you want to get; for my own system, one component is an m-file that controls my gui; once the gui’s Start button is clicked, I start my Simulink model running using set_param( ). However, I’m not at the point, yet, where I know whether I’ll be able to remotely start xPC Target… I’m guessing that I’ll have to manually start that up before the user clicks the gui…


>> How is your problem going? Did you find a solution?
Well, I located Guy Rouleau’s real-time Simulink block:

http://www.mathworks.com/matlabcentral/fileexchange/21908-simulink®-real-time-execution

and have inserted that into my Host model. I have been told that, as long as this real-time block is present in the model I want to run in real-time, I can set the Fixed-step size (fundamental sample time) parameter in the model’s Configuration Parameters, and the model should run at this fixed increment. So far, I haven’t encountered any behavior of my system that contradicts this.

My current problem is that, once I have xPC Target connected and running, and my Host model starts running, there is a long pause for 5-10 seconds, where every component of my system (Host model, Target model, Target PC’s monitor) freezes. After this weird pause, things seem to run ok, except that the xPC Target Explorer gui now reports that the Target is Disconnected, when it’s actually still connected (I can still control the Target PC via the Host PC’s Matlab command line, etc.). I’m not too concerned about this bug in the xPC Target Explorer gui, which I have reported to Mathworks; I’m more concerned about this long pause – what is causing it, and will it be problematic for the integrity of the data I’m collecting? So, I’m trying to work on that issue right now. I currently am using an extremely old and slow PC as my Host PC; I’m
hoping that once I switch my Host PC to a newer PC, maybe this pausing issue will stop happening.

Thanks for checking in, Ramon; I’d be interested to hear updates on your project.
From: Steven Lord on

"Kate J." <quisquiliae3(a)hotmail.com> wrote in message
news:hvr81k$6qu$1(a)fred.mathworks.com...
> Hi, Ramon,
>
> Sorry for the delay in this reply. I wish it were possible to subscribe to
> these threads, so that we could be updated by email! I didn&#8217;t see
> your post until just now.

How are you reading these messages? If you're going through the MATLAB
Central newsreader interface, add the thread to your Watch List (just above
the "Tags for this Thread" box on the right side of the page) and specify
how frequently you'd like to be notified of new messages. Via Google Groups
there's a star to the left of the thread name in the Topic view or just
below the title in the message view. If you're reading the messages some
other way, you'll need to determine if there's some sort of "watch
list"/"favorites" functionality in the interface you use.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com


From: Kate J. on
Thanks for the tip, Steven. I had only ever noticed the "add author to my watch list" option on each post, but not the "add thread to watch list." This is very helpful.