Using MATLAB to interface with Hardware
显示 更早的评论
Is it possible to use MATLAB to control hardware interfaces with simple IOs?
回答(1 个)
Walter Roberson
2011-3-16
0 个投票
I dunno. I find the basic serial interfaces easy enough to program (at least according to the documentation), but I have seen other people call them too difficult to use. "Simple" is a matter of opinion.
Serial interfaces can be done with basic Matlab. The Data Acquisition Toolbox adds A/D and D/A for a couple of major brands and interface styles, but is not especially strong on USB (not really Mathwork's fault: manufacturers tend to dislike documenting their USB interfaces.) There is also the Instrument Control Toolbox; I am not clear on the distinction between that and Data Acquisition other than that I know Instrument Control adds TCP and UDP.
If you need high bandwidth or low latency, then usually the best thing is to have the I/O board directly on the computer (and consider using Real Time Workshop). Interfacing over USB often leads to bandwidth or latency disappointments.
Video has its own set of issues.
类别
在 帮助中心 和 File Exchange 中查找有关 Data Acquisition Toolbox Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!