USB interface

5 次查看(过去 30 天)
Arun Sharma
Arun Sharma 2011-6-5
How we take data from USB device to MATLAB? Actually i am making project in which i have to take data from PIC micro-controller(USB Based Controller) into MATLAB environment..
Any one having any idea for doing so....

采纳的回答

Image Analyst
Image Analyst 2011-6-5
I use Measurement Computing Devices: http://www.mccdaq.com/ but there are others: http://www.mathworks.com/products/daq/supportedio.html
  4 个评论
Luhur
Luhur 2011-6-16
sorry continue...
what about this one (http://www.starting-point-systems.com/products.html) and this one (http://sine.ni.com/nips/cds/view/p/lang/en/nid/14604)
Walter Roberson
Walter Roberson 2011-6-16
Define your needs first. How many analog output channels, how many digital output channels? How many bits per sample for the analog channels? What voltage and current ranges do you need for the analog outputs and do you need those to be dynamically selectable? What data rate do you need? What latency? Do you need accurate sample by sample output, or is it okay to push a bunch of samples in to the output buffer and know that after the transport delay they will get rendered one per clock tick? What logical standard do you need for the digital outputs -- TLL? RS232?
Is transferring the samples via RS232 acceptable? Is it a requirement that all data transferred via RS232 be treated as samples, or is it okay to use a mixed data and command environment through the serial port, using something like the modem AT commands to configure the port and then perhaps sending a block saying "threat the next 32 bytes all as samples" ? Or will the port auto-detect AT-type commands, and if so does the port rely upon a particular pause after the AT to signal it is a command AT veras data that just happens to be 'A' 'T' ? If there is no pause or DTR or similar signaling mechanism of commands, then does your sending routine need to scan the output and somehow "encode" values that the command interpreter would otherwise pick up on -- e.g., sometimes modems needed sequences such as AT%NAT\r in order to code that the modem was to pass the actual AT characters to the other end.

请先登录,再进行评论。

更多回答(1 个)

Walter Roberson
Walter Roberson 2011-6-5
MATLAB does not provide any mechanism to handle general USB devices. It can often talk to USB devices that are emulating a serial port, and it can talk to some USB A/D or D/A devices.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by