From: Mohammad on
Hi everyone,

I was wondering if any one knows how use the data acquisition toolbox
for recording sounds ina way that the duration of the sound to be
recorded in not pre-specified. so I'm creating a GUI, that I show a
sentence to a user and I want the user to read it out by pressing the
button "start", to begin recording and to press the "stop" button at
the end of his recording. so the duration will be kind of user
dependent and variable. the examples i've seen of the data acquisition
toolbox for sound recording are all with fixed pre-specified recording
duration and I dont know how to do it. can anybody help me with this
please ?

Thanks in advance
Mohammad
From: Sherryl Radbil on
Hi Mohammad,
You can set up continuous acquisitions by setting SamplesPerTrigger or TriggerRepeat to Inf then using
stop(ai)
in the callback associated with the "stop" button.
There is a new Continuous Acquisition demo in R2010a (available at the time of this writing in prerelease from http://www.mathworks.com/downloads/web_downloads/select_gwylf) for those that are eligible.
You can also look at the code for
daqfcngen
which does continuous acquisition using Manual TriggerType and peekdata.
Regards,
Sherryl