Is it possible to send and recieve RS232 data from a Raspberry Pi using the Simulink packages?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Rolfe Dlugy-Hegwer
2013 年 8 月 28 日
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?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Raspberry Pi Hardware についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!