Check output of MATLAB at serial port
5 views (last 30 days)
For studying purpose, I want to just check whether MATLAB can send some data to serial port (COM1) or not. Can anyone suggest me a simple program to do this? Also, if I want to check whether the received data is correct or not, how can I do that? Should I connect probe of a DSO(digital storage oscilloscope) between Rx(Receive data) and GROUND pins of the port and check the received pattern bit by bit? Or is there any other simple method to check the output (which does not require a device such as a microcontroller as a receiver?) Thank you for your answer in advance.
Walter Roberson on 23 Feb 2014
Connecting a probe in the way you suggest is not likely to work. Serial ports use a data framing protocol that you data is unlikely to match. Or is the output you are referring to already in RS232 serial form?