Standalone executable, real time application
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello to all,
I am developing a project and i would like your thoughts and your opinion about this...
I want to design a fuzzy logic controller with real inputs and real outputs. I would like to run the controller outside Matlab environment (probably an .exe file...?) and along with a Visual Basic application.
Should i use - Matlab compiler, - Matlab Builder NE or - Simulink coder (Real Time Workshop) ??
The controller's input will be inserted from a .txt file but the output will be sent in a serial port for communication with a pic micro-controller.
What do you think?
Thank you in advance,
Tassos
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Okt. 2011
It depends what you mean by "real time". I/O on MS Windows is synonymous with "unbounded latency".
Average latency on any particular MS Windows system might be tolerable for your purposes, but you cannot count on it.
You mentioned serial ports for communication with the PIC micro-controller. If you are planning to use a virtual USB serial port, then unless you write your own drivers, the lower bound on your latency is 40 ms, equivalent to 125 Hz. That applies no matter which OS.
12 Kommentare
Walter Roberson
am 12 Okt. 2011
Timers in VB that deliberately invoke the DLL would be feasible only if the timer will reliably fire and execute and complete the DLL task within your maximum latency period (which you indicated earlier is 1/2 second.)
If you have the VB reading from the PIC, then I am confused about which part will be doing what? What computation would the the MATLAB DLL do that you would not just execute in straight VB ? And is the MATLAB component responsible for controlling the PIC or is the VB part? (You wouldn't want to be sharing a single serial port between the two; MATLAB doesn't like sharing files or devices.)
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!