View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Receive serial data and decode it

4.3 | 3 ratings Rate this file 14 Downloads (last 30 days) File Size: 7.57 KB File ID: #25198 Version: 1.0

Receive serial data and decode it


Usman Haider (view profile)


Receive serial data from an instrument or processor and decode it to apply on a plant model

| Watch this File

File Information

This blockreceives serial data from an instrument or processor and decode it to apply on a plant model. You can see how serial receive block works and other blocks like ASCII Decode and Data type conversion . After receiving the data and decoding, it is applied to the plant model (transfer function of the plant). You can see the realtime plant response on oscilloscope block. Out put of various stages is recorded in workspace which can be examined after the simulation. The reader can learn interfacing hardware to the simulink by going through settings of serial configuration block and serial receive block. God knows the best.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
05 Dec 2014 Dave Smith

31 Jan 2013 Emad Ravari

11 Aug 2011 zhang

zhang (view profile)

Hi,I try to do hardware in loop simulation,so I use serial send, receive and configure blocks .Now I can send serial data through the send block, but when I use receive block to get unsigned char data from another computer through serial port ,I can't get the data(got all zeros in simulink).I use your mdl example ,but It did't work too.can you explain how to configure the block or any approach to solve the problem.thanks!

Comment only
05 Nov 2009 Tortuka

Contact us