View previous topic :: View next topic |
Author |
Message |
bsb84
Joined: 29 May 2006 Posts: 1
|
How to communicate b/w matlab and PIC18F4550 through USB? |
Posted: Mon May 29, 2006 7:06 am |
|
|
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
|
|
Posted: Mon May 29, 2006 9:27 am |
|
|
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
|
|
Posted: Mon May 29, 2006 10:05 am |
|
|
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. |
|
|
|