Hi, you will need the following OCX -MSCOMM32.OCX im sure u have it on ur machine already. Now using OLE u can communicate with ur serial port. Check the following links for more info, Attaching exported objects from below link, Hope This Helps.
Web resources about - how to read data from serial port or usb port - sybase.powerbuilder.general Serial - Wikipedia, the free encyclopedia Text is available under the Creative Commons Attribution-ShareAlike License;additional terms may apply. Write the serial communications necessary to communicate with your. Create an application that works by reading your current location from the GPS receiver. Real-time position information to a hardware device such as a GPS receiver.
Thank you for the assistance on this. I tried to import your uo script but get an error message 'illegal data type stoverlapped' Do you have the export for this? I assume it is a structure? I do have the mscomm32.ocx on my PC, when I try to add an OLE object using it, I try CREATE FROM FILE and it does not give me the OLE properties I expect. So I try to use INSERT CONTROL and get an error message 'License file required' I looked the links you give me above, some of them lead to dead ends and other one has the exported uo which gives me same error on import. Once I do make communication, all I need to do is listen for data to come in through COM1 and read it byte by byte.
Thank you for your time.
Serial communication is the most common low-level protocol for communicating between two or more devices. Typically, one device is a computer, while the other device can be a modem, a printer, another computer, or a scientific instrument such as an oscilloscope or a function generator. For many serial port applications, you can communicate with your instrument without detailed knowledge of how the serial port works. Communication is established through a serial port object, serial, which you create in the MATLAB workspace. For information about creating the serial object, see. Before you can write or read data, both the serial port object and the instrument must have identical communication settings.
For information, see. Serial port capabilities, supported interfaces, and supported platforms. The serial port interface standard, signals and pin assignments, the serial data format, and finding serial port information for your platform. These examples help you get started with the serial port interface. Create a MATLAB ® object that represents the serial I/O device. You can configure property values during object creation. Establish a connection between MATLAB and the serial I/O device.
You can set values for baud rate, serial data format, parity checking, and other serial properties. You can write data to the device and read data from the device. The data can be text or binary. You can enhance the power and flexibility of your serial port communication by using events. An event occurs after a condition is met and might result in one or more callbacks. You can use control pins to signal the presence of connected devices and control the flow of data.
Recording information to disk provides a permanent record of your serial port session, and is an easy way to debug your application. While the serial port object is connected to the device, you can record information, such as number of values, data, and event information, to a disk file. You can save and load serial port objects. After the serial communication is complete, you should disconnect the serial port object from the device and remove the object from memory and the workspace. You can use serial port properties for reading and writing data, configuring the communication, performing callbacks, and other tasks. The properties are described here in detail.