필터 지우기
필터 지우기

Simulink data acquisition giving error when using signal analyzer

조회 수: 1 (최근 30일)
Ferej
Ferej 2022년 5월 24일
답변: Ashutosh Thakur 2024년 1월 22일
Hello,
I am aquiring live sound data from a pcb microphone connected to NI9234 using Simulink. At the same time I am using a power spectral desity estimator block.
It is giving me the following error
"Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-103"
The error arises when i include the psd.
I have attached my settings.
thank you for your help in advance

답변 (1개)

Ashutosh Thakur
Ashutosh Thakur 2024년 1월 22일
Hi Ferez,
The error message indicates that their is a mismatch between LHS and RHS of the assignment operation which causes difficulty in the assignment operation.
In order to troubleshoot this issue, please try to follow these steps:
  • Check the output from the NI9234 block to analyze the dimensions to find id the issue is with a certain Simulink block or the Live data.
  • Configure the PSD estimator block such that it is compatible with the frame size of the input signal.
  • Also check if their is mismatch between the Sample Time could cause issue with the difference in size in LHS or RHS.
  • Also make sure you have consistent data types between NI9234 and PSD block.
Also try to use the above steps incrementally to have a better understanding of the issue.
Kindly follow the links below to know more about the usage of the NI9234 device with Simulink:
I hope this helps you in troubleshooting the issue.

카테고리

Help CenterFile Exchange에서 Test and Debug Simulations에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by