PIC Vietnam

PIC Vietnam (http://www.picvietnam.com/forum/index.php)
-   English forum on PICs (http://www.picvietnam.com/forum/forumdisplay.php?f=53)
-   -   Communicate between PC and PIC via RS232 standard using Matlab (GUI, IO). (http://www.picvietnam.com/forum/showthread.php?t=857)

ngohaibac 11-01-2007 01:46 AM

Communicate between PC and PIC via RS232 standard using Matlab (GUI, IO).
 
2 Attachment(s)
Hi everybody.

I think that Matlab is a famous software is used in Automatic control, Electric and Communication, .... because of its benefits.


So I am pleased to give you a application I have written by myself. Its interface like a figure in attached files.
To use my application, you need to do step by step as following:
  • Download file named Matlab_RS232 Communication.zip. Unzip it to one folder.
  • Open Matlab, type command:
  • Code:

    GUI
  • After Graphic User Interface display, chose "Open existing project" (something like that) and browse to file named: RS232_Communication.fig.

As my application is kind of open source,you can edit it for your purpose. There are some function you should edit:
  • function ByteAvailable_Callback(obj, event)
    The program will call this function when a byte appear in Input buffer.
  • function OutputEmpty_Callback(obj, event)
  • function Error_Callback (obj, event)
  • function PinStatus_Callback(obj, event)
  • function Timer_Callback (obj,event)
  • function BreakInterrupt_Callback(obj, event)

To find further information about GUI, you can use Help with keyword: GUI or find "Graphic User Interface".

Type:
Code:

>>help serial
for more details about Serial Object.

You can find more detail in website:
http://www.mathworks.com/


The application was tested by some members in this forum. But if it has any problems, do not hesitate to contact me or reply.

Note: Only members can see figure and download enclosed files.


Best wishes to you.

leminhlinh 24-02-2009 09:50 AM

thank! I have a project of communication wireless using usart of pic 16f877 .
plesea help me!
thank u very much!
email:aqchinhtruyen2005@yahoo.com

vdhdevil 03-03-2009 12:18 AM

I think your project base on USART. It is the same as communicate with RS232 not different.The only different is wire and wireless.

chiletechnocrat 02-06-2011 06:46 PM

rs232 communication with gs232
 
please help me to send some commands to this antenna rotor controller gs 232.
please write a code for me.


Múi giờ GMT. Hiện tại là 09:46 PM.

Tên diễn đàn: vBulletin Version 3.8.11
Được sáng lập bởi Đoàn Hiệp.
Copyright © PIC Vietnam