Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

writing data to USB port with MATLAB

Status
Not open for further replies.

hansmuller

Member level 1
Joined
Apr 27, 2008
Messages
39
Helped
12
Reputation
22
Reaction score
7
Trophy points
1,288
Activity points
1,495
matlab usb

Hi all.

I want to use USB port with MATLAB. I will write any data to USB port and a PIC of series 18f2550 or 18f4550 (I haven't decided yet) will read this data via directly USB.

Does anybody know how to control and write data USB port from MATLAB?

I need help.Thanks in advance.
 

usb matlab

I am as well facing the same problem, I have been searching online since about 2 monthes now, but apparently, you cant use MATLAB for USB data aquisition without getting some extra plugins [like control boards and stuff]. Also, its noted that u can record USB inputs from the usb via MATLAB, by creating DLL files and calling them through MATLAB's main window [the command for call DLL files is 'loadlibrary']...but as far as I knw you cant use that for realtime logging, your input data is stored somehow in a .dat file which then u gonna have to reuse for MATLAB...

As advice, I think its abt time to start thinking of usuing the usual serial 'RS232' which is totally supported by matlab...although this is not useful for most labtops, there are USB/RS232 cables [that is wht I am starting to do, although I dont knw how this will actually work with my application but I shall try it..]
You can use the Simulink tool to use the serial cable...or u can type "help serial" on the main MATLAB window for further help..
Best of luck;
Abuelezz
P.S.attached is a block diagram of the blocks u may need for ur application
 
  • Like
Reactions: danko0

    danko0

    Points: 2
    Helpful Answer Positive Rating
matlab usb port

thx for your reply.

yes youre right I think USB port usage is not supported in MATLAB like serial port. I also think to use serial port instead of USB. I hope USB RS232 converters work well with MATLAB because as I know some applications do not work comfortably with converters.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top