Why do I get a timeout error using getdata (data acquisition toolbox)?
Afficher commentaires plus anciens
I am trying to use the data acquisition toolbox from MATLAB v7.11.0 to get samples off a ADLINK PCIE 2010 DAC card. I can successfully use the getsample command to extract a single sample, but when I try to collect a set of samples at a given sampling rate getdata seems to fail.
Example code and output is shown below - the islogging command suggests the card is working as expected. If I try and use peekdata after the stop command it claims no data exists.
>> set(ai_device,'SampleRate',10)
>> set(ai_device,'SamplesPerTrigger',10)
>> set(ai_device,'SamplesAcquiredFcnCount',10)
>> start(ai_device)
>> islogging(ai_device)
ans =
1
>> [D,T]=getdata(ai_device,10,'double')
Error event occurred at 11:49:21 for the object: mwadlink0-AI.
A timeout occurred during GETDATA.
Error using daq.analoginput_mwadlink_1_1/getdata
A timeout occurred during GETDATA.
Error in analoginput/getdata (line 200)
[varargout{1:nout}]=getdata(uddobj,samples,dataformat);
>> stop(ai_device)
Réponses (0)
Catégories
En savoir plus sur National Instruments Frame Grabbers dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!