On 1/9/2011 9:56 AM, Javier Ros wrote:
> Hi!,
>
> I'm thinking about implementing a Real-Time hardware in the loop simulation
> of our hexaglide (http://www.imac.unavarra.es/~cnc).
>
Years ago, I was involved in projects to simulate the behavior of large 
buildings and their heating/cooling components/systems/sensors, etc. in 
order to test real-world computer-based control systems and new 
algorithms developed for them. Toward the end we even introduced 
simulated fires. To quote Andy, it was challenging.
> ...stuff deleted...
> I'm pretty new to this so any suggestions are welcome, particularly those
> that can same time to me.
>
> Achieving Real Time performance for a complex machine can be difficult, so
> if I can use the whole setup without running it in Real-Time
> it wold be still acceptable, at least in a debugging phase.
>
Well, whether running in real time or software-loop time, Javiar, there 
is the obvious challenge: one must understand the device(s) well enough 
to develop equations that represent them adequately. What is 'adequate' 
depends on the purpose of the exercise.

If running in real time, then one faces another challenge: one must be 
able to solve these equations in faster-than-real time, so that the rest 
of the loop is fooled into thinking it is sensing and controlling a real 
machine.

Finally, whether running in real time or software-loop time, there is 
the challenge to get the simulation code to behave as it's being 
manipulated by the controller (EMC2 in this case). Equation solvers can 
be tricky. Aphysical artifacts can crop up that can be devilishly 
difficult to squash. These artifacts can drive the controller (and the 
programmer!) crazy.

I'm too old to embark on such an exercise now, but if I did, I'd begin 
by developing and testing my ideas in a separate mathematical software 
environment such as Mathematica/Maple/Matlab ($$$) or Sage (open 
source). I'd start writing code for EMC2 only after I was satisfied with 
the result.

None of this is to say "don't do this" but to say it takes effort to get 
it right.

Good luck

  -and-

Regards,
Kent

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to