From: shamasundar naik on
Hi,

In my XPC target I need to do some rs232 packet communication. To start with, I made a simple model which includes Baseband Serial F block. I configured the model for COM1-none. Rx and Tx data types are 8 bit NULL terminated. I attached a ascii encode block with certain ascii charecters to be sent to the XMT1 port. With this model I am able to receive the data properly but not able to transmit anything. Can some body tell me what is the problem?

I tried several variations. For example setting the data type as count+uint16 and sending some data(via constant block) for example 4 10 20 30 40.

The transmition works if I use the obsolete 'binary send' block. So the hardware connection itself is OK.

Regards
Sham
From: Gordon Weast on
Sham,

One possibility could be if you've left the 'auto RTS/CTS' checkbox
checked and you only have a 3 wire cable. The transmitter
won't run in that case. The open connection is interpreted as
You would get a fifo overflow with the error message showing
the transmit side.

If that doesn't work, then you need to contact tech support about
it.

Gordon Weast
xPC Target Development
The MathWorks

shamasundar naik wrote:
> Hi,
>
> In my XPC target I need to do some rs232 packet communication. To start
> with, I made a simple model which includes Baseband Serial F block. I
> configured the model for COM1-none. Rx and Tx data types are 8 bit NULL
> terminated. I attached a ascii encode block with certain ascii
> charecters to be sent to the XMT1 port. With this model I am able to
> receive the data properly but not able to transmit anything. Can some
> body tell me what is the problem?
>
> I tried several variations. For example setting the data type as
> count+uint16 and sending some data(via constant block) for example 4 10
> 20 30 40.
> The transmition works if I use the obsolete 'binary send' block. So the
> hardware connection itself is OK.
>
> Regards
> Sham
From: Eric on
Thanks Gordon.

Further I found that the same thing works in Matlab 2007b version. But my Matlab is 2006a and I need to build the software on 2006a for several reasons.

How this kind of issues are typically handled? Do we get a patch?
Can I look into the bugs in 2006a and search for relevant patch?

regards
Sham
From: shamasundar naik on
Hi ,
I compared the Watcom compiler options between 2006a and 2007b. 2007b had a new option '-of', I think some thing related to the traceble stack frame generation. When I ue this compilar option, the model works fine on 2006a and I see the characters on hyperterminal.

-sham