Arrange incoming data in pairs in simulink

Hi everyone. I'm trying to acquire digital data sent by a PIC microcontroller via a DAQ board, the microcontroller sends some information in sets of 8 bits numbers, which need to be rearranged to form a 16 bits numbers by merging. To do so, my idea is to make an array and make a column vector every time two 8 bits numbers arrive, but I can't figure out a way to do it, I tried using a buffer but I couldn't get it working. I also tried using an Embedded MAtlab Function block with the same result. Any ideas?
Thanks in advance!

답변 (0개)

이 질문은 마감되었습니다.

질문:

2013년 7월 25일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by