Simulink Analog Input block size problem
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi all,
I am trying to acquire data using a NI-PCI-6034E device. By using the Analog Input block I should be able to get what I want. The problem is that there is a minimum requirement of the block size of 2 which if use a scope to look at data acquired real time, two signals sort of stacked together for every two time interval.
For example, if I am to acquire the data for 1 seconds at the sampling rate of 1000, I should expect to see one point for each millisecond. But I am actually seeing two points having a length of two millisecond acquired simultaneously...
Is there a way to get around this problem?
I tried to increased my block size to the number of points I expect to get. For instance, my block size will be 1000 for a sampling rate of 1000 acquiring for 1 second. It sort of worked but then for each duration, I am getting an array having third index...
For the same example aforementioned, I should expect to see 1000 data but end up seeing 2000 data within 1 second...
Please help me!!!
Thanks!
댓글 수: 1
답변 (2개)
Marco Perozzi
2019년 2월 5일
Hi, i had the same problem, if you use the block "Time Scope" instead of "Scope" you shoudn't have the problem anymore. Sincerely i don't know why but for me worked. Moreover it's better if you don't use a numer of blocks less than 1/10 of sampling rate.
댓글 수: 0
Mirroyal Ismayilov
2021년 7월 8일
Hello,
You need to sum the signals up and multiply the gain of 0.5 in order to get the same value with one signal.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Signal Generation, Manipulation, and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!