Check variable status periodically of Matlab Function Block input

Hi every one.
I'm working with this system:
Serializador.png
Vector "Constant2" contains 122 bits (122 0s or 1s), Serializer1D Block changes parallel to serial (sends one by one bit), Delay Block delays the bitstream (in this case 1 us).
Bellow an example with 50 us delay:
PLOT_Serializador.png
In the MATLAB Function BITS COUNTER I need to check u input periodically, in order to get what bit is there (one or zero) and obtain a bit count. Check Period must be determined by me, but that is the problem, I don't know how to implement that kind of code.
Could someone give me some advice or recommendation?
Regards
William

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 10월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by