<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8654346958426381378</id><updated>2011-04-22T00:16:55.288+02:00</updated><category term='Realtime simulation'/><category term='rapid control prototyping'/><category term='Linux Xenomai'/><category term='SCALE-RT'/><category term='hardware-in-the-loop'/><category term='Real-time simulation'/><title type='text'>SCALE-RT Linux Real-Time Simulation Environment</title><subtitle type='html'>Real-time simulation is a valuable tool for development and test of technical control devices up to whole systems (such as aircraft). Applications of real-time simulation include hardware in the loop (HiL) simulation and rapid control prototyping i.e.
control units can be developed without actual hardware/sensors by replacing the target hardware (or parts of it) by a simulation system.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://scale-rt.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8654346958426381378/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://scale-rt.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jumpingkiwi</name><uri>http://www.blogger.com/profile/08259622782012347677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8654346958426381378.post-6647887381563744383</id><published>2008-06-03T09:00:00.012+02:00</published><updated>2008-06-03T16:02:35.387+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCALE-RT'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware-in-the-loop'/><category scheme='http://www.blogger.com/atom/ns#' term='Real-time simulation'/><category scheme='http://www.blogger.com/atom/ns#' term='rapid control prototyping'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux Xenomai'/><category scheme='http://www.blogger.com/atom/ns#' term='Realtime simulation'/><title type='text'>Realtime Simulation on Linux</title><content type='html'>&lt;h2&gt;Motivation&lt;/h2&gt;The development process of electronic and mechanical devices often includes the simulation of parts or whole systems without actual hardware. On the one hand this is done in order to verify that the requirements are met and that the final system will in principal work. On the other hand control circuits in development can be interfaced with a simulated hardware for testing the control algorithms without destroying valuable hardware or for developing the control circuits without even having the actual hardware (the increasing time-to-market pressure requires the development of hardware and control devices in parallel). For these applications an off-line simulation is not sufficient as the most control devices must be tested in real-time - especially for time-critical applications (such as e.g. flight control units). For hardware-in-the-loop simulation and rapid control prototyping a simulation system must be able to compute mathematical models within a certain time-frame (e.g. a few hundred microseconds). In the following a real-time simulation framework solution is described which is based on Linux.&lt;br /&gt;&lt;br /&gt;SCALE-RT is a Linux based realtime simulation framework supporting a variety of different IO hardware including National Instruments FPGA cards. SCALE-RT turns a standard personal computer into a hardware-in-the-loop (HiL) platform. Different simulation tools are supported such as Matlab/Simulink, ITI SimulationX and the open source software scilab/scicos (&lt;a href="http://www.scicos.org/"&gt;http://www.scilab.org&lt;/a&gt;).&lt;br /&gt;&lt;h2&gt;Components&lt;/h2&gt;A hardware in the loop systems requires usually two or more computers: one developer machine (running Microsoft Windows) and one or more target machines (where the actual simulation is executed). In SCALE-RT 4.1 the target machine runs Linux (Kernel 2.6.xx) with Xenomai real-time extension. The models are compiled on the development machine into a kernel module which is then copied to the target machine and executed. The so-called &lt;span style="font-style: italic;"&gt;model data interface server&lt;/span&gt; (MDI server) runs on the target machine and enables to load, start, stop, and control inputs and outputs of running models. It can be accessed over network via different interfaces:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;SCALE-RT Insight - a easy to use drag-and-drop GUI for creating a control and measurement surface for your models&lt;br /&gt;&lt;/li&gt;&lt;li&gt;C API (Windows DLL) - for writing customized software which likes to access real-time models&lt;br /&gt;&lt;/li&gt;&lt;li&gt;LabVIEW library&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2&gt;Workflow Outline&lt;/h2&gt;In order to get a model running in real-time the following steps are necessary&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Create a model (e.g. simulating your target hardware) on the development system (Microsoft Windows) with one of the previously mentioned simulation tools&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Generate code and cross-compile the model into a real-time executable with the tool-chain of the SCALE-RT developer kit (for Matlab the Realtime Workshop is required)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Load the compiled model onto the target and start the model&lt;/li&gt;&lt;li&gt;Control model parameters and measure model outputs e.g. &lt;span style="font-style: italic;"&gt;SCALE-RT Insight&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2&gt;Hardware Support&lt;/h2&gt;Measurement hardware (National Instruments PCI cards) is supported via the open source &lt;a href="http://www.comedi.org/"&gt;COMEDI &lt;/a&gt;interface. Analog IO, digital IO as well as different types of bus systems (CAN) are supported. The modularity of the Linux kernel enables to dynamically extend the system with new hardware drivers.&lt;br /&gt;&lt;h2&gt;Real-Time Computation Cluster&lt;/h2&gt;The HiL simulation of large systems (such as e.g. whole aircraft) often yield models of such a high complexity that they cannot be run on a single CPU in real-time. In such cases it is necessary to split a large model into smaller sub-models which are able to run on simulation targets. The SCALE-RT platform supports this step by different inter-model communication primitives:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;shared memory &lt;/span&gt;for data exchange between different cores on a multi-core CPU, and&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;distributed shared memory&lt;/span&gt; for data exchange between different models across CPU and computer boundaries.&lt;/li&gt;&lt;/ol&gt;The latter option requires the use of external hardware (shared memory PCI cards: VMIC 5565) which supports low-latency (50 micro-seconds) and low-jitter model intercommunication.&lt;br /&gt;&lt;h2&gt;Conclusion&lt;/h2&gt;SCALE-RT is a flexible Linux based real-time simulation environment which supports different measurement hardware. The scalability of the system is reflected in its real-time cluster support as well as in the extension via new hardware drivers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8654346958426381378-6647887381563744383?l=scale-rt.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scale-rt.blogspot.com/feeds/6647887381563744383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8654346958426381378&amp;postID=6647887381563744383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8654346958426381378/posts/default/6647887381563744383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8654346958426381378/posts/default/6647887381563744383'/><link rel='alternate' type='text/html' href='http://scale-rt.blogspot.com/2008/06/realtime-simulation-on-linux.html' title='Realtime Simulation on Linux'/><author><name>Jumpingkiwi</name><uri>http://www.blogger.com/profile/08259622782012347677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
