How can i send and receive data from matlab through usb between two computers?

조회 수: 9 (최근 30일)
I am doing a project where i have to transfer data from one device to another through visible light (LED). My plan was to make a matlab application where I connect my led to the data pins of the usb directly and a photodiode to the data pins at the receiver side. My question is does this work or will it burn my usb port? If it works, can someone help me where to start with the matlb programming?

채택된 답변

Gillian Rosen
Gillian Rosen 2017년 3월 14일
Hi Arun, 
I understand that you would like to use MATLAB to blink an LED in order to send data between two computers, and you would like to use the data pins of your USB port to do so. 
According to the USB standard, it is not possible to directly control the data pins of a USB port, regardless of whether or not you are using MATLAB. However, MATLAB support is available for a variety of devices that are built for use with LEDs and photodiodes. I suggest that you look through the MATLAB supported devices and choose the one that works best for you. You can find more information about hardware support at the following link:
Examples for blinking/powering LEDs are available for many supported devices. Feel free to explore some of the the examples below: 

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by