Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simulink-dSPACE-RS232 - send an ASCII command

568 views
Skip to first unread message

mo

unread,
Aug 5, 2010, 10:21:04 AM8/5/10
to
hi..
hope someone would help me out with my problem.
iam a totaly newbie to Simulink and dSPACE,...

what iam trying to do is to send an ascii command over dSPACE-RS232.

i connected a RS232 cable to the dSPACE UART RS232 Master...to check if iam getting an output

iam trying to use the dSPACE Package found in Simulink, from there iam choosing SERIAL, and then the

SETUP box (i did all the properties settings, easy, no problem i think)
and the
DS1103SER_TX box

i would like to send the following ASCII CODE = "$01I<CR>"
the $ has an ascii code = 36
the <CR> has an ascii code = 13

now i would like to send the code and check if it has been recieved.

how should i connect the boxes together ? and how can i see if it has been delievered ?


the block has the following inputs/outputs

Inputs
TxBytes
Numbytes

output:
numTxBytes
status

any help is really appreciated
thanks in advance

Avinakar

unread,
Dec 10, 2010, 12:43:04 AM12/10/10
to
"mo " <mb_...@hotmail.com> wrote in message <i3ehcg$sa2$1...@fred.mathworks.com>...

Hi,

Basically the dSPACE block which your trying to use is Real Time Interface for dSPACE hardware. So DS1103 is the hardware which is used to connect the external signal. So it doesn't work without that.

Ajay Joseph

unread,
Aug 23, 2016, 9:40:11 AM8/23/16
to
Hello all

I have a DS1104 dSPACE board. I am trying to communicate using RS232 port on dSPACE but I can't figure out how to select this particular port. There is a serial block to choose from dSPACE blocks but I am not sure how to select RS232 port. For example if you are using a com port you can select which com port the device is plugged in.
From dSPACE I choose Master PPC >> Serial Interface >> Serial Setup. Serial setup block is dragged and dropped to a simulink model page. If i double click Serial setup it gives me error "Conversion to logical from matlab.graphics.GraphicsPlaceholder is not possible"

Any help will be much appreciated
0 new messages