I need to know how can I display the recorded signal just like Matlab displays in its Analog Input Recorder App.
Refer to attached zip file for further details.
Thanks
Best Answer
Hi Muhammad,
If the type of signals that you are interested in acquiring is audio, then you should look at Audio Toolbox instead of Data Acquisition Toolbox. Audio Toolbox provides more efficient interfaces for sound cards, with support for synchronized low-latency and multi-channel audio acquisition across all OS.
The reference built-in MATLAB App is that case is called Audio Test Bench. It can be used to display the first acquired channel out of the box via the time scope and spectrum analyzer. It also includes an option to generate MATLAB code so you can customize your visualization (e.g. how many and which channels to visualize) by modifying the generated MATLAB code.
To get started with Audio Test Bench you can easily use the Audio Toolbox documentation, e.g.:
It is necessary to use either DAQ or DSP to get simultaneous audio playing and recording if you want the two to be synchronized.
If you do not care about the two being synchronized, the audioplayer() play() method is asynchronous, and the audiorecorder() record() method is also asynchronous, so you can start one and then the other while still being able to react to user events.
Best Answer