I checked the RT block by Leonardo Daga. Using this you can
run a fast simulation in real time but not a slow
simulation. Is this true even with realtime workshop toolbox
of Matlab? i.e. a faster simulation can be slowed to
realtime but a slower simulation cannot be sped up to
realtime. If this is the case then I will have to work on
making my simulation faster.
Okay I will give more detials of my work. We are working on
servo modeling of an antenna. The present servo computer to
control the antenna is very outdated so we want to upgrade
it to PC104. Instead of testing PC104 directly on antenna we
are thinking of testing it first on antenna simulation on
MATLAB.
The current and velocity loops for antenna are there in
hardware (electronic cards) but the position loop is there
in software (PC104). So my task is to simulate the anntena,
current and velocity loops in matlab. The postion output
will be given to PC104 which will complete the position
loop. As we are not working on actual anntena we don't have
encoder so I will have to simulate that also in Matlab.
At present instead of whole anntena we are only considering
only the motor with the loops and encoder simulation. This
itself is becoming very slow for required clock frequency of
encoder (about 15KHz). With the whole anntena model the
things become infinitely slow!!
Also we are not using TCP/UDP or any such communication protocol
"Guoliang Zhang" <zhangl@mathworks.com> wrote in message
<g651j7$afr$1@fred.mathworks.com>...
The type of simulation you've described is called Hardware-in-the-Loop
simulation: running a model that describes the physical system in realtime
and test out the controller hardware.
what RTW is capable of doing is to generate C code that describes your
system to be modeled. Other add-ons from Mathworks (including xPC, real-time
windows) or third-party vendor tools (OPalRT, dspace) provide solutions
(hardware+software) to compile, download and run the RTW generated code onto
certain real time target (PC, special hw, os etc.) and provides
digital/Analog IO to interact with the controller circuit. These are
different solutions that are priced differently with different capabilities
and performance. If you decide to stick with RTW and matlab, you can start
with xPC, which might be the best cost/performance for a starter project
like what you are doing.
just my 2 cents
GZ
>I checked the RT block by Leonardo Daga. Using this you can
> run a fast simulation in real time but not a slow
[quoted text clipped - 39 lines]
>> hth
>> GZ
Trupti Ranka - 24 Jul 2008 07:51 GMT
Thanks
"Guoliang Zhang" <zhangl@mathworks.com> wrote in message
<g681jj$gj0$1@fred.mathworks.com>...
> The type of simulation you've described is called Hardware-in-the-Loop
> simulation: running a model that describes the physical system in realtime
[quoted text clipped - 14 lines]
>
> GZ