MATLAB: How does xPC Target order data (big endian or little endian) in the buffer that will be sent out to the external hardware

Simulink Real-Time

I want to know how xPC Target orders the data in the buffer that will be sent out onto external hardware especially when using the GE Fanuc PCI-5565 Fiber Optic Reflective Memory Card.
Big-Endianness(most significant byte) or Little-Endianness(least significant byte) effects how my external hardware works.

Best Answer

xPC Target uses little-endian by default.
If you want to reverse the endianness for a signal in the model, you can use Byte Reversal Block under UDP in the xPC Target library.