Get data from an URL in Simulink for a Raspberry Pi

3 visualizaciones (últimos 30 días)
Vinicio Moya
Vinicio Moya el 18 de Jun. de 2020
Comentada: Vinicio Moya el 20 de Jun. de 2020
Hello everybody!
I want to use a Raspberry Pi 3B+ to control a biorreactor. I have some sensors, and they give me data in an URL (http://plaato.blynk.cc/auth_token/get/pin).
How can I make a call to thar URL in Simulink? I don´t want to use ThingSpeak, and I´m sure that Simulink could do this in a simple way. Could yo help me?

Respuesta aceptada

Kshitij Chhabra
Kshitij Chhabra el 19 de Jun. de 2020
Hi Vinico,
From my understanding you want to read data from a URL in Simulink. For this purpose you can create a user defined function block for the same. Once having created that you can use the ‘webread’ function to use the API’s provided by the website.
For examples on how to use webread, refer to the MATLAB Documentation here.
  1 comentario
Vinicio Moya
Vinicio Moya el 20 de Jun. de 2020
Hi Kshitij... I will try it!
I will say you what happened in a few days.

Iniciar sesión para comentar.

Más respuestas (0)

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by