Why does the spi block not send the second value?

조회 수: 2 (최근 30일)
Haadia Farrukh
Haadia Farrukh 2024년 3월 22일
편집: Shivam Lahoti 2024년 9월 12일
As you can see , only 255 is sent why ?

답변 (1개)

Shivam Lahoti
Shivam Lahoti 2024년 9월 12일
편집: Shivam Lahoti 2024년 9월 12일
Hi Haadia,
I can understand that you are not able to send complete data through the SPI blocks. Following the steps mentioned below might help you resolve this issue:
1) Close all the instances of active MATLAB sessions.
2) Using File Explorer in Windows, navigate to:
C:\ProgramData\MATLAB\SupportPackages\R2020a\toolbox\target\supportpackages\tic2000\+codertarget\+tic2000\+blocks
3) Rename the current version ‘SPIBlock.m’ to ‘SPIBlockOld.m’.
4) Delete ‘SPIBlock.p’.
5) Copy the new ‘SPIBlock.m’ file from this article into the folder.
6). Open a new instance of MATLAB and navigate to the folder from step 2. Then execute the following in the MATLAB Command Window:
>>pcode SPIBlock.m
I hope this helps to resolve the issue.
Regards,
Shivam.

카테고리

Help CenterFile Exchange에서 Block Libraries에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by