how to use Data acquisition Tool ???

1 vue (au cours des 30 derniers jours)
Aditya
Aditya le 3 Juin 2013
I wrote this piece of code in my M.editor
CODE
ai=analoginput('winsound'); addchannel(ai,1);
FS=1600; duration=2; set(ai,'SampleRate',FS); set(ai,'SamplesPerTrigger',duration*FS);
while running this i got this error
ERROR
??? Error using ==> analoginput.analoginput at 121 Failure to find requested data acquisition device: winsound.
Error in ==> ana at 1 ai=analoginput('winsound');
Please Help me to resolve this problem.

Réponse acceptée

Friedrich
Friedrich le 3 Juin 2013
Modifié(e) : Friedrich le 3 Juin 2013
Hi,
seems like winsound is not available for you. Did you run this:
daqregister('winsound')
This is needed in order to use the winsound device. In the case you did that alread: What does this give:
out = daqhwinfo;
out.InstalledAdaptors
And also this:
daqhwinfo('winsound')
Are you using a laptop?

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by