From: Zongtao on 26 Apr 2010 09:54 I am thinking of buidling a HIL simluation environment. It is a control system. The plant model is built in Simulink and the controller is a microprocessor (Freescale). If I want to realize such system, what toolbox do I need from Matlab? Real-time Workshop? I looked through the posts about HIL, most of which are talking about using xPc target as the controller. Can we use other microporcessor as the controller? If so, how can I get PC (with Simulink environment) connected with the microprocessor? Thanks. Best, Tony
From: Zongtao on 26 Apr 2010 10:21 Or can I use Instrument Control Toolbox for communication between the microprocessor and Simulink models? "Zongtao" <zongtaolu(a)gmail.com> wrote in message <hr45u0$b55$1(a)fred.mathworks.com>... > I am thinking of buidling a HIL simluation environment. It is a control system. The plant model is built in Simulink and the controller is a microprocessor (Freescale). > > If I want to realize such system, what toolbox do I need from Matlab? Real-time Workshop? > > I looked through the posts about HIL, most of which are talking about using xPc target as the controller. Can we use other microporcessor as the controller? If so, how can I get PC (with Simulink environment) connected with the microprocessor? > > Thanks. > > Best, > > Tony
From: Riccardo on 27 Apr 2010 05:21 "Zongtao" <zongtaolu(a)gmail.com> wrote in message <hr47gi$13h$1(a)fred.mathworks.com>... > Or can I use Instrument Control Toolbox for communication between the microprocessor and Simulink models? > > > "Zongtao" <zongtaolu(a)gmail.com> wrote in message <hr45u0$b55$1(a)fred.mathworks.com>... > > I am thinking of buidling a HIL simluation environment. It is a control system. The plant model is built in Simulink and the controller is a microprocessor (Freescale). > > > > If I want to realize such system, what toolbox do I need from Matlab? Real-time Workshop? > > > > I looked through the posts about HIL, most of which are talking about using xPc target as the controller. Can we use other microporcessor as the controller? If so, how can I get PC (with Simulink environment) connected with the microprocessor? > > > > Thanks. > > > > Best, > > > > Tony Tony, extend your search to google as well, there's a number of different HW solutions out there and you should try to identify those best suited for your application, both HW-wise and SW-wise. Some solutions may be hosted on a PC, some others will require their own separate racks. You can certainly - and probably must actually - use RTW to generate the RT application running on the simulator, if your physical models are developed in Simulink. Riccardo
From: Zongtao on 27 Apr 2010 08:39 Thanks, Riccardo. I see the point that RTW is a must. I am thinking of using xPC target for this HIL simulation. Can freescale's corefire microprocessor be used as xPc target computer? I tried to seach but didn't find the certain answer to this. "Riccardo" <nothx(a)nospam.org> wrote in message <hr6a9v$joj$1(a)fred.mathworks.com>... > "Zongtao" <zongtaolu(a)gmail.com> wrote in message <hr47gi$13h$1(a)fred.mathworks.com>... > > Or can I use Instrument Control Toolbox for communication between the microprocessor and Simulink models? > > > > > > "Zongtao" <zongtaolu(a)gmail.com> wrote in message <hr45u0$b55$1(a)fred.mathworks.com>... > > > I am thinking of buidling a HIL simluation environment. It is a control system. The plant model is built in Simulink and the controller is a microprocessor (Freescale). > > > > > > If I want to realize such system, what toolbox do I need from Matlab? Real-time Workshop? > > > > > > I looked through the posts about HIL, most of which are talking about using xPc target as the controller. Can we use other microporcessor as the controller? If so, how can I get PC (with Simulink environment) connected with the microprocessor? > > > > > > Thanks. > > > > > > Best, > > > > > > Tony > > Tony, > extend your search to google as well, there's a number of different HW solutions out there and you should try to identify those best suited for your application, both HW-wise and SW-wise. Some solutions may be hosted on a PC, some others will require their own separate racks. > You can certainly - and probably must actually - use RTW to generate the RT application running on the simulator, if your physical models are developed in Simulink. > Riccardo
From: Frank W. on 28 Apr 2010 04:38
> I looked through the posts about HIL, most of which are talking about using xPc target as the controller. Can we use other microporcessor as the controller? If so, how can I get PC (with Simulink environment) connected with the microprocessor? > Hello, concerning the supported hardware by xPC Target you may look at http://www.mathworks.com/support/product/XP/productnews/interactive_guide/xPC_Target_Interactive_Guide.html I doubt that the Freescale processor is supported. You might want to have a look at the products - Real Time Workshop Embedded Coder - Embedded IDE Link ( for Tasking see http://www.mathworks.com/products/ide-link/altium-adaptor.html if your processor is supported) The latter allows generation of processor-in-the-loop (PIL) projects. In such a project at each time step the control algorithm is executed on the real hardware whereas the plant model (or test signals) is run on the PC within Simulink. Of course, this is not real time exececution because each time step Simulink takes its plant values, sends them to the hardware, lets the hardware run the algorithm for on time step after which the program execution stops (breakpoint on your hardware), reads the value from your hardware and then processes the next time step. Regards Frank |