Simulink Analog Input block size problem

조회 수: 7 (최근 30일)
Philip Wang
Philip Wang 2015년 9월 28일
답변: Mirroyal Ismayilov 2021년 7월 8일
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
Cole Feagler
Cole Feagler 2017년 10월 31일
I have the same issue - can anyone please provide some insight?

댓글을 달려면 로그인하십시오.

답변 (2개)

Marco Perozzi
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.

Mirroyal Ismayilov
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.

카테고리

Help CenterFile 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!

Translated by