Thread Subject: real-time data acquisition from a custom device

Subject: real-time data acquisition from a custom device

From: zeroyy ?

Date: 12 Mar, 2009 05:23:01

Message: 1 of 1

I try to receive and process sound data frame by frame from a custom audio input board with USB interface in MATLAB. I have used this board through windows drivers and C APIs successfully in C world.

At first, I made a data receiving thread with C-MEX to copy frame buffers and call matlab functions to process and visualize the data. But, I realized that mex functions like mexCallMATLAB are not thread-safe functions. I had no idea to proceed.

Next, I noticed that the DAQ toolbox adaptor kit may work. Here, I don’t want to implement complicated timing codes. Just need places for Init, Start, Stop function and a thread for calling a MATLAB function with a sound frame.

Do you have any idea or suggestion?
Other fancy solutions are welcome.

If the use of DAQ toolbox is best, I need simple examples or tutorials relevant to my problem.

Thanks in advance.

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com