real time processing
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to input the image to Matlab automatically in real time processing?
For function imread, we read the picture in folder to Matlab isn'it? I want the Matlab may identify the new picture in the folder and automatically input and process. how to do?
0 commentaires
Réponse acceptée
Walter Roberson
le 8 Déc 2011
imread() is usually far too complex to store in a real-time system. Many real-time systems do not have space to store more than 10 kilowords or perhaps 32 kilobytes of code.
In computer science, real-time computing (RTC), or reactive computing, is the study of hardware and software systems that are subject to a "real-time constraint"— e.g. operational deadlines from event to system response. Real-time programs must guarantee response within strict time constraints.[1] Often real-time response times are understood to be in the order of milliseconds and sometimes microseconds. In contrast, a non-real-time system is one that cannot guarantee a response time in any situation, even if a fast response is the usual result.
But small memory like that is merely typical, not fundamental. It is possible to do real-time work on large systems, including systems that have file systems, but the operating system and hardware has to be designed for that purpose.
Your use of the word "folder" suggests strongly to me that you are planning to do this work on an MS Windows system, which is a problem: MS Windows is not designed for real-time work. Amongst other things, MS Windows is unable to provide time bounds on disk and file-system operations.
A non-trivial difficulty is that there is quite a difference between a file appearing in a directory, vs the file being ready for processing. (This can be overcome with the co-operation of the program that is creating the files.)
You can read about some of the architectures required for real-time systems here. They are your only hope on operating systems supported by MATLAB these days (SGI IRIX used to be able to do real-time work but it is no longer made and has not been supported by MATLAB for even longer.)
2 commentaires
Walter Roberson
le 9 Déc 2011
I believe the answer is Yes, that can be done. I have not worked with LabView at all, though, so I do not know the best way of handling it.
I know from past reading that LabView can call MATLAB routines; I have not looked in to the matter to see whether that requires creating a DLL with the MATLAB Compiler.
LabView should be able to connect to MATLAB when MATLAB is running in Automation Mode, which it does when it is invoked through an ActiveX control. Using that interface, LabView should in theory be able to set a variable naming the file it just created, and then tell MATLAB to run a routine on that file.
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!