Is it possible to send and recieve RS232 data from a Raspberry Pi using the Simulink packages?

3 views (last 30 days)
I am attempting to use a RPi as a remote DAQ device. I have a sensor that outputs to RS232 and want to broadcast the data over a network. I have a RS232-to-GPIO converter on my RPi. My plan was to use the Simulink package to read in data from the GPIO pins and use a UDP connection to broadcast it over a wireless network.
I know this is possible (I have it working without Simulink), but cannot seem to get it to work with Simulink. The reason I want to use simulink is so I can pre-process the data on the RPi (My current set-up is a simple pass-through using ser2net).
Basically, my question is how does one convert the GPIO values that the RPi reads to RS232 strings using Simulink?
  1 Comment
Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer on 28 Aug 2013
I'd like to see your Simulink model that contains a GPIO Read and UDP Send block. There might be another solution depending on which other products you might have installed. Could you enter ver in the MATLAB Command Window and send me the output?

Sign in to comment.

Answers (0)

Categories

Find more on Raspberry Pi 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!