Thread Subject: Read Data by Usb

Subject: Read Data by Usb

From: Salvatore Esposito

Date: 22 Jun, 2007 15:50:44

Message: 1 of 5

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 5

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 5

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 5

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 5

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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
dat Philip 13 Aug, 2009 04:04:28
usb Ahmed 14 Jul, 2007 06:05:05
hardware Rob Purser 29 Jun, 2007 07:05:07
usb Rob Purser 29 Jun, 2007 07:05:07
instrument control Rob Purser 29 Jun, 2007 07:05:07
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com