Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matlab/Simulink, 2MHz frequency signal, real time

Status
Not open for further replies.

simasa

Mechanical
Sep 25, 2007
30
0
0
DE
hello
I am using a Matlab XPc Target real time system for a measurement application. A counter board by NI will be used to take measurements of linear encoders. The board will deliver a TTL signal of 2MHz frequency, which is now to be worked in Simulink.
Signal handling is Matlab could be a slow process. Is there a frequency limit of a signal that can be worked in Matlab/Simulink ? if Matlab would not be able to handle this high frequency signal in real time, what could be the system design strategy(real time)?
Perhaps buffering the signal on board and allowing Matlab to read the signal according to its ability in real time.
Any suggestion would be really appreciable?
Regards
Simasa
 
Replies continue below

Recommended for you

What do you mean by "handle?" You say nothing about what you're doing to this signal, and you expect an intelligent answer?

TTFN

FAQ731-376
 
Hello,
This would be a position signal, an actual measure of tool of a milling machine along x axis. Similarly there will be position measure for y and z axis. This would give the real trajectory measure of a milling tool.
A reference path would be generated from provided NC Code in Simulink. Now both reference and measured path would be compared to find the deviations through some algorithms. A new trajectory would be developed and the reference NC code would be modified according to it improving the accuracy of the milling (dynamic compensation of machine errors in real time).
Would there be problems (Matlab is a comparatively slow, position signal is of 2MHz etc) that may have to be faced?
Thanks
 
Status
Not open for further replies.
Back
Top