xPC Target un able to Serial Communicate(RS232 Quatech QSC 100) with Arduino Mega 2560

2 views (last 30 days)
Hi,
I want to Communicate xPCtarget with Arduino Mega 2560 using RS232 serial communication. We are using Quatech PCI drivers for serial Communication.
Transmission: The simulink models are organised such that it consists of messages in the form of numerical data with data type of uint8 that needs to passed on to the Arduino Mega 2560.Here we using QSC 100 block with an Transmit setup of RS232 in xPC target Toolbox.
In another case we need to send floating point data to the Arduino Mega but Quatech only supports int32, uint32, int16, uint16,uint8,int8.How do we pass floating point data to the QSC-100 block?
Reception: Here the Arduino Mega 2560 is programmed using simulink and downloaded the model using Run on Target option.In this we are using Serial Receive Blocks to receive the data from Quatech Cable.
In between Quatech cable and Arduino Mega 2560 we using MAX 232 for TTL conversion.
Here we are not able to receive anything in Serial port of Arduino Mega 2560. Please help us how do we solve this problem.
Thanks in advance.

Answers (0)

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!