필터 지우기
필터 지우기

MemCopy a struct with fields of differents bytesizes to a Bus Ouput!

조회 수: 1 (최근 30일)
Armand Chrystel Moutchiho
Armand Chrystel Moutchiho 2013년 10월 15일
Hello to evryone,
I have written a c++ s-function which receives per TCP a big nested struct, which fields have different types( UInt8, UInt16, Float32....). The struct is correctly received by the peer within the s-function but only the first value which is a float64 is correctly written to the s-function bus output( I have randomly initialised two values of the struct before sending it over tcp)! Does this have something to do with the fact that the bus can only output doubles maybe??? If yes, how would you copy the received void data buffer to a new buffer where all values will automatically be doubles?????
Thanks for your answers in advance!
Regards
Armand

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by