How to use Data Acquisition Toolbox to record voltage?

4 ビュー (過去 30 日間)
Katherine
Katherine 2012 年 8 月 7 日
Hi, I wish to use the data acquisition toolbox to record a voltage input for an extended period of time (~10 min). For some reason, the data acquisition stops after 1 sec even though I use the wait function. Also when I generate 1V, Matlab only seems to record 0.28V. Why is this?
Here is my code:
ai=analoginput('winsound')
addchannel(ai,1)
start(ai)
wait(ai,600)
stop(ai)
[data,time]=getdata(ai)
plot(time,data)
I appreciate any suggestions anyone has. Thanks!

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by