CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

How to communicate b/w matlab and PIC18F4550 through USB?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bsb84



Joined: 29 May 2006
Posts: 1

View user's profile Send private message

How to communicate b/w matlab and PIC18F4550 through USB?
PostPosted: Mon May 29, 2006 7:06 am     Reply with quote

Hi all!

I have been using PIC18F4550 microcontroller to send sensors data through USB, from the microcontroller board to PC using Visual Basic 6.

Now I want to shift to Matlab for the reception of data. As I am novice in Matlab, can anyone tell me how to get this communication working. The main aim is to recieve data in form of bytes from pic to matlab using USB.

Thanks.
Imad84



Joined: 29 May 2006
Posts: 6

View user's profile Send private message

PostPosted: Mon May 29, 2006 9:27 am     Reply with quote

Hello,

R u using the CCS compiler??

If yes, is the pic in this case is the host or the device?

can u post ur code?

Bye
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Mon May 29, 2006 10:05 am     Reply with quote

I don't know if the windows driver for 18F4550 supports virtual serial port. But like VB, MATLAB can get the data from the serial port. Look at the serial() function in the MATLAB help.

P.S. Since this topic is a request for help, it really belongs in the general forum, not in the code library.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group