PIC Vietnam

Go Back   PIC Vietnam > Microchip PIC > English forum on PICs

Tài trợ cho PIC Vietnam
Trang chủ Đăng Kí Hỏi/Ðáp Thành Viên Lịch Bài Trong Ngày Vi điều khiển

English forum on PICs Forum for foreigners -only English in this forum - Do not need to register or login

 
 
Ðiều Chỉnh Xếp Bài
Prev Previous Post   Next Post Next
Old 11-01-2007, 01:46 AM   #1
ngohaibac
Đệ tử 9 túi
 
ngohaibac's Avatar
 
Tham gia ngày: Oct 2005
Nơi Cư Ngụ: BKHN
Bài gửi: 231
:
Send a message via Yahoo to ngohaibac
Communicate between PC and PIC via RS232 standard using Matlab (GUI, IO).

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.
Hình Kèm Theo
File Type: gif PVN_0101.gif (13.0 KB, 138 lần tải)
File Kèm Theo
File Type: zip Matlab_RS232 Communication.zip (55.9 KB, 854 lần tải)
ngohaibac vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn
 


Quyền Sử Dụng Ở Diễn Ðàn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Smilies đang Mở
[IMG] đang Mở
HTML đang Tắt

Chuyển đến

Similar Threads
Ðề tài Người gửi Chuyên mục Trả lời Bài mới
Giao tiếp RS232 trên PC qua Matlab ngohaibac Giao tiếp cổng COM và LPT 47 18-11-2015 03:51 PM
Mô phỏng PID vị trí trên Matlab hanhluckyly Matlab-Simulink & Labview & 20-Sim 8 24-11-2009 10:11 PM
Tài Liệu Matlab quynhk3e Matlab-Simulink & Labview & 20-Sim 15 08-04-2009 12:31 PM
Matlab R2006b ngohaibac Chương trình dịch & các công cụ mô phỏng 6 14-06-2007 01:26 AM
Cần mua connector cho MMC/SD card standard type!!! Phung The Vu Tìm mua sản phẩm 7 19-05-2007 10:56 PM


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


Được sáng lập bởi Đoàn Hiệp
Powered by vBulletin®
Page copy protected against web site content infringement by Copyscape
Copyright © PIC Vietnam