Tuesday, February 26, 2013

Serial communication through virtual ports and Matlab

Steps to follow
1) Go to proteus ISIS Professional
2) Pick devices->Miscellaneous->select COMPIN device
3)Go to virtual instruments mode and select virtual terminal


Here is the proteus image with connections

4).  We need Virtual Serial port emulator. go to google and download it .It is free



So COM2 and COM4 are connected virtually.
We need to write a program in MATLAB to check how the data is being transmitted.
Edit properties in COMPIN and set the port to COMP 4 and set the baud rates to 9600.
Set the Baud rate of Virtual terminal to 9600.

The Output is as shown below.


Thank you very much!


1 comment:

  1. hey can you mail me this code

    hellsluck@gmail.com

    thankyou

    ReplyDelete