How to read 500 readings from analog input block in 1 second in matlab ?

2 ビュー (過去 30 日間)
ahmed
ahmed 2014 年 9 月 20 日
回答済み: Sreeram Mohan 2014 年 9 月 23 日
Hello all, I am new to Arduino & Simulink, I want to read 500 analog readings from pin0 in Arduino in 1 second to make a vector of [1 x 500] and then manipulate with this vector. The problem is the analog input block in simulink reads only one reading and so generates a vector of size [1 x 1]. if any one can help I would be so grateful

回答 (1 件)

Sreeram Mohan
Sreeram Mohan 2014 年 9 月 23 日
Hi Ahmed,
Try using a tapped delay block or if you have access to signal processing toolboxes try using a buffer block and things should just work if you set up the size of the block accordingly !
Hope this helps. --sreeram mohan

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by