From: Edward on
I'm trying to use the serial send block to send a basic vector to a Pololu serial-8 servo controller. When I run the simulation, I get the following message:

"The block 'Serial Send' cannot be assigned a continuous sample time."

Which in itself makes sense, but I can't work out how to actually get rid of this error.

I'm using a 'Constant' block which sends the vector to the 'Serial Send' block.

Does anyone have any advice?

Thanks for your time.
From: neil on
"Edward " <thomson.ed(a)gmail.com> wrote in message <i0rs09$8do$1(a)fred.mathworks.com>...
> I'm trying to use the serial send block to send a basic vector to a Pololu serial-8 servo controller. When I run the simulation, I get the following message:
>
> "The block 'Serial Send' cannot be assigned a continuous sample time."
>
> Which in itself makes sense, but I can't work out how to actually get rid of this error.
>
> I'm using a 'Constant' block which sends the vector to the 'Serial Send' block.
>
> Does anyone have any advice?
>
> Thanks for your time.

You can set a sample time on the Constant block. If you double click on it you will see the sample time is set to -1.
You can also drag in a sample and hold block. You may want to turn on sample time colours to make debugging easier.