Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Read Data by Usb

Subject: Read Data by Usb

From: Salvatore Esposito

Date: 22 Jun, 2007 15:50:44

Message: 1 of 7

I have a CS infrared thermometer with own usb interface and I would like to
read acquired data into Matlab.

Can I read data from usb into Matlab? and How Can I do it?

If it isn't possible, SW (User Graphic Interface) CS infrared
thermometer/usb interface will save acquired data in .dat file format. Can I
read .dat file format into Matlab? ( I have seen load function. Is it
correct function?)

Sorry for my English and thanks a lot for your help.

Salvatore


 

Subject: Read Data by Usb

From: Isaac Noh

Date: 22 Jun, 2007 10:19:08

Message: 2 of 7

Salvatore,

You may be able to comunicate with the thermometer via the DLL that the
vendor's software uses to communicate to the device. MATLAB has a generic
DLL interface that allows DLLs to be loaded into MATLAB. This then allows
MATLAB to call the methods of the DLL. The function to load the DLL is
called, LOADLIBRARY.

If this is not accessible to you, the DAT-file that you can save can be read
into MATLAB. There are examples in the documentation for reading in
DAT-files. Just do a search for DAT.

Isaac Noh
Application Engineer
The MathWorks

"Salvatore Esposito" <salvatoreesposito76@alice.it> wrote in message
news:467bd3b7$0$4792$4fafbaef@reader4.news.tin.it...
>I have a CS infrared thermometer with own usb interface and I would like to
>read acquired data into Matlab.
>
> Can I read data from usb into Matlab? and How Can I do it?
>
> If it isn't possible, SW (User Graphic Interface) CS infrared
> thermometer/usb interface will save acquired data in .dat file format. Can
> I read .dat file format into Matlab? ( I have seen load function. Is it
> correct function?)
>
> Sorry for my English and thanks a lot for your help.
>
> Salvatore
>
>
>
>
>

Subject: Read Data by Usb

From: Gautam Vallabha

Date: 22 Jun, 2007 13:27:54

Message: 3 of 7

The instrument control toolbox
(http://www.mathworks.com/access/helpdesk/help/toolbox/instrument/index.html)
may help you in talking to the device over USB (also see
http://www.mathworks.com/access/helpdesk/help/toolbox/instrument/f22-57896.html)

Gautam

"Isaac Noh" <inoh@mathworks.com> wrote in message
news:f5glp2$r5v$1@fred.mathworks.com...
> Salvatore,
>
> You may be able to comunicate with the thermometer via the DLL that the
> vendor's software uses to communicate to the device. MATLAB has a generic
> DLL interface that allows DLLs to be loaded into MATLAB. This then allows
> MATLAB to call the methods of the DLL. The function to load the DLL is
> called, LOADLIBRARY.
>
> If this is not accessible to you, the DAT-file that you can save can be
> read into MATLAB. There are examples in the documentation for reading in
> DAT-files. Just do a search for DAT.
>
> Isaac Noh
> Application Engineer
> The MathWorks
>
> "Salvatore Esposito" <salvatoreesposito76@alice.it> wrote in message
> news:467bd3b7$0$4792$4fafbaef@reader4.news.tin.it...
>>I have a CS infrared thermometer with own usb interface and I would like
>>to read acquired data into Matlab.
>>
>> Can I read data from usb into Matlab? and How Can I do it?
>>
>> If it isn't possible, SW (User Graphic Interface) CS infrared
>> thermometer/usb interface will save acquired data in .dat file format.
>> Can I read .dat file format into Matlab? ( I have seen load function. Is
>> it correct function?)
>>
>> Sorry for my English and thanks a lot for your help.
>>
>> Salvatore

Subject: Read Data by Usb

From: Rob Purser

Date: 29 Jun, 2007 11:03:11

Message: 4 of 7

Unfortunately, there really isn't any "generic standard" for USB -- It's very different from serial support. Asking for USB support is equivalent to asking for PCI or ISA support.

In most cases, you must have a DLL driver for the hardware that allows you to communicate with the device. Since MATLAB supports a generic DLL interface that allows people to communicate to DLLs directly from MATLAB, a possibility is to communicate to a USB device by talking to the DLL from MATLAB.

For more in-depth info, visit
http://www.lvr.com/usbfaq.htm
at USB Central.

With Data Acquisition Toolbox, we support USB if they are supported through the vendors API. For instance, MCC has the USB-1608FS.

For Instrument Control Toolbox, we also support USB connectivity with USB instruments that support the standard USB Test and Measurement Class (USBTMC). This is done via one of the Visa connectivity tools, such as Agilent Connection Expert (ACE).

In Image Acquisition Toolbox, we support webcams over USB. The reason again is because we talk to the DirectX API of the webcam and then the webcam handles communication over USB.

Subject: Read Data by Usb

From: ahmed

Date: 14 Jul, 2007 10:01:53

Message: 5 of 7

i have a problem like your problem and if you found a solution write to me. this is my problem:

i like to read data from a pen tablet connected to my computer through usb.

these data happened when the pen move over the tablet.

these data like speed of the pen movement or speed of writting, pressure level of the pen, degree of slop between the pen and the tablet

and thank you

Subject: Read Data by Usb

From: Hassam Malhi

Date: 17 Jul, 2011 18:54:08

Message: 6 of 7

hi..

i want to send data to USB port using MATLAB..
looking forward for ur guidance

THANKS in ADVANCE

Subject: Read Data by Usb

From: Yu Ang Tan

Date: 20 Mar, 2012 07:59:12

Message: 7 of 7

If you absolutely have to, you can write your own usb API using libusb.
(http://www.libusb.org/)


If you absolutely have to, you can write your own usb API using libusb.
<http://www.libusb.org/>

"Hassam Malhi" <hassam_malhi@hotmail.com> wrote in message <ivvb4g$rob$1@newscl01ah.mathworks.com>...
> hi..
>
> i want to send data to USB port using MATLAB..
> looking forward for ur guidance
>
> THANKS in ADVANCE

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us