🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Transmitting data exceeding 1 byte continuously using serial write

User: "Jeff_wu"
Altair Community Member
Updated by Jeff_wu

I would like to use serial communication in Embed to communicate with my ModBus device. However, I'm unsure about how to transmit data exceeding 8 bits, like "0xAA 0xAA". Could you please guide me on how to configure this in the software? Thank you!

image

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "pdarnell"
    Altair Employee
    Updated by pdarnell

    Hi Robbert, Which MCU are you using? Most of them support a buffer size that allows you to write a number of bytes at each control sample. Those bytes will be sent out by the VSRTOS interrupt handler as fast as possible, so there should be no gap between the 8 byte data elements.

    User: "Jeff_wu"
    Altair Community Member
    OP
    Updated by Jeff_wu

    Hi Robbert, Which MCU are you using? Most of them support a buffer size that allows you to write a number of bytes at each control sample. Those bytes will be sent out by the VSRTOS interrupt handler as fast as possible, so there should be no gap between the 8 byte data elements.

    Hi Peter, this is not intended for use on any MCU, but rather for industrial control (RS232, RS485, etc.). I am using the Real Time/Serial Write block, so I can't use a buffer to write multiple bytes.