Info

This question is closed. Reopen it to edit or answer.

Is it possible to datalog several audio channels while time-stamping the data from either the PC clock or a USB GPS module?

1 view (last 30 days)
The project I am working on requires datalogging several audio channels while timestamping the data from either the PC clock or a USB GPS receiver. I have seen that Matlab's Data Acquisition and Audio System toolboxes look impressive but could not find evidence of a time-stamp feature. If anyone has attempted this feature or could point me in the right direction I would appreciate it. Thank you.

Answers (1)

Jayaram Theegala
Jayaram Theegala on 20 Jun 2017
It is possible to get the timestamps relative to the start time of the acquisition using the "startForeground" function in Data Acquisition Toolbox. To find more information about this function, click on the following URL: https://www.mathworks.com/help/daq/ref/startforeground.html#outputarg_timeStamps
In order to get the current time, you can use the "clock" function as shown below:
timeAndDate = clock; % This returns current date and time
time = timeAndDate(4:end); % In order to just get the current time
You may also find the following example useful to get started with Audio Acquisition with Data Acquisition Toolbox: https://www.mathworks.com/help/daq/examples/getting-started-acquiring-data-using-audio-in-session.html

This question is closed.

Community Treasure Hunt

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

Start Hunting!